Add Redis test harness and user add/disable integration tests
Parallel harness (topology_redis.py, generate_redis_configs.py, docker-compose.redis.yml, run_redis_tests.sh) runs on port range 45xxx without conflicting with the legacy test stack. test_redis.py adds two integration tests: user add+auth and user disable rejection, both using the existing ClientPeer V2 auth from test_trunk.py.
This commit is contained in:
1 parent
b16653e4df
commit
363648ae43
5 files changed
+287
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
cleanup() {
|
||||
echo "=== Tearing down Redis test environment ==="
|
||||
docker compose -f docker-compose.redis.yml down -v --remove-orphans 2>/dev/null
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
echo "=== Generating Redis-test configs from topology_redis.py ==="
|
||||
python3 generate_redis_configs.py
|
||||
|
||||
echo "=== Building and starting Redis test stack ==="
|
||||
docker compose -f docker-compose.redis.yml up -d --build --wait
|
||||
|
||||
echo "=== Running Redis integration tests ==="
|
||||
python3 test_redis.py
|
||||
Reference in new issue
Block a user