Add a check that the top-level UI is not empty

This commit is contained in:
Bryan Boreham
2018-11-23 13:05:21 +00:00
parent 323720869f
commit a32ebf2316

View File

@@ -13,4 +13,8 @@ wait_for_containers "$HOST1" 60 weave weavescope
has_container "$HOST1" weave
has_container "$HOST1" weavescope
# Fail if the top-level UI is suspiciously small
ui_len="$(curl -s "http://$HOST1:4040/" | wc -c)"
assert_raises "(( $ui_len > 500 ))" 0
scope_end_suite