forked from mtusi2026/mtusi2026lab2
2
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# Среда: песочница без Docker. PostgreSQL 16.15, Redis 7 (вместо Valkey), Python 3.12.3, FastAPI 0.115.0 + uvicorn 0.30.6 (2 процесса), 2026-10-15T21:39:00Z
|
||||
# Compose-стенд в этой среде не запускался (нет Docker) — см. REPORT.md, «Ограничения проверки».
|
||||
|
||||
$ make check
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make test
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ python3 tests_student/test_integration.py
|
||||
PASS registration_race_same_username
|
||||
PASS username_and_field_validation
|
||||
PASS password_with_colon_and_unicode_login
|
||||
PASS login_failures_look_identical
|
||||
PASS bearer_rules
|
||||
PASS logout_revokes_only_that_session
|
||||
PASS chat_creation_rules_and_no_side_effects
|
||||
PASS message_rules
|
||||
PASS pagination_walk_and_cursor_binding
|
||||
PASS chat_list_pagination_and_order
|
||||
PASS request_id_and_error_shape
|
||||
|
||||
11/11 passed
|
||||
|
||||
$ pytest tests/test_own.py tests/test_race.py -v
|
||||
test_own.py::test_invalid_json PASSED
|
||||
test_own.py::test_duplicate_username PASSED
|
||||
test_own.py::test_extra_fields PASSED
|
||||
test_own.py::test_empty_message PASSED
|
||||
test_own.py::test_foreign_chat PASSED
|
||||
test_own.py::test_pagination PASSED
|
||||
test_own.py::test_cursor_from_other_chat_is_400 PASSED
|
||||
test_own.py::test_x_user_id_no_longer_grants_access PASSED
|
||||
test_own.py::test_basic_only_on_login PASSED
|
||||
test_own.py::test_wrong_password_and_unknown_user_look_the_same PASSED
|
||||
test_own.py::test_logout_revokes_token PASSED
|
||||
test_own.py::test_password_is_never_returned PASSED
|
||||
test_own.py::test_short_password_rejected PASSED
|
||||
test_race.py::test_concurrent_writes PASSED
|
||||
test_race.py::test_concurrent_registration_same_username PASSED
|
||||
============================== 15 passed in 1.28s ==============================
|
||||
|
||||
$ python tests_student/test_db_rollback.py
|
||||
PASS: ошибка внутри транзакции откатила вставку chats (0 строк), контрольный commit сохранил чат и участника
|
||||
|
||||
$ SESSION_TTL_SECONDS=2 (API на :8081) python tests_student/test_expiry.py 2
|
||||
PASS: сессия с TTL=2.0s перестала действовать (401 на users/me, chats, logout) после ожидания 3.5s
|
||||
Reference in New Issue
Block a user