Revert #1967 (container reuse)
This commit is contained in:
1 parent
166d4afad8
commit
5e03c0fe25
2 files changed
+42
-92
No files matched your search
@@ -1,30 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
. ./config.sh
|
||||
|
||||
start_suite "Check restart re-uses same container when possible"
|
||||
|
||||
ID=$(weave_on $HOST1 launch-router)
|
||||
weave_on $HOST1 stop-router
|
||||
assert "weave_on $HOST1 launch-router" "$ID"
|
||||
# Can't start if already running with different args
|
||||
assert_raises "weave_on $HOST1 launch-router --log-level=debug" 1
|
||||
# Stop then start with different arg
|
||||
weave_on $HOST1 stop-router
|
||||
ID2=$(weave_on $HOST1 launch-router --log-level=debug)
|
||||
assert "[ $ID != $ID2 ]"
|
||||
|
||||
# Stop then start with different password
|
||||
weave_on $HOST1 stop-router
|
||||
ID3=$(weave_on $HOST1 launch-router --password=xyzzy)
|
||||
assert "[ $ID2 != $ID3 ]"
|
||||
# Stop then start with same password
|
||||
weave_on $HOST1 stop-router
|
||||
assert "weave_on $HOST1 launch-router --password=xyzzy" "$ID3"
|
||||
|
||||
# Fails on bad argument
|
||||
assert_raises "weave_on $HOST1 launch-plugin --foo" 1
|
||||
# Fails again on bad argument, although there is a dead container
|
||||
assert_raises "weave_on $HOST1 launch-plugin --foo" 1
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user