summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker/tests/README7
-rwxr-xr-xworker/tests/ftp.rb4
-rwxr-xr-xworker/tests/http.rb4
-rwxr-xr-xworker/tests/https.rb6
-rwxr-xr-xworker/tests/jabber.rb6
-rwxr-xr-xworker/tests/ldap.rb6
-rwxr-xr-xworker/tests/ping.rb6
-rwxr-xr-xworker/tests/rsync.rb6
-rwxr-xr-xworker/tests/smtp.rb6
-rwxr-xr-xworker/tests/ssh.rb6
10 files changed, 28 insertions, 29 deletions
diff --git a/worker/tests/README b/worker/tests/README
index ff3e25d..5d8b6d3 100644
--- a/worker/tests/README
+++ b/worker/tests/README
@@ -9,10 +9,9 @@
The class must implement the methods:
- run_test
+ run_test()
- get_details
+ error()
'run_test' will be called to run the test, returning true if passed, and false
- otherwise. In the event of a test failure 'get_details' will return
- something useful.
+ otherwise. In the event of a test failure 'error' will return something useful.
diff --git a/worker/tests/ftp.rb b/worker/tests/ftp.rb
index 9879c90..30b89d5 100755
--- a/worker/tests/ftp.rb
+++ b/worker/tests/ftp.rb
@@ -38,7 +38,7 @@ class FTPTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@@ -119,7 +119,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts tst.get_details()
+ puts tst.error()
end
end
diff --git a/worker/tests/http.rb b/worker/tests/http.rb
index bfd1820..d1faa4d 100755
--- a/worker/tests/http.rb
+++ b/worker/tests/http.rb
@@ -36,7 +36,7 @@ class HTTPTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@@ -92,7 +92,7 @@ class HTTPTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
diff --git a/worker/tests/https.rb b/worker/tests/https.rb
index f487b1d..77739d1 100755
--- a/worker/tests/https.rb
+++ b/worker/tests/https.rb
@@ -36,7 +36,7 @@ class HTTPSTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@@ -92,7 +92,7 @@ class HTTPSTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -172,7 +172,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts http.get_details()
+ puts http.error()
end
end
diff --git a/worker/tests/jabber.rb b/worker/tests/jabber.rb
index 6e34b52..bc4a5ec 100755
--- a/worker/tests/jabber.rb
+++ b/worker/tests/jabber.rb
@@ -39,7 +39,7 @@ class JABBERTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@error = ""
@@ -90,7 +90,7 @@ class JABBERTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -121,7 +121,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end
diff --git a/worker/tests/ldap.rb b/worker/tests/ldap.rb
index a966b6a..d89ee35 100755
--- a/worker/tests/ldap.rb
+++ b/worker/tests/ldap.rb
@@ -38,7 +38,7 @@ class LDAPTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@@ -84,7 +84,7 @@ class LDAPTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -116,7 +116,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end
diff --git a/worker/tests/ping.rb b/worker/tests/ping.rb
index 83a1c41..d6ac877 100755
--- a/worker/tests/ping.rb
+++ b/worker/tests/ping.rb
@@ -38,7 +38,7 @@ class PINGTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@error = ""
@@ -79,7 +79,7 @@ class PINGTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error()
return @error
end
@@ -110,7 +110,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end
diff --git a/worker/tests/rsync.rb b/worker/tests/rsync.rb
index e410454..1d4e49f 100755
--- a/worker/tests/rsync.rb
+++ b/worker/tests/rsync.rb
@@ -39,7 +39,7 @@ class RSYNCTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error()".
#
def run_test
@error = ""
@@ -90,7 +90,7 @@ class RSYNCTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -121,7 +121,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end
diff --git a/worker/tests/smtp.rb b/worker/tests/smtp.rb
index 113dd5f..58029e4 100755
--- a/worker/tests/smtp.rb
+++ b/worker/tests/smtp.rb
@@ -39,7 +39,7 @@ class SMTPTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error".
#
def run_test
@error = ""
@@ -90,7 +90,7 @@ class SMTPTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -121,7 +121,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end
diff --git a/worker/tests/ssh.rb b/worker/tests/ssh.rb
index 9fd2277..9f15860 100755
--- a/worker/tests/ssh.rb
+++ b/worker/tests/ssh.rb
@@ -37,7 +37,7 @@ class SSHTest
#
# Return "false" on failure.
#
- # If the test fails the details should be retrieved from "get_details".
+ # If the test fails the details should be retrieved from "error".
#
def run_test
@error = ""
@@ -88,7 +88,7 @@ class SSHTest
#
# Return the error text for why this test failed.
#
- def get_details
+ def error
return @error
end
@@ -120,7 +120,7 @@ if __FILE__ == $0 then
puts "TEST OK"
else
puts "TEST FAILED"
- puts obj.get_details()
+ puts obj.error()
end
end