From bac589cdf4f85d1228cb4528094206b666a44c24 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 17 Nov 2012 15:32:41 +0000 Subject: Parse the banner. --- lib/custodian/parser.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 6407621..fb62e13 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -383,6 +383,14 @@ class MonitorConfig } + # + # TCP-tests will include a banner, optionally + # + if ( line =~ /\s+with\s+banner\s+'([^']+)'/ ) + test[:banner]=$1.dup + end + + # # HTTP-tests will include the expected result in one of two forms: # -- cgit v1.2.1