summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2016-04-21added a simple tftp utilityJames F. Carter
2016-02-10Don't allow limiting protocl on HTTP/HTTPS tests.root
We cannot allow HTTP/HTTPS to be limited by protocol, such as IPv4-only or IPv6-only. Raise an error in the parser if this is attempted. Added test-case to confirm, and this closes #12488.
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-10Updated tests to use 'omit' when availablePatrick J Cherry
The redis and rubocop tests now skip on ruby > 2.0 (I think)
2016-02-10Adjusted http with content string parsing.Patrick J Cherry
It now matches "can't match" and 'he said "ha!"'. Added tests.
2015-12-18Removed references and support for beanstalkd.Steve Kemp
The beanstalkd queue used to be used in the past, and we later added support for Redis via a simple abstraction layer. But now we've no longer tested and used beanstalkd for over a year, and the client-libraries are no longer available as native Debian packages. With that in mind we've excised the code, although left the abstraction-class in-place.
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-07-29Loosen teh grammar on tcp-tests.Steve Kemp
In the past we needed to write: must run tcp on 3306. Now we can add the "port" to match the rest of the tests: must run tcp on port 3306.
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-07-29Test that we can parse an RDP-test.Steve Kemp
This will ensure that it uses the correct port.
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 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.