summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
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. --HG-- rename : t/test-dns-types => t/test-dns-types.rb
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
--HG-- rename : t/test-ldap-probe.t => t/test-ldap-probe.rb
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.release-0.9-6Steve Kemp
For example: example.vm must run ping between 09-17 otherwise 'daytime ping failed'.
2013-02-13 Updated.Steve Kemp
2013-02-13 Added test code.Steve Kemp
2013-02-13 Updated test-suite now a username/password is required for LDAPSteve Kemp
2013-01-14 Test we get an error on non-strings.Steve Kemp
2012-12-31 Added trivial redis tests.Steve Kemp
2012-12-20 Added test-case for HTTP protocol matching against URI schemeSteve Kemp
2012-12-12 Added simple is-singleton test.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-07 The http/https alert is no longer special - allow it to be tested.Steve Kemp
2012-12-07 When reporting on failure-types the HTTP/HTTPS test is often reported ↵Steve Kemp
incorrectly. Fixed this now, based on the URL and added a test case.
2012-11-26 test the redis module tooSteve Kemp
2012-11-25 Parse the "otherwise 'xxxx'." part of the tests.Steve Kemp
2012-11-24 Test that each test-type returns the correct host.Steve Kemp
2012-11-24 Renamed 'custodian/protocoltest.rb' -> 'custodian/protocoltests.rb' to ↵Steve Kemp
match what we did with the alerts. --HG-- rename : lib/custodian/protocoltest.rb => lib/custodian/protocoltests.rb
2012-11-24 The argument to our class factories must be a non-nil string.Steve Kemp
2012-11-24 Added new alert-type, to merely write to a file.Steve Kemp
2012-11-24 Ensure that our alert-modules implement both raise + clearSteve Kemp
2012-11-24 Test that the type we guessed is the correct typeSteve Kemp
2012-11-24 Use the new get_type method to simplify the test-logic.Steve Kemp
2012-11-24 Initial/stub implementation of a factory for generating alerting objects.Steve Kemp
2012-11-24 Move the protocol-test includes into a single file to avoid duplication.Steve Kemp
2012-11-23 Test that macro-expansion works correctlySteve Kemp