diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-02-19 11:27:33 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-02-19 11:27:33 +0000 |
commit | 8d97779be86177f3e15ba8edf43fb6831c843528 (patch) | |
tree | fce12371002017f5aa08f801c5c4e5b4cbc02e63 /t | |
parent | 86075d93e40765e2abd18ed049d4f15516798db8 (diff) |
Period definitions for tests.release-0.9-6
For example:
example.vm must run ping between 09-17 otherwise 'daytime ping failed'.
Diffstat (limited to 't')
-rwxr-xr-x | t/test-custodian-parser.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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: |