ЛР 2: PostgreSQL, сессии, Redis и исследование
@@ -0,0 +1,68 @@
|
||||
Verified: 2026-10-05 16:03:17 UTC
|
||||
|
||||
$ make build
|
||||
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
||||
Определение проектов для восстановления...
|
||||
Все проекты обновлены для восстановления.
|
||||
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab2/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
||||
|
||||
Сборка успешно завершена.
|
||||
Предупреждений: 0
|
||||
Ошибок: 0
|
||||
|
||||
Прошло времени 00:00:04.33
|
||||
|
||||
$ make check
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
$ make test
|
||||
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ make student-test
|
||||
.venv/bin/python student-tests/lab2_tests.py --base-url "http://localhost:18080"
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
|
||||
$ make test-expiry
|
||||
BASE_URL="http://localhost:18080" PYTHON=".venv/bin/python" ./scripts/test-expiry.sh
|
||||
Container mtusi2026lab2-api-1 Recreate
|
||||
Container mtusi2026lab2-api-1 Recreated
|
||||
Container mtusi2026lab2-api-1 Starting
|
||||
Container mtusi2026lab2-api-1 Started
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
Container mtusi2026lab2-api-1 Recreate
|
||||
Container mtusi2026lab2-api-1 Recreated
|
||||
Container mtusi2026lab2-api-1 Starting
|
||||
Container mtusi2026lab2-api-1 Started
|
||||
|
||||
Container start times before persistence hook:
|
||||
postgres 2026-10-05T15:56:37.702433876Z
|
||||
api 2026-10-05T16:03:38.056657501Z
|
||||
|
||||
$ make test-persistence
|
||||
.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
Container start times after persistence hook:
|
||||
postgres 2026-10-05T16:03:41.532620919Z
|
||||
api 2026-10-05T16:03:42.119589503Z
|
||||
|
||||
Migration count and password KDF prefix (no hashes or credentials):
|
||||
migrations=1
|
||||
$argon2id
|
||||
|
||||
$ git check-ignore .env secrets/postgres_password secrets/database_url
|
||||
.env
|
||||
secrets/postgres_password
|
||||
secrets/database_url
|
||||
|
||||
$ docker compose ps
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab2-api-1 messenger-lab2:local "dotnet Messenger.Ap…" api 7 seconds ago Up 1 second (health: starting) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab2-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 6 days ago Up 2 seconds (healthy) 5432/tcp
|
||||
@@ -0,0 +1,58 @@
|
||||
Verified: 2026-09-29 10:59:59 UTC
|
||||
|
||||
$ make build
|
||||
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
||||
Определение проектов для восстановления...
|
||||
Все проекты обновлены для восстановления.
|
||||
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab2/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
||||
|
||||
Сборка успешно завершена.
|
||||
Предупреждений: 0
|
||||
Ошибок: 0
|
||||
|
||||
Прошло времени 00:00:02.36
|
||||
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make validate PYTHON=.venv/bin/python
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
$ make test BASE_URL=http://localhost:18080
|
||||
python3 tests/smoke.py --base-url "http://localhost:18080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ make student-test BASE_URL=http://localhost:18080
|
||||
python3 student-tests/lab2_tests.py --base-url "http://localhost:18080"
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
|
||||
$ make test-expiry BASE_URL=http://localhost:18080
|
||||
BASE_URL="http://localhost:18080" PYTHON="python3" ./scripts/test-expiry.sh
|
||||
Container mtusi2026lab2-api-1 Recreate
|
||||
Container mtusi2026lab2-api-1 Recreated
|
||||
Container mtusi2026lab2-api-1 Starting
|
||||
Container mtusi2026lab2-api-1 Started
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
Container mtusi2026lab2-api-1 Recreate
|
||||
Container mtusi2026lab2-api-1 Recreated
|
||||
Container mtusi2026lab2-api-1 Starting
|
||||
Container mtusi2026lab2-api-1 Started
|
||||
|
||||
Container start times before persistence hook:
|
||||
postgres 2026-09-29T10:57:17.514431375Z
|
||||
api 2026-09-29T11:00:11.981683054Z
|
||||
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:18080
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
Container start times after persistence hook:
|
||||
postgres 2026-09-29T11:00:13.851495055Z
|
||||
api 2026-09-29T11:00:14.208942221Z
|
||||
|
||||
Migration count and password KDF prefix (no hashes or credentials):
|
||||
migrations=1
|
||||
$argon2id
|
||||
@@ -0,0 +1,26 @@
|
||||
Verified: 2026-10-06 10:26:33 UTC
|
||||
|
||||
$ make build
|
||||
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
||||
Определение проектов для восстановления...
|
||||
Все проекты обновлены для восстановления.
|
||||
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab2/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
||||
|
||||
Сборка успешно завершена.
|
||||
Предупреждений: 0
|
||||
Ошибок: 0
|
||||
|
||||
Прошло времени 00:00:08.20
|
||||
|
||||
$ make check
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
$ make test
|
||||
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
||||
FAIL: GET /health/live: connection/TLS failure (URLError)
|
||||
make[2]: *** [test] Error 1
|
||||
@@ -0,0 +1,34 @@
|
||||
Verified: 2026-10-06 10:26:33 UTC
|
||||
|
||||
$ make verify-grade4
|
||||
BASE_URL="http://localhost:18080" PYTHON=".venv/bin/python" ./scripts/verify-grade4.sh
|
||||
Running: make build
|
||||
Running: make check
|
||||
Running: make validate
|
||||
Running: make test
|
||||
|
||||
$ make build
|
||||
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
||||
Определение проектов для восстановления...
|
||||
Все проекты обновлены для восстановления.
|
||||
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab2/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
||||
|
||||
Сборка успешно завершена.
|
||||
Предупреждений: 0
|
||||
Ошибок: 0
|
||||
|
||||
Прошло времени 00:00:08.20
|
||||
|
||||
$ make check
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
$ make test
|
||||
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
||||
FAIL: GET /health/live: connection/TLS failure (URLError)
|
||||
make[2]: *** [test] Error 1
|
||||
make[1]: *** [verify-grade4] Error 1
|
||||
@@ -0,0 +1,163 @@
|
||||
{
|
||||
"verified_at": "2026-10-05T17:42:04.803527+00:00",
|
||||
"message_count_in_chat": 10000,
|
||||
"fixture": "synthetic data; no tokens or passwords in evidence",
|
||||
"plans": {
|
||||
"first_page": {
|
||||
"query": "SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = '8a4f99db-6858-45e8-a2f6-a86c9194d89b' ORDER BY created_at, id LIMIT 51",
|
||||
"explain_analyze_buffers": {
|
||||
"Plan": {
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Async Capable": false,
|
||||
"Startup Cost": 0.42,
|
||||
"Total Cost": 115.29,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 151,
|
||||
"Actual Startup Time": 0.018,
|
||||
"Actual Total Time": 0.051,
|
||||
"Actual Rows": 51,
|
||||
"Actual Loops": 1,
|
||||
"Shared Hit Blocks": 6,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Plans": [
|
||||
{
|
||||
"Node Type": "Index Scan",
|
||||
"Parent Relationship": "Outer",
|
||||
"Parallel Aware": false,
|
||||
"Async Capable": false,
|
||||
"Scan Direction": "Forward",
|
||||
"Index Name": "messages_chat_created_id_idx",
|
||||
"Relation Name": "messages",
|
||||
"Alias": "messages",
|
||||
"Startup Cost": 0.42,
|
||||
"Total Cost": 22349.08,
|
||||
"Plan Rows": 9923,
|
||||
"Plan Width": 151,
|
||||
"Actual Startup Time": 0.017,
|
||||
"Actual Total Time": 0.044,
|
||||
"Actual Rows": 51,
|
||||
"Actual Loops": 1,
|
||||
"Index Cond": "(chat_id = '8a4f99db-6858-45e8-a2f6-a86c9194d89b'::uuid)",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Shared Hit Blocks": 6,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"Planning": {
|
||||
"Shared Hit Blocks": 109,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.219,
|
||||
"Triggers": [],
|
||||
"Execution Time": 0.082
|
||||
}
|
||||
},
|
||||
"after_message_9000": {
|
||||
"query": "SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = '8a4f99db-6858-45e8-a2f6-a86c9194d89b' AND (created_at, id) > ('2026-01-01T00:00:09.000000Z'::timestamptz, 'a0fd947d-f261-da1c-181d-6e19f2e18f68'::uuid) ORDER BY created_at, id LIMIT 51",
|
||||
"explain_analyze_buffers": {
|
||||
"Plan": {
|
||||
"Node Type": "Limit",
|
||||
"Parallel Aware": false,
|
||||
"Async Capable": false,
|
||||
"Startup Cost": 0.42,
|
||||
"Total Cost": 140.46,
|
||||
"Plan Rows": 51,
|
||||
"Plan Width": 151,
|
||||
"Actual Startup Time": 0.018,
|
||||
"Actual Total Time": 0.029,
|
||||
"Actual Rows": 51,
|
||||
"Actual Loops": 1,
|
||||
"Shared Hit Blocks": 5,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0,
|
||||
"Plans": [
|
||||
{
|
||||
"Node Type": "Index Scan",
|
||||
"Parent Relationship": "Outer",
|
||||
"Parallel Aware": false,
|
||||
"Async Capable": false,
|
||||
"Scan Direction": "Forward",
|
||||
"Index Name": "messages_chat_created_id_idx",
|
||||
"Relation Name": "messages",
|
||||
"Alias": "messages",
|
||||
"Startup Cost": 0.42,
|
||||
"Total Cost": 15882.85,
|
||||
"Plan Rows": 5784,
|
||||
"Plan Width": 151,
|
||||
"Actual Startup Time": 0.017,
|
||||
"Actual Total Time": 0.022,
|
||||
"Actual Rows": 51,
|
||||
"Actual Loops": 1,
|
||||
"Index Cond": "((chat_id = '8a4f99db-6858-45e8-a2f6-a86c9194d89b'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:09+00'::timestamp with time zone, 'a0fd947d-f261-da1c-181d-6e19f2e18f68'::uuid)))",
|
||||
"Rows Removed by Index Recheck": 0,
|
||||
"Shared Hit Blocks": 5,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"Planning": {
|
||||
"Shared Hit Blocks": 106,
|
||||
"Shared Read Blocks": 0,
|
||||
"Shared Dirtied Blocks": 0,
|
||||
"Shared Written Blocks": 0,
|
||||
"Local Hit Blocks": 0,
|
||||
"Local Read Blocks": 0,
|
||||
"Local Dirtied Blocks": 0,
|
||||
"Local Written Blocks": 0,
|
||||
"Temp Read Blocks": 0,
|
||||
"Temp Written Blocks": 0
|
||||
},
|
||||
"Planning Time": 0.196,
|
||||
"Triggers": [],
|
||||
"Execution Time": 0.053
|
||||
}
|
||||
}
|
||||
},
|
||||
"api_pages": {
|
||||
"first": 50,
|
||||
"deep": 50,
|
||||
"continuation": 50,
|
||||
"duplicates": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
UI refinement verification - 2026-10-06
|
||||
|
||||
Build: make up succeeded; API, PostgreSQL and Redis healthy.
|
||||
Syntax: app.js, mascots.js, scenarios.js checked as ES modules.
|
||||
Desktop registration: mascot names/caption absent (DOM count 0); one short registration joke.
|
||||
Username input: mood looking.
|
||||
Private password: mood private; triangle animation mascot-peek-arc.
|
||||
Observed triangle transform changed from baseline x=0,y=0 to x=21.238,y=-29.024 (up and sideways).
|
||||
Shown password: mood revealed; animation mascot-retreat; triangle face opacity 0.
|
||||
Mobile viewport 390x844: document clientWidth=scrollWidth=375; no horizontal overflow.
|
||||
Mobile password view: stage and triangle visible; animation mascot-peek-arc.
|
||||
Defense panel: compact scenario description; explanatory footer collapsed under О проверках.
|
||||
Browser Uncaught errors: none on main and registration tabs.
|
||||
Viewport reset; login restored; main UI shows @n1k0der and existing 5 chats.
|
||||
Existing demo data preserved; scenario request logic unchanged in this refinement.
|
||||
Reduced-motion CSS disables new animations with !important; not runtime-emulated.
|
||||
@@ -0,0 +1,15 @@
|
||||
Verified: 2026-10-05T21:06:13.536358+00:00
|
||||
Scope: CSS theme and HTML metadata/heading spacing.
|
||||
Build: make up passed; dotnet publish Release passed; API/PostgreSQL/Redis healthy.
|
||||
Browser: real localhost UI, CUA, desktop 1280x720 and mobile 390x844.
|
||||
Computed root background: rgb(38,38,38) = #262626.
|
||||
Computed root text: rgb(255,225,53) = #FFE135.
|
||||
Desktop: demo login passed; 3 chats loaded; team chat loaded 4 messages.
|
||||
Profile and new-chat dialogs opened/closed; themed inputs and visible focus verified.
|
||||
Defense panel: desktop side layout and mobile overlay checked; GET 200/Bearer and history count visible.
|
||||
Composer: nonempty draft enables send; cleared without submission.
|
||||
Mobile: sidebar and conversation width 390, document width 390; composer bottom 844.
|
||||
Mobile auth/register: width 375 (390 viewport minus scrollbar), document width 375; headings no longer join words.
|
||||
Viewport restored: document width 1280, content width 1280.
|
||||
Contrast ratios: primary 11.58:1, muted on #303030 6.40:1, own timestamp on yellow 5.91:1.
|
||||
Evidence: ui-anthracite-desktop.jpg, ui-anthracite-mobile.jpg, ui-anthracite-login.jpg, ui-anthracite-defense.jpg.
|
||||
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,21 @@
|
||||
Verified: 2026-10-05, local http://localhost:18080/, browser
|
||||
All accounts and messages used for this check are synthetic demo data.
|
||||
|
||||
PASS: registration and automatic login for two separate users
|
||||
PASS: profile exposes participant ID; shared chat created with that ID
|
||||
PASS: messages sent by both users, displayed with author names and server timestamps
|
||||
PASS: Enter submits a message; textarea is cleared after confirmed response
|
||||
PASS: reload resumes the stored session and reloads the actor's chat list
|
||||
PASS: logout returns to login form; incorrect password displays the credentials error
|
||||
PASS: subsequent correct password opens the application
|
||||
PASS: personal notes chat is created with no extra participant IDs
|
||||
PASS: literal <b> text is displayed unchanged, with no b element in message content
|
||||
PASS: notes history opens with 50 messages and loads the remaining 11; total DOM messages 61
|
||||
PASS: 390 x 844 mobile view displays chat list, conversation and composer
|
||||
PASS: mobile back button returns to chat list
|
||||
PASS: mobile document clientWidth=390 and scrollWidth=390
|
||||
PASS: temporary viewport override reset; final desktop view 818 x 668
|
||||
|
||||
Screenshots: ui-desktop.jpg, ui-mobile.jpg
|
||||
HTTP/API pagination and privacy are separately checked by make test-ui.
|
||||
These are manual UI observations, not an automated browser suite.
|
||||
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 55 KiB |
@@ -0,0 +1,402 @@
|
||||
[
|
||||
{
|
||||
"class": "mascot-stage is-sleepy",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "idle",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "home",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "looking",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "revealed",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage is-scared",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "idle",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "back",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "idle",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "home",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "short",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "back",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "pending",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "back",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 375,
|
||||
"trip": "near",
|
||||
"width": 375
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 305,
|
||||
"trip": "near",
|
||||
"width": 305
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage is-sleepy",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "idle",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "home",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 1,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 8,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 1,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "revealed",
|
||||
"scrollWidth": 1265,
|
||||
"trip": "near",
|
||||
"width": 1265
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 0.62,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 305,
|
||||
"trip": "near",
|
||||
"width": 305
|
||||
},
|
||||
{
|
||||
"class": "mascot-stage",
|
||||
"feet": 0,
|
||||
"joints": [
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 4.96,
|
||||
"rotate": "none"
|
||||
},
|
||||
{
|
||||
"connected": true,
|
||||
"gap": 0.62,
|
||||
"rotate": "none"
|
||||
}
|
||||
],
|
||||
"mood": "private",
|
||||
"scrollWidth": 305,
|
||||
"trip": "near",
|
||||
"width": 305
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,11 @@
|
||||
Проверка фигур после исправления соединений и ширины тела
|
||||
|
||||
Ширина SVG тела равна ширине головы: квадрат 64 px, полукруг 74 px, треугольник 76 px.
|
||||
Ноги и нижние площадки удалены.
|
||||
Проверены соединения головы с телом: покой, ввод, скрытый и открытый пароль, страх, возврат, ожидание входа, короткий пароль регистрации.
|
||||
После изменения ширины повторно проверены скрытый/открытый пароль на компьютере и скрытый пароль на узком мобильном экране. Все три соединения сохраняются; горизонтального переполнения нет.
|
||||
Короткий пароль регистрации отклонён интерфейсом; неверный логин возвращает обычное сообщение об ошибке. Тестовые аккаунты не создавались.
|
||||
make up выполнен успешно, контейнеры здоровы. Проверка синтаксиса mascots.js и git diff --check прошли.
|
||||
Uncaught ошибок JavaScript в обеих проверочных вкладках нет.
|
||||
Основная вкладка возвращена в аккаунт n1k0der: загружены 5 существующих чатов. Временный размер окна сброшен.
|
||||
Режим уменьшенного движения проверен по исходникам, без эмуляции системной настройки.
|
||||
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1,5 @@
|
||||
Декоративная композиция авторизации
|
||||
|
||||
Фигуры собраны ближе: настольные позиции 24/82/154 px, на телефоне группа центрируется по ширине блока. Два облачка позади фигур, три анимированные точки в жёлтом облачке. При подходе к форме облачка приглушаются.
|
||||
Проверены настольный покой, подход к полю, скрытый и открытый пароль. На мобильном экране 320 px (clientWidth 305) горизонтального переполнения нет: scrollWidth 305. Скриншоты сохранены. Uncaught ошибок нет.
|
||||
make up, проверка синтаксиса JavaScript и git diff --check прошли. Временный размер окна сброшен.
|
||||
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1,23 @@
|
||||
Verified: 2026-10-05, local http://localhost:18080/, browser
|
||||
Accounts and messages used in this check are synthetic demo data.
|
||||
|
||||
PASS: panel is hidden by default and opens from login screen/chat sidebar
|
||||
PASS: wrong password shows actual POST /api/v1/auth/sessions -> 401 and Basic
|
||||
PASS: successful login shows 201/Basic, actor and session countdown
|
||||
PASS: opening chat shows GET 200/Bearer and received X-Request-Id
|
||||
PASS: sending a message shows POST 201/Bearer and visible confirmed message
|
||||
PASS: a later background read at 23:50:04 does not replace the send result at 23:49:38
|
||||
PASS: panel displays loaded history 50 with older page available, then 61 with no older page
|
||||
PASS: nonexistent participant produces 400 and the matching panel explanation
|
||||
PASS: logout displays DELETE 204 and clears actor/session/history summary
|
||||
PASS: Escape closes panel; disabled preference survives reload
|
||||
PASS: reload resumes a valid session
|
||||
PASS: visible panel contains no demo password or 43-character token-like leaf text
|
||||
PASS: wide desktop layout places panel beside chat; form remains usable
|
||||
PASS: 390 x 844 mobile chat can open/close panel and return to chat list
|
||||
PASS: mobile document clientWidth=390 and scrollWidth=390
|
||||
PASS: viewport override reset before completion
|
||||
|
||||
Screenshots: ui-defense-desktop.jpg (confirmed send), ui-defense-mobile.jpg
|
||||
Panel records selected metadata of this tab only; no request/response bodies or full headers.
|
||||
These are manual UI observations, not an automated browser suite.
|
||||
@@ -0,0 +1,7 @@
|
||||
Verified: 2026-10-05 20:52:52 UTC
|
||||
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
.venv/bin/python student-tests/lab2_tests.py --base-url "http://localhost:18080"
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
.venv/bin/python student-tests/ui_api_tests.py --base-url "http://localhost:18080"
|
||||
PASS: UI authentication, privacy, newest page, backwards pagination, cursor isolation; required API stays ascending
|
||||
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 33 KiB |
@@ -0,0 +1,17 @@
|
||||
Elastic mascot verification - 2026-10-06
|
||||
|
||||
Build: make up succeeded; API, PostgreSQL and Redis healthy.
|
||||
Syntax: mascots.js ES module check passed.
|
||||
Desktop username input: mood looking; SVG outlines changed for all three shapes.
|
||||
Top outline coordinates rose above y=0; settled wrapper translations were x=4,y=0 for all three.
|
||||
At typing onset observed staggered wrapper positions: (9.49,-6.79), (7.49,-4.39), (5.6,-2.11).
|
||||
Actual pointer entering the close button: is-scared true; panel remained visible.
|
||||
Scared wrapper positions sampled: (-3.67,0), (-2.93,0), (-2.21,0).
|
||||
Pointer moved away: is-scared absent. Keyboard focus also triggers the reaction.
|
||||
Auth defense panel moved to the right so shapes remain visible.
|
||||
Mobile viewport 390x844: document clientWidth=scrollWidth=375; no horizontal overflow.
|
||||
Mobile outlines deform; stage is 150px and remains visible with the password field.
|
||||
Shown password: mood revealed; triangle face settles to opacity 0.
|
||||
Uncaught browser errors: none in main and auxiliary registration tabs.
|
||||
Reduced motion / hidden-tab handling inspected in source; reduced motion was not runtime-emulated.
|
||||
Login after success animation verified; main view restored to @n1k0der with 5 existing chats. Viewport reset; auxiliary tab closed.
|
||||
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 57 KiB |
@@ -0,0 +1,11 @@
|
||||
Verified: 2026-10-05T21:09:30.542235+00:00
|
||||
Build: make up passed, API/PostgreSQL/Redis healthy.
|
||||
Copy: humorous lab-themed login, registration, hero, empty-state, chat dialog and toast text.
|
||||
Credentials: existing local demo account renamed to n1k0der; Argon2id password hash updated for a 12-character password.
|
||||
Data: same user UUID; 3 memberships and 63 authored messages preserved.
|
||||
API: correct login 201; former 6-character password rejected 401; temporary API verification session revoked 204.
|
||||
Policy: backend and browser registration remain 12-128 code points; no validation exception added.
|
||||
Tests: make student-test passed (password, Basic, Bearer, input validation, session lifecycle).
|
||||
Browser: login succeeded with new credentials; same 3 chats visible; profile username @n1k0der.
|
||||
Browser: desktop registration screenshot saved; mobile registration content width equals viewport minus scrollbar (375px), no horizontal overflow.
|
||||
Screenshot: ui-humor-registration.jpg.
|
||||
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 76 KiB |
@@ -0,0 +1,24 @@
|
||||
Verified: 2026-10-06T00:32:42.399572+03:00
|
||||
Build: make up passed; dotnet publish Release; API/PostgreSQL/Redis healthy.
|
||||
Syntax: node --input-type=module --check passed for app.js, defense.js, mascots.js, scenarios.js.
|
||||
Browser: real local UI, CUA; desktop 1280x720, mobile 390x844.
|
||||
Mascots: cursor gaze changed (1.05px, -3px); username focus=looking; short password=short; valid masked password=private; shown password=revealed.
|
||||
Mobile mascot stage sticks at top 0; content width equals viewport minus scrollbar (375px); no horizontal overflow.
|
||||
Duplicate registration returned conflict; login succeeded with the existing primary account; show/hide password checked.
|
||||
Scenario buttons disabled without login; check button disabled before preparation; both disabled while scenario runs.
|
||||
Preparation: 2 users, 2 test logins, shared chat with primary user, 3 messages; test sessions revoked.
|
||||
Question checks: duplicate username 409; wrong password 401; short password 400; whitespace-only message 400; duplicate member 400; outsider chat 404; test logout 204; revoked token 401.
|
||||
All eight matched; 11 logged HTTP steps including two logins and final cleanup, all passed.
|
||||
Repeat-open: same chat and messages, 11 previous step records retained.
|
||||
Primary profile remains @n1k0der; foreground and background interface reads continue with HTTP 200.
|
||||
Panel contains neither generated password prefix nor token-shaped strings; uncaught JavaScript errors=0.
|
||||
Mobile scenarios: document width=390, content width=390, composer bottom=844; both scenario buttons visible.
|
||||
PostgreSQL after question checks and repeat-open:
|
||||
demo_users=2
|
||||
active_demo_sessions=0
|
||||
demo_chats=1
|
||||
messages=3
|
||||
members=2
|
||||
observer_memberships=0
|
||||
|
||||
Screenshots: ui-mascots-registration.jpg, ui-mascots-password.jpg, ui-mascots-mobile.jpg, ui-scenarios-desktop.jpg, ui-scenarios-mobile.jpg.
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 33 KiB |
@@ -0,0 +1,7 @@
|
||||
Цельные фигуры после удаления вытягивающегося тела
|
||||
|
||||
По прежнему скриншоту восстановлены разные размеры: жёлтая фигура 84×150 px, полукруг 104×112 px, треугольник 84×110 px.
|
||||
Проверены покой и подход к полю на компьютере, скрытый и открытый пароль. Дополнительные SVG-тела, головы, ноги и основания отсутствуют. Uncaught ошибок JavaScript нет.
|
||||
Мобильный вариант 390 px проверен перед финальным восстановлением исходных размеров: горизонтального переполнения нет. Последние размеры повторно проверены на компьютере.
|
||||
make up, проверка синтаксиса JavaScript и git diff --check прошли.
|
||||
Основная вкладка обновлена: вход n1k0der сохранился, 5 чатов загружены.
|
||||
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,2 @@
|
||||
Прямоугольник сужен с 84 до 64 px при высоте 150 px, радиус углов 16 px. Полукруг изменён с 104×112 до 82×102 px, верхние углы 44 px, нижние 16 px. Глаза и закрывающая их ладонь подогнаны под новую ширину.
|
||||
Проверены покой, подход к полю, скрытый/открытый пароль. Uncaught ошибок нет. make up, проверка синтаксиса JS и git diff --check прошли.
|
||||
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,22 @@
|
||||
Walking mascots verification - 2026-10-06
|
||||
|
||||
Build: make up succeeded; API, PostgreSQL and Redis healthy.
|
||||
Syntax: mascots.js ES module check passed.
|
||||
Structure: three heads, three thick SVG necks, three bases and six feet.
|
||||
Computed neck stroke widths: 38px, 40px, 32px.
|
||||
Desktop trip observed: forward -> near -> back -> home.
|
||||
Journey uses eight eased steps in each direction with 80ms staggering.
|
||||
Near-field head dimensions remain 64x64, 74x58, 76x70; computed rotate=none.
|
||||
Observed head rises: approximately 66px, 69px and 79px beyond their resting neck lengths.
|
||||
Nearest head right edge 770.82px; input left edge 784.30px (~13.5px gap).
|
||||
Backward jumping observed at different offsets for each figure; after pause trip returns home.
|
||||
Mobile viewport 390x844: clientWidth=scrollWidth=375; no horizontal overflow.
|
||||
Mobile head rectangles remain inside the sticky stage; movement fans within the stage.
|
||||
Shown password: mood revealed; triangle face opacity settles to 0; head moves behind the round figure.
|
||||
Close button keyboard interaction: is-scared class present; clears after closing.
|
||||
Idle state observed: trip=home, mood=idle, is-sleepy class present.
|
||||
Reduced motion / hidden-screen reset inspected in source; reduced motion was not runtime-emulated.
|
||||
Typing wakes the figures: is-sleepy class removed.
|
||||
Uncaught browser errors: none in main and auxiliary tabs.
|
||||
One sign-in attempt timed out; retry succeeded with HTTP 201 (8171ms), then chats loaded with HTTP 200.
|
||||
Main UI restored to @n1k0der with existing five chats; viewport reset and auxiliary tab closed.
|
||||
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 52 KiB |