330_process_edge_test.sh 530 B

1234567891011121314151617181920212223
  1. #! /bin/bash
  2. # shellcheck disable=SC1091
  3. . ./config.sh
  4. start_suite "Test long connections between processes"
  5. weave_on "$HOST1" launch
  6. scope_on "$HOST1" launch
  7. server_on "$HOST1"
  8. weave_proxy_on "$HOST1" run -dti --name client alpine /bin/sh -c "while true; do \
  9. nc nginx.weave.local 80 || true; \
  10. sleep 1; \
  11. done"
  12. wait_for processes "$HOST1" 60 "nginx: worker process" nc
  13. has processes "$HOST1" "nginx: worker process"
  14. has processes "$HOST1" nc
  15. has_connection processes "$HOST1" nc "nginx: worker process"
  16. scope_end_suite