forked from mtusi2026/mtusi2026lab2
lab2
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,10 @@
|
||||
Container mtusi-lab2-api-1 Recreate
|
||||
Container mtusi-lab2-api-1 Recreated
|
||||
Container mtusi-lab2-api-1 Starting
|
||||
Container mtusi-lab2-api-1 Started
|
||||
PASS SESSION_TTL_SECONDS=2: session accepted before expiry and rejected afterwards
|
||||
Container mtusi-lab2-api-1 Recreate
|
||||
Container mtusi-lab2-api-1 Recreated
|
||||
Container mtusi-lab2-api-1 Starting
|
||||
Container mtusi-lab2-api-1 Started
|
||||
PASS expiry scenario; normal API configuration restored
|
||||
@@ -0,0 +1,11 @@
|
||||
test_bad_credentials_and_validation (test_integration.IntegrationTests.test_bad_credentials_and_validation) ... ok
|
||||
test_history_and_cross_chat_cursor (test_integration.IntegrationTests.test_history_and_cross_chat_cursor) ... ok
|
||||
test_logout_revokes_session (test_integration.IntegrationTests.test_logout_revokes_session) ... ok
|
||||
test_migrations_are_repeatable (test_integration.IntegrationTests.test_migrations_are_repeatable) ... ok
|
||||
test_registration_race_and_password_storage (test_integration.IntegrationTests.test_registration_race_and_password_storage) ... ok
|
||||
test_rollback_after_partial_chat_insert (test_integration.IntegrationTests.test_rollback_after_partial_chat_insert) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 6 tests in 0.685s
|
||||
|
||||
OK
|
||||
@@ -0,0 +1,2 @@
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,3 @@
|
||||
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.
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"before": {
|
||||
"api": {
|
||||
"container_id": "56edea40b5725e2d7cb53b3845e3add8736cd97b0d3aa5d6ed7f3edd60d39490",
|
||||
"started_at": "2026-10-29T14:14:33.964585083Z"
|
||||
},
|
||||
"postgres": {
|
||||
"container_id": "06377e012859509c85940553ce08940f53b54784f689bb743a20f2a0e27c9940",
|
||||
"started_at": "2026-10-29T14:14:31.393036638Z"
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"api": {
|
||||
"container_id": "56edea40b5725e2d7cb53b3845e3add8736cd97b0d3aa5d6ed7f3edd60d39490",
|
||||
"started_at": "2026-10-29T14:14:45.403053172Z"
|
||||
},
|
||||
"postgres": {
|
||||
"container_id": "06377e012859509c85940553ce08940f53b54784f689bb743a20f2a0e27c9940",
|
||||
"started_at": "2026-10-29T14:14:45.180754422Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
Reference in New Issue
Block a user