From 9e80a84fa9c1f88bec08930075d56215c49465e8 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 19 Feb 2013 11:27:33 +0000 Subject: Period definitions for tests. For example: example.vm must run ping between 09-17 otherwise 'daytime ping failed'. --- t/test-custodian-parser.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 't') diff --git a/t/test-custodian-parser.rb b/t/test-custodian-parser.rb index 5676d5b..811cbb5 100755 --- a/t/test-custodian-parser.rb +++ b/t/test-custodian-parser.rb @@ -49,6 +49,13 @@ class TestCustodianParser < Test::Unit::TestCase end + def test_period + parser = Custodian::Parser.new() + result = parser.parse_line( "example.vm.bytemark.co.uk must run ping except between 00-24" ) + assert( result.nil? ) + end + + # # Test the different kinds of parsing: -- cgit v1.2.1