diff --git a/acceptance/tests/modules/search/communication_error.rb b/acceptance/tests/modules/search/communication_error.rb index 8fb396e26..83527b061 100644 --- a/acceptance/tests/modules/search/communication_error.rb +++ b/acceptance/tests/modules/search/communication_error.rb @@ -1,20 +1,20 @@ begin test_name 'puppet module search should print a reasonable message on communication errors' step 'Stub http://forge.puppetlabs.com' apply_manifest_on master, "host { 'forge.puppetlabs.com': ip => '127.0.0.2' }" step "Search against a non-existent Forge" on master, puppet("module search yup"), :acceptable_exit_codes => [1] do - assert_equal <<-STDOUT, stdout + assert_match <<-STDOUT, stdout Searching http://forge.puppetlabs.com ... STDOUT - assert_equal <<-STDERR, stderr + assert_match <<-STDERR, stderr Error: Could not connect to http://forge.puppetlabs.com There was a network communications problem Check your network connection and try again STDERR end ensure step 'Unstub http://forge.puppetlabs.com' apply_manifest_on master, "host { 'forge.puppetlabs.com': ensure => absent }" end