diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-13 13:08:35 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-13 13:08:35 +0000 |
commit | ab876665a2cf25b1bf557ea7d6cd9ff7e7923db6 (patch) | |
tree | 6b6affb2de6d84f3935a5cf5d6b2ce59f846830e /worker/tests | |
parent | 37b701fc0c7002e2d84f2d61bd9c57085c8b9542 (diff) |
Renamed 'get_details()' to 'error()'.
Diffstat (limited to 'worker/tests')
-rw-r--r-- | worker/tests/README | 7 | ||||
-rwxr-xr-x | worker/tests/ftp.rb | 4 | ||||
-rwxr-xr-x | worker/tests/http.rb | 4 | ||||
-rwxr-xr-x | worker/tests/https.rb | 6 | ||||
-rwxr-xr-x | worker/tests/jabber.rb | 6 | ||||
-rwxr-xr-x | worker/tests/ldap.rb | 6 | ||||
-rwxr-xr-x | worker/tests/ping.rb | 6 | ||||
-rwxr-xr-x | worker/tests/rsync.rb | 6 | ||||
-rwxr-xr-x | worker/tests/smtp.rb | 6 | ||||
-rwxr-xr-x | worker/tests/ssh.rb | 6 |
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 |