300_internet_edge_test.sh 682 B

123456789101112131415161718192021222324252627282930
  1. #! /bin/bash
  2. # shellcheck disable=SC1091
  3. . ./config.sh
  4. start_suite "Test short lived connections from the Internet [DISABLED]"
  5. weave_on "$HOST1" launch
  6. scope_on "$HOST1" launch
  7. ## Test disabled: it is currently flaky
  8. ## https://github.com/weaveworks/scope/issues/2308
  9. # docker_on "$HOST1" run -d -p 80:80 --name nginx nginx
  10. #
  11. # do_connections() {
  12. # while true; do
  13. # curl -s "http://$HOST1:80/" >/dev/null || true
  14. # sleep 1
  15. # done
  16. # }
  17. # do_connections &
  18. #
  19. # wait_for_containers "$HOST1" 60 nginx "The Internet"
  20. #
  21. # has_connection_by_id containers "$HOST1" "in-theinternet" "$(node_id containers "$HOST1" nginx)"
  22. #
  23. # kill %do_connections
  24. scope_end_suite