Files
weave/test/655_proxy_large_http_chunks_test.sh
T
Marc CARRE 43249a8d39 Change all launch-*/stop-* commands to launch/stop.
Given `proxy` & `router` processes have been merged, `launch-proxy`,
`launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and
should just be `launch` and `stop` with the appropriate flags.
2017-05-10 10:25:36 +00:00

25 lines
594 B
Bash
Executable File

#! /bin/bash
. "$(dirname "$0")/config.sh"
start_suite "Check the proxy handles arbitrarily large http chunks"
# docker images returns all its data as one giant http chunk.
base=scratch
for i in `seq 0 4`; do
docker_on $HOST1 build -t image$i >/dev/null - <<-EOF
FROM $base
LABEL image${i}_biglabel "$(printf %8192s)"
EOF
base=image$i
done
# Sanity-check that it's big enough to cause issues.
assert_raises "test $(curl -s http://$HOST1:$DOCKER_PORT/v1.19/images/json?all=true | wc -c) -gt 65536"
weave_on $HOST1 launch
assert_raises "proxy docker_on $HOST1 images -a"
end_suite