summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-03-09Avoid "Array.new" and "Hash.new"Steve Kemp
Instead use {} + ().
2015-03-09Removed bogus period.Steve Kemp
2015-03-09Omit the parentheses in defs when the method doesn't accept any arguments.Steve Kemp
This is neater.
2015-03-09Minor indentation fixup.Steve Kemp
2015-03-09Don't use "::" for method-calls.Steve Kemp
Instead prefer ".". Flagged by rubocop
2015-03-09Avoid arguments we're not using.Steve Kemp
Having methods take arguments which are ignored is a misleading thing, prefix with "_" to make that explicit, or remove.
2015-03-09Removed dead code.Steve Kemp
After raising an exception the following code could not be reached.
2015-03-09Avoid redundent ".to_s" methods.Steve Kemp
These are not required if the argument is string already, or has a _to_s method which will be automatically invoked by magic.
2015-03-09Don't rescue the 'Exception'Steve Kemp
Instead rescue a 'StandardError' which is slightly more specific. (Rescuing more specific exceptions is good.)
2015-03-09Avoid useless wrapping of return-value.Steve Kemp
This: def foo line end Is the same as this: def foo return( line ) end
2015-03-09File.exists? is deprecated.Steve Kemp
We prefer "File.exist?". Flagged by rubocop.
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-03-04Allow SSL-check to be disabled, via "no_ssl_check"Steve Kemp
2015-03-04New release - reporting SSL errors correctly.Steve Kemp
2015-03-04Work correctly if SSL library is too old for SNI.Steve Kemp
2015-03-04Reinstate the default logger as - file.Steve Kemp
2015-03-04Updated comments and code-order. No functional change.Steve Kemp
2015-03-04Don't use a logger.Steve Kemp
Instead we run quietly if nothing was output, and run verbosely if we see "--verbose".
2015-03-04New releaseSteve Kemp
2015-03-04Allow tests to be qualified IPv4/IPv6-only.Steve Kemp
Via "ipv6_only" and "IPv4_only"
2015-03-04Explictly convert the class to a string.Steve Kemp
This is required under Ruby 1.8, as I discovered when deploying to offsite3.
2015-03-02Explicitly abort on unknown test-typesSteve Kemp
2015-03-02Allow IPv4 and IPv6 tests to be carried out.Steve Kemp
If a target is a hostname we'll explicitly resolve it for both IPv4 and IPv6.
2015-03-02Added named-test.Steve Kemp
THis tests that a server is listening on :53.
2015-03-02Test for IPv4 and IPv6 addresses explicitly.Steve Kemp
If we're given an IPv4 or IPv6 address then use it, if not then attempt to resolve the name that we've been given to one/other/both of these types and test in turn.
2015-02-18Added SSL checking magic, from Patrick.Steve Kemp
This is a clone of the code that we're already using for SSL checking of domains. The biggest excpetion is that I've disabled the SSL v2/v3 checking because that is causing alerts on https://google.com/ This closes #9563.
2015-02-18Reordered registration.Steve Kemp
This allows the test-suite to pass.
2015-02-18Minor commenting/whitespace fixups.Steve Kemp
No functional changes.
2015-02-18Prefer "while true" to "while 1"Steve Kemp
Also only sleep between fetches if we couldn't find a job because the queue was empty.
2015-02-18Updated comments for better accuracy.Steve Kemp
2015-02-18Removed reference to timeout for tests.Steve Kemp
This was an invalid comment, the timeout related to HTTP-fetches.
2015-02-18Show NOP messages.Steve Kemp
2015-02-18Correctly parse tests with multiple implementation-types.Steve Kemp
We now parse a single test-definition into multiple test-implementations. This isn't required here because the parser only needs to know that the configuration file *can* be parsed, not what the result is. Validate that we got an array, but otherwise ignore the results after the first.
2015-02-18Removed diagnostic printing.Steve Kemp
2015-02-18Added SSL-expiry checker.Steve Kemp
This is a stub for the moment, but it validates that we can have multiple handlers for a given test-type. This updates #9558.
2015-02-18Minor formatting and commenting update.Steve Kemp
2015-02-18Store the test-class in the redis-state.Steve Kemp
We need to do this such that we can show all possible results of a test in the status-page. There might be three back-ends with different results and if we filter by class-type we'll be able to see that.
2015-02-18Updated the way we wait for jobs.Steve Kemp
The new approach uses the redis gems timeout functionality and ensures we never return a null-job. Instead we timeout and repeat with a stalling-sleep in the way. This closes #9553.
2015-02-18Branch-merge.Steve Kemp
2015-02-17fix the redis queue not to melt the cpu when polling redis for a jobPatrick J Cherry
2015-02-17Deal with multiple test-implementations.Steve Kemp
As soon as we allow multiple test-implementations we get into a mess, as Mauve regards an ID as unique and that is based upon the test-definition not the implementing method We want to allow: * HTTPS test to succeed. * SSL-check to fail. Which means multiple tests of type "https" will have different IDs. Force this by adding on the class of the implementation.
2015-02-17Now we work with multiple implementations.Steve Kemp
2015-02-17Allow multiple handlers to register themselves forSteve Kemp
a given input-line.
2015-02-17Changed the way that we process a single job.Steve Kemp
We now work on the assumption that a single "job", pulled from the queue, might contain multiple "test" objects. These are the instances of the protocol-testers which we actually execute. This is part of #9558.
2015-02-13Added 5.28.58.0/24 to the Bytemark ranges.Steve Kemp
2015-02-12Make the test-definition available to the redis-alerter.Steve Kemp
2015-02-12Updated to require JSONSteve Kemp
2015-02-12Updated to store the test results in a set.Steve Kemp
The redis-state "alerter" saves state in a useful way for the future, and will now save an array of hashes - each has corresponding to a useful result.
2015-02-06Explicitly report time in MSSteve Kemp
2015-02-05Better alerting metric for graphite.Steve Kemp
We now record: custodian.$type.$host.test_duration [time]