[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Dominic Maraglia
dmaraglia at gmail.com
Tue May 10 08:19:38 UTC 2011
The following commit has been merged in the experimental branch:
commit 8a8e1981f2189ba0ae3942625e93f495671c20ee
Author: Dominic Maraglia <dmaraglia at gmail.com>
Date: Wed May 4 14:19:57 2011 -0700
adding test for ticket 7117
diff --git a/acceptance/pending/ticket_7117_broke_env_criteria_authconf.rb b/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
similarity index 67%
rename from acceptance/pending/ticket_7117_broke_env_criteria_authconf.rb
rename to acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
index b45f91b..bd0599d 100644
--- a/acceptance/pending/ticket_7117_broke_env_criteria_authconf.rb
+++ b/acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
@@ -1,7 +1,5 @@
test_name "#7117 Broke the environment criteria in auth.conf"
-# curl -k -H "Accept: yaml" https://cent-55-64-1:8140/override/facts/cent-55-64-1.local
-
# add to auth.conf
add_2_authconf = %q{
path /
@@ -14,7 +12,11 @@ step "Save original auth.conf file and create a temp auth.conf"
on master, "cp #{config['puppetpath']}/auth.conf /tmp/auth.conf-7117; echo '#{add_2_authconf}' > #{config['puppetpath']}/auth.conf"
step "Fetch agent facts from Puppet Master"
-on agents, "curl -k -H \"Accept: yaml\" https://#{master}:8140/override/facts/cent-55-64-1.local"
+agents.each do |host|
+ on(host, "curl -k -H \"Accept: yaml\" https://#{master}:8140/override/facts/\`hostname -f\`") do
+ assert_match(/--- !ruby\/object:Puppet::Node::Facts/, stdout, "Agent Facts not returned for #{host}")
+ end
+end
step "Restore original auth.conf file"
on master, "cp -f /tmp/auth.conf-7117 #{config['puppetpath']}/auth.conf"
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list