summaryrefslogtreecommitdiff
path: root/lib/custodian/testfactory.rb
AgeCommit message (Collapse)Author
2018-02-22Allow tests to set a subject.Steve Kemp
This updates the parser, globally, to allow: .... with subject 'xxx'
2016-04-22More rubocop fixups.Steve Kemp
These are again mostly based around whitespace-changes.
2015-07-29Ensure that protocol-handlers are lower-case.Steve Kemp
This allows you to write the following (identical) tests: foo must run FTP. foo must run ftp. foo must run FtP. This is mostly a neatness update.
2015-04-16Test our enum-like type works as expected.Steve Kemp
Specifically that we can get the value back as a string, and work with the ordinal too.
2015-04-16Updated to use types for test-returns.Steve Kemp
This commit introduces a major change in custodian. In the past any test had either two results: * return false - The test failed. * return true - The test passed. We're now using an enum, more or less, such that a test may return a "skipped" result which will neither raise nor clear any alert(s). This is useful in its own right but is being introduced specifically to allow SSL-certificate tests to avoid raising and clearing outside working days/hours. This closes #10328. This fixes #10328.
2015-03-09Removed trailing whitespace from the codeSteve Kemp
2015-03-09Remove spaces inside empty hashesSteve Kemp
2015-03-09Use def with parentheses when there are parameters.Steve Kemp
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-09Don't use parenthesis aroudn conditions in an if.Steve Kemp
2015-03-09Avoid "Array.new" and "Hash.new"Steve Kemp
Instead use {} + ().
2015-03-02Explicitly abort on unknown test-typesSteve Kemp
2015-02-18Minor commenting/whitespace fixups.Steve Kemp
No functional changes.
2015-02-17Allow multiple handlers to register themselves forSteve Kemp
a given input-line.
2012-11-25 Parse the "otherwise 'xxxx'." part of the tests.Steve Kemp
2012-11-24 The argument to our class factories must be a non-nil string.Steve Kemp
2012-11-24 Added test_type() to return the name this class was registered with.Steve Kemp
2012-11-24 Quote the test-type if we fail to create one.Steve Kemp
2012-11-23 Allow the test-factory to return the known-test types, and then test ↵Steve Kemp
*each* of the with a simple constructed test.
2012-11-23 Removed duplicate member-variables for subclasses.Steve Kemp
Allow test-inversion via "must not run".
2012-11-23 Updated to allow the tests to be inverted via "must *not* run ..."Steve Kemp
2012-11-22 Removed JSON-decoding.Steve Kemp
2012-11-22 Updated comments. Added 'port'Steve Kemp
2012-11-22 Add accessfor for targetSteve Kemp
2012-11-22 Whitespace updates.Steve Kemp
2012-11-22 Moved TestFactory to the custodian-namespace.Steve Kemp
2012-11-22 RenamedSteve Kemp