Dump the zone database status on "weave status"

Fix the smoke test by updating the regexps used for parsing "weave status" output
This commit is contained in:
Alvaro Saurin committed 2015-05-28 09:12:53 +02:00
1 parent 32627eccbf
commit 40d7b2a87d
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -21,11 +21,11 @@ assert_zone_records() {
FQDN=$1; shift
# Assert correct number of records exist
assert "weave_on $HOST status | grep \"^$CID\" | wc -l" $#
assert "weave_on $HOST status | grep \"^$CID\" | grep -oE \"\b([0-9]{1,3}\.){3}[0-9]{1,3}\b\" | wc -l" $#
# Assert correct records exist
for IP; do
assert_raises "weave_on $HOST status | grep \"^$CID $IP $FQDN$\""
assert_raises "weave_on $HOST status | grep \"$CID\" | grep \"$IP\" | grep \"$FQDN\""
done
}