summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/dns.rb
AgeCommit message (Collapse)Author
2016-04-22More updates to silence rubocop style-guides.Steve Kemp
These warnings were largely whitespace-based.
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-09Updated to test for more whitespace issues.Steve Kemp
2015-03-09Removed trailing whitespace from the codeSteve 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-09 Prefer single-quoted strings inside interpolations.Steve Kemp
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-01-08Simplified error messages for DNS failures.Steve Kemp
We show the result we expected and what we received, but we do so with quoted strings. So rather than: * one * two we show "one,two". This closes #8538.
2014-12-11Fixed typoPatrick J Cherry
2014-12-11Resolve DNS server name to an IP before connecting, so ruby knowsPatrick J Cherry
which protocol to use.
2014-12-11Further tidying the DNS class to use an array rather than a string toPatrick J Cherry
compare stuff.
2014-12-11make dns comparisons alL LoWeR CaSePatrick J Cherry
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.
2012-12-11 Updated to be more explicit in the error field.Steve Kemp
2012-12-11 Updated comments.Steve Kemp
2012-12-11 Updated to quote the expected results in the details field.Steve Kemp
2012-12-11 Use and require an exact match in DNS results.Steve Kemp
2012-12-10 Ensure we raise an exception if we're trying to resolve an unknown ↵Steve Kemp
record-type. Added test-case too.
2012-12-10Ensure DNS test returns nil if an unrecognised record type is given,Patrick J Cherry
to make sure error handling in the caller works.
2012-11-26 Ensure we load the resolving librarySteve Kemp
2012-11-23 Implemented DNS protocol-test.Steve Kemp
2012-11-23 Test that inverted() works for each protocol test we know about.Steve Kemp
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 stub out more code.Steve Kemp
2012-11-22 Updated DNSSteve Kemp
2012-11-21 Added. todo.Steve Kemp