1 test_name 'C3500 - checkout with compression 5'
4 repo_name = 'testrepo_checkout'
7 tmpdir = host.tmpdir('vcsrepo')
8 step 'setup - create repo' do
9 install_package(host, 'git')
10 my_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
11 scp_to(host, "#{my_root}/acceptance/files/create_git_repo.sh", tmpdir)
12 on(host, "cd #{tmpdir} && ./create_git_repo.sh")
16 on(host, "rm -fr #{tmpdir}")
19 step 'checkout with compression 5 with puppet' do
21 vcsrepo { "#{tmpdir}/#{repo_name}":
23 source => "file://#{tmpdir}/testrepo.git",
29 apply_manifest_on(host, pp)
30 apply_manifest_on(host, pp)
33 step 'verify git repo was checked out' do
34 on(host, "ls #{tmpdir}/#{repo_name}/.git/") do |res|
35 fail_test('checkout not found') unless res.stdout.include? "HEAD"