55 lines
3.4 KiB
Plaintext
55 lines
3.4 KiB
Plaintext
UTC: 2026-11-04T22:39:51.907732+00:00
|
|
Command: python3 student-tests/run_all.py
|
|
RUN: make check
|
|
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
RUN: make test
|
|
python3 tests/smoke.py --base-url "http://localhost:8080"
|
|
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
|
RUN: /Library/Developer/CommandLineTools/usr/bin/python3 student-tests/security.py
|
|
PASS: malformed JSON, strict fields/types, whitespace, limits, cursor resource binding, invalid chat atomicity, concurrent username uniqueness
|
|
RUN: /Library/Developer/CommandLineTools/usr/bin/python3 student-tests/lab1_own_tests.py
|
|
PASS: own negative, access-control and multi-page tests
|
|
RUN: /Library/Developer/CommandLineTools/usr/bin/python3 student-tests/lab1_concurrency.py
|
|
PASS: 10 concurrent clients -> 100 successful messages -> 100 unique messages
|
|
RUN: /Library/Developer/CommandLineTools/usr/bin/python3 student-tests/level4.py
|
|
PASS: actual cached public profile, TTL <=60 seconds, at least 3 Redis cache hits
|
|
Container mtusi2026lab2-cache-1 Stopping
|
|
Container mtusi2026lab2-cache-1 Stopped
|
|
Cache outage diagnostic: profile_matches=True elapsed_seconds=0.204
|
|
PASS: Redis down: PostgreSQL fallback 0.204s, ready=200, invalid/absent/revoked sessions=401
|
|
Container mtusi2026lab2-cache-1 Starting
|
|
Container mtusi2026lab2-cache-1 Started
|
|
PASS: ephemeral Redis restart: cache is rebuilt; no session source of truth lost
|
|
PASS: injected failure AFTER chat INSERT: HTTP 503, transaction rolled back chat and members
|
|
PASS: same API remains usable after rollback
|
|
RUN: /Library/Developer/CommandLineTools/usr/bin/python3 student-tests/infrastructure.py
|
|
Before full restart:
|
|
api 28fbeae97d23eca5e256d399d79848f1d981bc78294f72a7539a3958c38b420a 2026-11-04T22:39:09.243190426Z 0
|
|
db dbee5490f591813b35c71f4b10be9450f26196ffaa97272b9d51c9e54cbba55c 2026-11-04T22:39:08.499371509Z 0
|
|
cache 7f2b559ca9eb198a44bbdd00a2e91c1d6f0b2e41a861c47570606082fa0e68d2 2026-11-04T22:39:37.450518717Z 0
|
|
DB postmaster: 2026-11-04 22:39:08.553299+00
|
|
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
After full restart:
|
|
api 28fbeae97d23eca5e256d399d79848f1d981bc78294f72a7539a3958c38b420a 2026-11-04T22:39:42.159768302Z 0
|
|
db dbee5490f591813b35c71f4b10be9450f26196ffaa97272b9d51c9e54cbba55c 2026-11-04T22:39:41.091549593Z 0
|
|
cache 7f2b559ca9eb198a44bbdd00a2e91c1d6f0b2e41a861c47570606082fa0e68d2 2026-11-04T22:39:41.155934302Z 0
|
|
DB postmaster: 2026-11-04 22:39:41.187536+00
|
|
Already applied 001_initial.sql
|
|
Already applied 001_initial.sql
|
|
PASS: two migration reruns; users/chats/messages/sessions/migrations counts unchanged: 36|13|113|31|1
|
|
Container lab2-expiry Creating
|
|
Container lab2-expiry Created
|
|
PASS: a real short-lived session authenticates before expiry and returns 401 after expiry
|
|
Container mtusi2026lab2-db-1 Stopping
|
|
Container mtusi2026lab2-db-1 Stopped
|
|
PASS: DB down: live=200, ready=503, authenticated request=503; no anonymous fallback
|
|
Container mtusi2026lab2-db-1 Starting
|
|
Container mtusi2026lab2-db-1 Started
|
|
PASS: DB recovered; same session works
|
|
PASS: all required functional checks completed
|
|
|
|
Exit code: 0
|