summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2015-04-16Updated to cope with renamed API.Steve Kemp
Rather than having "inverted" we now name the test-method "inverted?" which is more ideomatic.
2015-04-16Updated test to pass with new IPs.Steve Kemp
Hard-coding IPs is a bad choice, but the alternative here is to exec( `dig -t a`) or similar which seems equally bad.
2015-03-10Correctly skip the rubocop testing if the gem is missing.Steve Kemp
We now use the Test::Unit::TestCase.skip() method if the gem is missing, rather than kill the whole suite.
2015-03-10Removed this test-case.Steve Kemp
The method-stubbing doesn't work, and so it is obsolete.
2015-03-09Added test-case for quiet-rubocop.Steve Kemp
This is designed to ensure that we meet the style/code guideline defined in `.rubocop.yml`.
2015-03-09Removed trailing whitespace from the codeSteve Kemp
2015-03-09Remove spaces before commas.Steve 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-09Do not terminate expressions with ";".Steve Kemp
Ruby is not Perl, much as I sometimes wish it were.
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-09Omit the parentheses in defs when the method doesn't accept any arguments.Steve Kemp
This is neater.
2015-03-09Don't use "::" for method-calls.Steve Kemp
Instead prefer ".". Flagged by rubocop
2015-03-09Added more tests.Steve Kemp
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-02-18Updated to load the test-implementations more carefully.Steve Kemp
This fully explores the parsing and unparsing of the test-objects, with the exceptions of DNS, FTP, LDAP, and SSLCertificates.
2015-02-18Minor test-case update.Steve Kemp
Now we have multiple HTTP-implementations we need to update to make sure they're all caught.
2015-02-18Updated tests to pass with new API.Steve Kemp
The class-factory for instantiating tests now returns an array rather than a string.
2015-02-17Updated for new test-type API.Steve Kemp
Now that the class-factory returns an Array, we've updated the test-cases to continue to pass.
2015-02-05Test that "flush!" is defined as a method.Steve Kemp
2015-01-29Added simple test casesSteve Kemp
2015-01-13Updated mocha-loadingSteve Kemp
2015-01-13Test that returning the test-definition works.Steve Kemp
This will be needed when we want to save to the redis-log.
2015-01-13Don't marry our code to ruby1.8Steve Kemp
2015-01-13Updated the mocha-gem usageSteve Kemp
2015-01-08Updated test to cope with DNS changesSteve Kemp
These days google.com resolves over both IPv4 and IPv6.
2014-12-11Moved test-dns-types so that it gets included in the test suite.Patrick J Cherry
Added test for run_test.
2014-12-11Tidied up test suite include pathPatrick J Cherry
2014-12-11Renamed ldap test so it gets included in the test suitePatrick J Cherry
2014-12-11Fixed DNS reverse lookups to use getnameinfoPatrick J Cherry
2013-11-22 Updated tests to succeed.Steve Kemp
Since we test dns lookups and reverse DNS lookups then we need to update the hostnames which have aged into a broken set of tests.
2013-10-15 We now allow "with cache busting", and "without cache busting".Steve Kemp
2013-10-15 Fixed test cases to succeed.Steve Kemp
2013-08-05 Ignore the dnsbl test.Steve Kemp
2013-06-24Updated the code to be more module.Steve Kemp
Broke down the inside? function into a function for returning the hours in a period, and for sanitizing hour strings "14" vs. "2pm", etc. Updated test-cases to match.
2013-06-24The worst-case for testing a time-period, and one used in theSteve Kemp
parser test, is matching against a period that covers the full 24 hours. Correctly terminate this case, and add a new test-case to ensure that this is always correct.
2013-06-24Avoid using a bogus timeperiod.Steve Kemp
Our utility class for parsing time-spans uses 00-23, rather than 00-24. Update the use of the time-period to avoid the bogus "24 hour".
2013-06-24Updated the tests to ensure the "current hour" is valid.Steve Kemp
This means testing values outside the range of 0-23 (inclusive). We did this already for the start & end times. This updates #4451.
2013-06-24 Added Custodian::Util::TimeSpanSteve Kemp
This class is used to determine whether an "hour" is within a given hour-span. e.g. To cope with: foo must run ping except between 04-06 otherwise 'alert'. This updates issue #4551.
2013-06-24 Updated the expected records now Steve's domain has moved.Steve Kemp
2013-05-15 Updated to test types of integer values.Steve Kemp
2013-04-23 Updated the parser to allow the test to specify whether HTTP-redirectsSteve Kemp
are followed. Added test-cases to match.
2013-02-25 Added port-guessing test.Steve Kemp
2013-02-25 Loading mauve/redis is optional. The test suite will skip them if notSteve Kemp
present.
2013-02-19 Period definitions for tests.Steve Kemp
For example: example.vm must run ping between 09-17 otherwise 'daytime ping failed'.
2013-02-13 Updated.Steve Kemp