Imported puppetlabs-vcsrepo

This commit is contained in:
Ciaby 2014-07-16 13:58:34 -05:00
parent 0938a13fe6
commit 18d9aa4a23
152 changed files with 9191 additions and 0 deletions

View file

@ -0,0 +1,31 @@
require 'spec_helper_acceptance'
tmpdir = default.tmpdir('vcsrepo')
describe 'does not remove a repo if noop' do
it 'creates a blank repo' do
pp = <<-EOS
vcsrepo { "#{tmpdir}/testrepo_noop_deleted":
ensure => present,
provider => git,
}
EOS
apply_manifest(pp, :catch_failures => true)
end
it 'does not remove a repo if noop' do
pp = <<-EOS
vcsrepo { "#{tmpdir}/testrepo_noop_deleted":
ensure => absent,
provider => git,
force => true,
}
EOS
apply_manifest(pp, :catch_failures => true, :noop => true, :verbose => false)
end
describe file("#{tmpdir}/testrepo_noop_deleted") do
it { should be_directory }
end
end