summaryrefslogtreecommitdiff
path: root/t/test-custodian-parser.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-02-19 11:27:33 +0000
committerSteve Kemp <steve@steve.org.uk>2013-02-19 11:27:33 +0000
commit9e80a84fa9c1f88bec08930075d56215c49465e8 (patch)
tree647195aab791e8cee0f33110634b80b94c4b47ab /t/test-custodian-parser.rb
parenta524a972f47d932e9625eb716c1c61d8f4f283ad (diff)
Period definitions for tests.
For example: example.vm must run ping between 09-17 otherwise 'daytime ping failed'.
Diffstat (limited to 't/test-custodian-parser.rb')
-rwxr-xr-xt/test-custodian-parser.rb7
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: