summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
AgeCommit message (Collapse)Author
2016-04-22More updates to silence rubocop style-guides.Steve Kemp
These warnings were largely whitespace-based.
2015-07-29Loosen teh grammar on tcp-tests.Steve Kemp
In the past we needed to write: must run tcp on 3306. Now we can add the "port" to match the rest of the tests: must run tcp on port 3306.
2015-04-16Updated test-handler for new API.Steve Kemp
This update consists of two changes: * No longer return "true" or "false" instead return "TEST_FAILED", or "TEST_SUCCEEDED". * Removed the testing of test-inversion from the class, now it lives in the base-class where it should have done all along.
2015-03-09Show error-message clearly on connection-failure.Steve Kemp
This was failing because '$ERROR_INFO' is only available if you require 'English'
2015-03-09Removed trailing whitespace from the codeSteve Kemp
2015-03-09More minor space fixupsSteve Kemp
2015-03-09Whitespace fixups.Steve Kemp
These were all identified and suggested by rubocop.
2015-03-09Removed spaces inside parenthesis.Steve Kemp
2015-03-09Prefer single-quotes when you don't need interpolation.Steve Kemp
So "foo" is less good than 'foo'.
2015-03-09Avoid redudent returns.Steve Kemp
The last expression of a method is the return value. So: def foo; false ; end Is the same as: def foo; return false; end
2015-03-09Don't use parenthesis aroudn conditions in an if.Steve Kemp
2015-03-09Do not use parentheses for method calls with no arguments.Steve Kemp
This is neater. Flagged by rubocop
2015-03-09Avoid "Array.new" and "Hash.new"Steve Kemp
Instead use {} + ().
2015-03-09Avoid useless wrapping of return-value.Steve Kemp
This: def foo line end Is the same as this: def foo return( line ) end
2015-03-09Use long-namesSteve Kemp
Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop
2015-03-04Allow tests to be qualified IPv4/IPv6-only.Steve Kemp
Via "ipv6_only" and "IPv4_only"
2015-03-02Allow IPv4 and IPv6 tests to be carried out.Steve Kemp
If a target is a hostname we'll explicitly resolve it for both IPv4 and IPv6.
2013-05-20 Updated to test the kind of argument correctly.Steve Kemp
2013-05-20 The banner matching now copes with a string or a regexp.Steve Kemp
2013-05-20 We must read a line from the socket if doing a banner comparison.Steve Kemp
2013-05-20 Default to not reading a banner.Steve Kemp
2013-05-15 Honour the global timeout period.Steve Kemp
The global configuration file, /etc/custodian/custodian.cfg, has a timeout=XX setting in it. Until now we've ignored it and used a fixed timeout of 20/30 seconds. Now we fully honour the specified value.
2013-05-15 The TCP-test now uses a regexp.Steve Kemp
Each test has been updated to pass a regexp object to the tcp.rb primitive which actually does the socket connection. This closes #4036
2013-05-13 Really use sysread.Steve Kemp
2013-05-13 Use sysread() rather than readSteve Kemp
2013-05-13 Don't write to the TCP socket for tcp-testing.Steve Kemp
2012-11-24 Removed the trailing ".rb" from our 'require ...' lines.Steve Kemp
2012-11-23 Removed duplicate member-variables for subclasses.Steve Kemp
Allow test-inversion via "must not run".
2012-11-22 Parse the configuration file into arrays of jobs, via our test-factorySteve Kemp
2012-11-22 Whitespace updates.Steve Kemp
2012-11-22 Moved tests into a namespace.Steve Kemp
2012-11-22 Updated to require libraries more sanelySteve Kemp
2012-11-22 Renamed to use TestFactory.Steve Kemp
2012-11-21 Make the banner-reading optional - for services that don't need it.Steve Kemp
2012-11-21 Serialize and cosntruct neatlySteve Kemp
2012-11-21 Added .to_json method to serialize our tests.Steve Kemp
2012-11-21 whitespace & comment update.Steve Kemp
2012-11-21 Updated so that we have a working tcp-primitive which the SSH test uses.Steve Kemp
2012-11-21 Added stub for class-factory + test objects.Steve Kemp