diff options
Diffstat (limited to 'worker/tests/https.rb')
-rwxr-xr-x | worker/tests/https.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/worker/tests/https.rb b/worker/tests/https.rb index f1b5843..2575a35 100755 --- a/worker/tests/https.rb +++ b/worker/tests/https.rb @@ -6,7 +6,7 @@ require 'uri' -class HTTPTest +class HTTPSTest # # Data passed from the JSON hash. @@ -42,6 +42,16 @@ class HTTPTest @error = "" + + # + # Ensure we had a URL + # + if ( @test_data[:target_host].nil? ) + @error = "Missing URL for the test" + return false + end + + # # Do the fetch, if this success then we'll have the # @status + @text setup |