forked from mtusi2026/mtusi2026lab2
[+] Completed lab 2
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
v22.16.0
|
||||
postgres (PostgreSQL) 15.18 (Debian 15.18-0+deb12u1)
|
||||
Docker Compose version v2.36.2
|
||||
$ npm run build
|
||||
npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm.
|
||||
|
||||
> mtusi-messenger-lab2@1.0.0 build
|
||||
> npm run generate && tsc -p tsconfig.json
|
||||
|
||||
npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm.
|
||||
|
||||
> mtusi-messenger-lab2@1.0.0 generate
|
||||
> tsoa routes
|
||||
|
||||
$ docker-compose config --quiet
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
The files belonging to this database system will be owned by user "agent".
|
||||
This user must also own the server process.
|
||||
|
||||
The database cluster will be initialized with locale "C.UTF-8".
|
||||
The default database encoding has accordingly been set to "UTF8".
|
||||
The default text search configuration will be set to "english".
|
||||
|
||||
Data page checksums are disabled.
|
||||
|
||||
creating directory /workspace/scratch/503693051415/runtime/state2/database ... ok
|
||||
creating subdirectories ... ok
|
||||
selecting dynamic shared memory implementation ... posix
|
||||
selecting default max_connections ... 100
|
||||
selecting default shared_buffers ... 128MB
|
||||
selecting default time zone ... Europe/Moscow
|
||||
creating configuration files ... ok
|
||||
running bootstrap script ... ok
|
||||
performing post-bootstrap initialization ... ok
|
||||
syncing data to disk ... ok
|
||||
|
||||
Success. You can now start the database server using:
|
||||
|
||||
/workspace/scratch/503693051415/runtime/pg/usr/lib/postgresql/15/bin/pg_ctl -D /workspace/scratch/503693051415/runtime/state2/database -l logfile start
|
||||
|
||||
waiting for server to start.... done
|
||||
server started
|
||||
PostgreSQL started pid=93
|
||||
Applied 001_core.sql
|
||||
Migrations up to date
|
||||
API started pid=117
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
$ python3 student-tests/auth_and_chat.py
|
||||
PASS: UTF-8 password with colon, strict JSON, and atomic chat creation
|
||||
$ make test-persistence ACTION_SCRIPT=<local process restart>
|
||||
python3 tests/resilience.py --mode persistence --action-script "/workspace/scratch/503693051415/runtime/lab2-local.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.
|
||||
API stopped pid=117
|
||||
PostgreSQL stopping pid=93
|
||||
waiting for server to shut down.... done
|
||||
server stopped
|
||||
waiting for server to start.... done
|
||||
server started
|
||||
PostgreSQL started pid=172
|
||||
Migrations up to date
|
||||
API started pid=194
|
||||
API stopped pid=194
|
||||
PostgreSQL stopping pid=172
|
||||
waiting for server to shut down.... done
|
||||
server stopped
|
||||
waiting for server to start.... done
|
||||
server started
|
||||
PostgreSQL started pid=246
|
||||
Migrations up to date
|
||||
API started pid=268
|
||||
$ python3 student-tests/session_expiry.py
|
||||
PASS: a valid token became unauthorized after the two-second TTL
|
||||
API stopped pid=268
|
||||
PostgreSQL stopping pid=246
|
||||
waiting for server to shut down.... done
|
||||
server stopped
|
||||
Reference in New Issue
Block a user