forked from mtusi2026/mtusi2026lab7
Перенесены cmd/internal/config, compose.yaml, Dockerfile, скрипты, student-tests и evidence из mtusi-messenger (master, lab6). Skeleton lab7 (openapi/infrastructure 1.7.0, trust-matrix.md, security/THREAT_MODEL.md, infra/openbao, tests/security.py) сохранён; make test-security добавлен в Makefile.
22 lines
592 B
Bash
22 lines
592 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
OUT="$ROOT/evidence/cache"
|
|
GO="${GO:-go}"
|
|
|
|
cd "$ROOT"
|
|
mkdir -p "$OUT"
|
|
|
|
{
|
|
echo "# Cache consistency evidence (track 1)"
|
|
echo "# generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
echo "# redis: ${TEST_REDIS_HOST:-localhost}:${TEST_REDIS_PORT:-6379} db=${TEST_REDIS_DB:-1}"
|
|
echo
|
|
"$GO" test -tags=integration -count=1 -v -timeout=5m \
|
|
-run 'TestChatRepositorySuite|TestSessionRepositorySuite' \
|
|
./internal/storage/redis/...
|
|
} | tee "$OUT/consistency.txt"
|
|
|
|
echo "wrote $OUT/consistency.txt"
|