100_launch_test.sh 423 B

1234567891011121314151617181920
  1. #! /bin/bash
  2. # shellcheck disable=SC1091
  3. . ./config.sh
  4. start_suite "Launch scope and check it boots"
  5. weave_on "$HOST1" launch
  6. scope_on "$HOST1" launch
  7. wait_for_containers "$HOST1" 60 weave weavescope
  8. has_container "$HOST1" weave
  9. has_container "$HOST1" weavescope
  10. # Fail if the top-level UI is suspiciously small
  11. ui_len="$(curl -s "http://$HOST1:4040/" | wc -c)"
  12. assert_raises "(( $ui_len > 500 ))" 0
  13. scope_end_suite