diff options
author | John Duarte <john.duarte@puppetlabs.com> | 2014-05-10 21:13:03 -0700 |
---|---|---|
committer | John Duarte <john.duarte@puppetlabs.com> | 2014-05-18 11:38:19 -0700 |
commit | 591725e0f2a0dd0dd31b0086dbd4068bd302b0e1 (patch) | |
tree | da449fda99665914f890db3f7b6246223ee1674d /spec/acceptance/beaker/git/create/negative | |
parent | 23a4cf03cc9c666323371c3aaacf73e5a058cead (diff) | |
download | puppet-vcsrepo-591725e0f2a0dd0dd31b0086dbd4068bd302b0e1.tar.gz puppet-vcsrepo-591725e0f2a0dd0dd31b0086dbd4068bd302b0e1.tar.bz2 |
Move git tests into sub-directory
Diffstat (limited to 'spec/acceptance/beaker/git/create/negative')
-rw-r--r-- | spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb new file mode 100644 index 0000000..6a12c8c --- /dev/null +++ b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb @@ -0,0 +1,34 @@ +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 + install_package(host, 'git') + 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, :acceptable_exit_codes => [1]) + end + + step 'verify repo was NOT created' do + on(host, "ls -al #{tmpdir}") do |res| + fail_test "found #{repo_name}" if res.stdout.include? "#{repo_name}" + end + end + +end |