test: add local 2x2 route topology
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
source "$(dirname "$0")/lib.sh"
|
||||
|
||||
for ((index=${#E2E_NODES[@]} - 1; index >= 0; index--)); do
|
||||
compose_node "${E2E_NODES[index]}" down --remove-orphans
|
||||
done
|
||||
compose_control down --remove-orphans
|
||||
|
||||
label=$(docker network inspect \
|
||||
-f '{{ index .Labels "archive-control.e2e" }}' \
|
||||
"$E2E_NETWORK" 2>/dev/null || true)
|
||||
if [[ "$label" == "true" ]]; then
|
||||
docker network rm "$E2E_NETWORK" >/dev/null
|
||||
fi
|
||||
|
||||
printf 'E2E containers stopped; bind-mounted runtime state was retained.\n'
|
||||
|
||||
Reference in New Issue
Block a user