Skip to content

Commit 8d300eb

Browse files
authored
Merge pull request #7420 from melissa/ticket/5.5.x/PUP-9076-take-2
(PUP-9076) Puppet should fail when it cannot find a functional server
2 parents 33b8419 + 389ddb2 commit 8d300eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

acceptance/tests/reports/failover_master.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def remove_reports_on_master(master_reportdir, agent_node_name)
3737
end
3838

3939
step "master_field should not appear when no master could be conatacted" do
40-
on(agent, puppet("agent", "-t", "--config #{tmpconf}", "--server_list=badmaster:1","--http_connect_timeout=5s", "--report_server=#{master}"), :acceptable_exit_codes => [1])
41-
on(master, "cat #{master_reportdir}/#{agent.node_name}/*") do
42-
assert_no_match(/master_used:/, stdout, "did not expect master_used to be in the report")
40+
on(agent, puppet("agent", "-t", "--config #{tmpconf}", "--server_list=badmaster:1","--http_connect_timeout=5s", "--report_server=#{master}"), :acceptable_exit_codes => [1]) do
41+
assert_match(/Could not select a functional puppet master from server_list:/, stderr)
4342
end
4443
remove_reports_on_master(master_reportdir, agent.node_name)
4544
end

0 commit comments

Comments
 (0)