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 | 59f6a99cf4099a4286aaec8834887893e810950f (patch) | |
tree | 55a35626f4f90178b1bb5f5177f644c730fcf195 /lib/custodian/protocol-tests | |
parent | 7889b2df359b10a9fe1e319cfb0db03138d1a1a2 (diff) |
Format the text-inclusion error message properly
Diffstat (limited to 'lib/custodian/protocol-tests')
-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" } |