1
test_name "#7117 Broke the environment criteria in auth.conf"
11
step "Create a temp auth.conf"
12
create_remote_file master, "/tmp/auth.conf-7117", add_2_authconf
14
on master, "chmod 644 /tmp/auth.conf-7117"
16
with_master_running_on(master, "--dns_alt_names=\"puppet, $(hostname -s), $(hostname -f)\" --rest_authconfig /tmp/auth.conf-7117 --verbose --autosign true") do
18
step "Run agent to upload facts"
19
on agents, puppet_agent("--test --server #{master}")
21
step "Fetch agent facts from Puppet Master"
23
on(host, "curl -k -H \"Accept: yaml\" https://#{master}:8140/override/facts/\`hostname -f\`") do
24
assert_match(/--- !ruby\/object:Puppet::Node::Facts/, stdout, "Agent Facts not returned for #{host}")