summaryrefslogtreecommitdiff
path: root/t/test-custodian-parser.rb
AgeCommit message (Collapse)Author
2016-02-10Adjusted greediness of regex in http with contentPatrick J Cherry
It should match the next occurrence of the opening quote type, not the last.
2016-02-10Adjusted http with content string parsing.Patrick J Cherry
It now matches "can't match" and 'he said "ha!"'. Added tests.
2015-08-07Ensure that we correctly parse bogus macro-definitions.Steve Kemp
We've always had an implicit rule in macro-definitions, that they end with a period. This meant that the first line is valid: FOO is bar.vm.bytemark.co.uk. However we'd expect this to fail: FOO is bar.vm.bytemark.co.uk A similar issue would arise if a macro-definition involved more than one host, only the first would be valid. We've fixed this now, such that the trailing period is optional.
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-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-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-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
2013-10-15 We now allow "with cache busting", and "without cache busting".Steve Kemp
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-04-23 Updated the parser to allow the test to specify whether HTTP-redirectsSteve Kemp
are followed. Added test-cases to match.
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 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-11-25 Parse the "otherwise 'xxxx'." part of the tests.Steve Kemp
2012-11-23 Test that macro-expansion works correctlySteve Kemp
2012-11-23 Updated test-cases to cover different parsing routes.Steve Kemp
2012-11-23 Removed the old test cases and added new ones.:wqSteve Kemp