forked from mtusi2026/mtusi2026lab3
Add second lab code
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
2026-10-16. Source: C:/vnp/mtusi2026lab2; destination: C:/vnp/mtusi2026lab3.
|
||||
Application, migrations, requirements, Dockerfile and student tests copied unchanged.
|
||||
Separate mtusi2026lab3 PostgreSQL/Redis named volumes; original lab2 untouched.
|
||||
docker compose up -d --build --wait --wait-timeout 120: PASS
|
||||
python ../mtusi2026lab2/tests/smoke.py --base-url http://127.0.0.1:8080:
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python ../mtusi2026lab2/tests/resilience.py --mode persistence --base-url http://127.0.0.1:8080 --action-script scripts/restart.cmd:
|
||||
PASS: persistence preserved confirmed data and existing session.
|
||||
docker compose exec -T api python -c "import sys,unittest; sys.path.insert(0,'tests'); import client; client.LAB=2; result=unittest.TextTestRunner(verbosity=2).run(unittest.defaultTestLoader.discover('student-tests')); sys.exit(not result.wasSuccessful())":
|
||||
Ran 13 tests in 14.594s. OK.
|
||||
client.LAB=2 selected only for this baseline run in memory; public lab3 files unchanged.
|
||||
Reference in New Issue
Block a user