summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Partlow <jpartlow@glatisant.org>2014-09-19 11:49:34 -0700
committerJosh Partlow <jpartlow@glatisant.org>2014-09-19 11:49:34 -0700
commit25ecd641be536300aaacfedfb03d2d6c0fc3d01e (patch)
tree0db9c1b723c73b5b156bac22ef0abf554096cb9c
parent85c16b7d1a2179565608ed40959c9472e938adc9 (diff)
parent3f8bb6b892047a4b1cffc80c246b8b81670a857c (diff)
downloadpuppet-25ecd641be536300aaacfedfb03d2d6c0fc3d01e.tar.gz
Merge pull request #3106 from jpartlow/maint/stable/ec2-centos6-acceptance-fixes
Maint/stable/ec2 centos6 acceptance fixes
-rw-r--r--acceptance/tests/config/puppet_manages_own_configuration_in_robust_manner.rb6
-rwxr-xr-xacceptance/tests/resource/host/should_query.rb17
2 files changed, 5 insertions, 18 deletions
diff --git a/acceptance/tests/config/puppet_manages_own_configuration_in_robust_manner.rb b/acceptance/tests/config/puppet_manages_own_configuration_in_robust_manner.rb
index 543c1d815..ea5bef339 100644
--- a/acceptance/tests/config/puppet_manages_own_configuration_in_robust_manner.rb
+++ b/acceptance/tests/config/puppet_manages_own_configuration_in_robust_manner.rb
@@ -45,8 +45,12 @@ teardown do
# user and group ids back to the original uid and gid
on master, 'rm -rf $(puppet master --configprint yamldir)'
+ if master.use_service_scripts?
+ on(master, puppet('resource', 'service', master['puppetservice'], 'ensure=stopped'))
+ end
+
hosts.each do |host|
- apply_manifest_on(host, <<-ORIG)
+ apply_manifest_on(host, <<-ORIG, :catch_failures => true)
#{original_state[host][:ug_resources]}
ORIG
end
diff --git a/acceptance/tests/resource/host/should_query.rb b/acceptance/tests/resource/host/should_query.rb
deleted file mode 100755
index a01889a9a..000000000
--- a/acceptance/tests/resource/host/should_query.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-test_name "should query hosts out of a hosts file"
-
-agents.each do |agent|
- file = agent.tmpfile('host-query')
-
- step "set up the system for the test"
- on agent, "printf '127.0.0.1 localhost.local localhost\n' > #{file}"
-
- step "fetch the list of hosts from puppet"
- on(agent, puppet_resource('host', 'localhost', "target=#{file}")) do
- found = stdout.scan('present').length
- fail_test "found #{found} hosts, not 1" if found != 1
- end
-
- step "clean up the system"
- on agent, "rm -f #{file}"
-end