Implement lab2 PostgreSQL and persistent sessions

This commit is contained in:
2026-11-16 22:03:47 +03:00
parent 65003b6119
commit 3bfaae3e0a
19 changed files with 1006 additions and 63 deletions
+2
View File
@@ -0,0 +1,2 @@
02cbb71a12da65cee583dccb81f71d312c4f7a780a8d620e8818c0768a4cd810
0b95450ec72521750a4bbf111a59358a57e326c41b33552af698320cfc696f3b
+2
View File
@@ -0,0 +1,2 @@
02cbb71a12da65cee583dccb81f71d312c4f7a780a8d620e8818c0768a4cd810
0b95450ec72521750a4bbf111a59358a57e326c41b33552af698320cfc696f3b
+3
View File
@@ -0,0 +1,3 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab2-api-1 mtusi2026lab2-api "sh -c 'python -m sr…" api 15 minutes ago Up 17 seconds (healthy) 127.0.0.1:8080->8080/tcp
mtusi2026lab2-db-1 postgres:16-alpine "docker-entrypoint.s…" db 15 minutes ago Up 22 seconds (healthy) 5432/tcp
+3
View File
@@ -0,0 +1,3 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab2-api-1 mtusi2026lab2-api "sh -c 'python -m sr…" api 14 minutes ago Up 10 seconds (healthy) 127.0.0.1:8080->8080/tcp
mtusi2026lab2-db-1 postgres:16-alpine "docker-entrypoint.s…" db 14 minutes ago Up 15 seconds (healthy) 5432/tcp
+2
View File
@@ -0,0 +1,2 @@
Already applied: 001_initial.sql
Migrations completed
+3
View File
@@ -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.
+2
View File
@@ -0,0 +1,2 @@
/mtusi2026lab2-api-1 2026-11-16T18:57:17.462952441Z
/mtusi2026lab2-db-1 2026-11-16T18:57:11.64827961Z
+1
View File
@@ -0,0 +1 @@
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.