Files
weave-scope/integration/110_shutdown_test.sh
Tom Wilkie 8a8520ffc9 Make integration test check API responses contain expected containers.
Also
- Add test for clustering without weave.
- Update test template for docker 1.8
- Prefetch images
- Stop all containers when test finishes.
- Add small sleep after weave launch, and supply all the hosts to ensure IPAM works correctly.
2015-09-30 11:54:15 +00:00

17 lines
402 B
Bash
Executable File

#! /bin/bash
. ./config.sh
start_suite "Check scope exits cleanly within 10 seconds"
scope_on $HOST1 launch
scope_on $HOST1 stop
sleep 10
assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'app exiting'"
assert_raises "docker_on $HOST1 logs weavescope 2>&1 | grep 'probe exiting'"
assert_raises "docker_on $HOST1 inspect --format='{{.State.Running}}' weavescope" "false"
scope_end_suite