Merge pull request #3440 from weaveworks/test-basic-ui

Add a check that the top-level UI is not empty
This commit is contained in:
Bryan Boreham
2018-11-28 11:14:11 +00:00
committed by GitHub

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