diff options
author | John Duarte <john.duarte@puppetlabs.com> | 2014-05-21 18:17:31 -0700 |
---|---|---|
committer | John Duarte <john.duarte@puppetlabs.com> | 2014-05-21 18:17:31 -0700 |
commit | 2f875839afe843bd8a9f320d553fb3a28a7420f8 (patch) | |
tree | 681e6f1b03ca99eed51ad2bec40b9a3b192ee48f /spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb | |
parent | 9057fca3a6862e699c153f3607e57f2360552eb7 (diff) | |
parent | 0d9e938e92a25673c3712866e2d2108a255b67d5 (diff) | |
download | puppet-vcsrepo-2f875839afe843bd8a9f320d553fb3a28a7420f8.tar.gz puppet-vcsrepo-2f875839afe843bd8a9f320d553fb3a28a7420f8.tar.bz2 |
Merge pull request #145 from hunner/fix_beaker_tests
Update specs and fix FM-1361
Diffstat (limited to 'spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb')
-rw-r--r-- | spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb b/spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb index 7187586..7348755 100644 --- a/spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb +++ b/spec/acceptance/beaker/git/user_checkout/user_checkout_https.rb @@ -33,13 +33,13 @@ hosts.each do |host| end step 'setup - create user' do - apply_manifest_on(host, "user { '#{user}': ensure => present, }") + apply_manifest_on(host, "user { '#{user}': ensure => present, }", :catch_failures => true) end teardown do on(host, "rm -fr #{tmpdir}") - on(host, "ps ax | grep '#{ruby} /tmp/https_daemon.rb' | grep -v grep | awk '{print \"kill -9 \" $1}' | sh") - apply_manifest_on(host, "user { '#{user}': ensure => absent, }") + on(host, "ps ax | grep '#{ruby} /tmp/https_daemon.rb' | grep -v grep | awk '{print \"kill -9 \" $1}' | sh ; sleep 1") + apply_manifest_on(host, "user { '#{user}': ensure => absent, }", :catch_failures => true) end step 'checkout as a user with puppet' do @@ -52,8 +52,8 @@ hosts.each do |host| } EOS - apply_manifest_on(host, pp) - apply_manifest_on(host, pp) + apply_manifest_on(host, pp, :catch_failures => true) + apply_manifest_on(host, pp, :catch_changes => true) end step "verify git checkout is owned by user #{user}" do |