Imported puppetlabs-vcsrepo
This commit is contained in:
parent
0938a13fe6
commit
18d9aa4a23
152 changed files with 9191 additions and 0 deletions
|
@ -0,0 +1,38 @@
|
|||
test_name 'C3473 - create bare repo specifying revision'
|
||||
|
||||
# Globals
|
||||
repo_name = 'testrepo_bare.git'
|
||||
|
||||
hosts.each do |host|
|
||||
tmpdir = host.tmpdir('vcsrepo')
|
||||
step 'setup' do
|
||||
git_pkg = 'git'
|
||||
if host['platform'] =~ /ubuntu-10/
|
||||
git_pkg = 'git-core'
|
||||
end
|
||||
install_package(host, git_pkg)
|
||||
end
|
||||
|
||||
teardown do
|
||||
on(host, "rm -fr #{tmpdir}")
|
||||
end
|
||||
|
||||
step 'create bare repo specifying revision using puppet' do
|
||||
pp = <<-EOS
|
||||
vcsrepo { "#{tmpdir}/#{repo_name}":
|
||||
ensure => bare,
|
||||
revision => master,
|
||||
provider => git,
|
||||
}
|
||||
EOS
|
||||
|
||||
apply_manifest_on(host, pp, :expect_failures => true)
|
||||
end
|
||||
|
||||
step 'verify repo does not contain .git directory' do
|
||||
on(host, "ls -al #{tmpdir}") do |res|
|
||||
fail_test "found repo for #{repo_name}" if res.stdout.include? repo_name
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue