Imported puppetlabs-vcsrepo
This commit is contained in:
parent
0938a13fe6
commit
18d9aa4a23
152 changed files with 9191 additions and 0 deletions
30
modules/vcsrepo/spec/acceptance/remove_repo_spec.rb
Normal file
30
modules/vcsrepo/spec/acceptance/remove_repo_spec.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
tmpdir = default.tmpdir('vcsrepo')
|
||||
|
||||
describe 'remove a repo' do
|
||||
it 'creates a blank repo' do
|
||||
pp = <<-EOS
|
||||
vcsrepo { "#{tmpdir}/testrepo_deleted":
|
||||
ensure => present,
|
||||
provider => git,
|
||||
}
|
||||
EOS
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
end
|
||||
|
||||
it 'removes a repo' do
|
||||
pp = <<-EOS
|
||||
vcsrepo { "#{tmpdir}/testrepo_deleted":
|
||||
ensure => absent,
|
||||
provider => git,
|
||||
}
|
||||
EOS
|
||||
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
end
|
||||
|
||||
describe file("#{tmpdir}/testrepo_deleted") do
|
||||
it { should_not be_directory }
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue