test: add local 2x2 route topology

This commit is contained in:
2026-07-23 03:14:16 +00:00
parent 10e803eaee
commit a66269cb69
27 changed files with 775 additions and 7 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
E2E_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
E2E_NETWORK=archive-control-e2e
E2E_NODES=(cache-1 cache-2 archive-1 archive-2)
if [[ -z "${ARCHIVE_CONTROL_SOURCE:-}" ]]; then
control_candidate="$E2E_ROOT/../../../mogic-bot/mogic-repo"
if [[ -d "$control_candidate" ]]; then
ARCHIVE_CONTROL_SOURCE=$(cd "$control_candidate" && pwd)
else
ARCHIVE_CONTROL_SOURCE=$control_candidate
fi
fi
export ARCHIVE_CONTROL_SOURCE
compose_control() {
docker compose \
-p archive-e2e-control \
-f "$E2E_ROOT/control/compose.yaml" "$@"
}
compose_node() {
local node=$1
shift
docker compose \
-p "archive-e2e-${node}" \
-f "$E2E_ROOT/${node}/compose.yaml" "$@"
}