diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-15 10:41:40 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-15 10:41:40 +0000 |
commit | 3f54d6c6a7c012dd1096d0c5b19646d930e806ea (patch) | |
tree | 55a35626f4f90178b1bb5f5177f644c730fcf195 | |
parent | 984ea976d1ca308955650ed137118b5d1fbd493b (diff) |
Format the text-inclusion error message properly
-rwxr-xr-x | lib/custodian/protocol-tests/http.rb | 6 |
1 files 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}<p>The response did not contain our expected text '#{test_data['http_text']}</p>'" + @error = "#{@error}<p>The response did not contain our expected text '#{test_data['http_text']}'</p>" 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" } |