Files
weave-scope/integration/330_application_edge_test.sh
2016-01-12 21:54:42 +00:00

22 lines
550 B
Bash
Executable File

#! /bin/bash
. ./config.sh
start_suite "Test long connections (procspy) between processes"
weave_on $HOST1 launch
scope_on $HOST1 launch --probe.conntrack=false
weave_on $HOST1 run -d --name nginx nginx
weave_on $HOST1 run -dti --name client alpine /bin/sh -c "while true; do \
nc nginx.weave.local 80 || true; \
sleep 1; \
done"
wait_for applications $HOST1 60 "nginx: worker process" nc
has applications $HOST1 "nginx: worker process"
has applications $HOST1 nc
has_connection applications $HOST1 nc "nginx: worker process"
scope_end_suite