From 3f54d6c6a7c012dd1096d0c5b19646d930e806ea Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 10:41:40 +0000 Subject: Format the text-inclusion error message properly --- lib/custodian/protocol-tests/http.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/custodian/protocol-tests/http.rb b/lib/custodian/protocol-tests/http.rb index 3a0d1bd..102ffea 100755 --- a/lib/custodian/protocol-tests/http.rb +++ b/lib/custodian/protocol-tests/http.rb @@ -84,7 +84,7 @@ class HTTPTest puts "Testing for text in the response: '#{@test_data['http_text']}'" if ( @test_data['verbose'] ) if (! obj.content.match(/#{@test_data['http_text']}/i) ) - @error = "#{@error}

The response did not contain our expected text '#{test_data['http_text']}

'" + @error = "#{@error}

The response did not contain our expected text '#{test_data['http_text']}'

" end end @@ -119,14 +119,14 @@ if __FILE__ == $0 then # Sample data. # test = { - "target_host" => "http://collector2.sh.bytemark.co.uk/", + "target_host" => "http://itsdanbull.co.uk/", "test_type" => "http", "verbose" => 1, "timeout" => 3, "test_port" => 80, "test_alert" => "Collector is unavailable", "http_status" => "200", - "http_text" => "Bytemark Monitor" + "http_text" => "Dan Bull" } -- cgit v1.2.1