Хранить отзывы сессий в PostgreSQL, сохранять U+0000, ограничить ожидание БД
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# python -m unittest discover -s student-tests -v
|
||||
# date: 2026-10-31T07:28:40Z; host: Windows 10, Docker Desktop 27.2.0, 12 CPU / 1.9 GiB for Docker VM
|
||||
# date: 2026-11-06T09:35:29Z; fresh volumes; host: Windows 10, Docker Desktop 27.2.0, 12 CPU / 1.9 GiB for Docker VM
|
||||
|
||||
test_duplicate_username (test_api.DuplicateUsernameTest.test_duplicate_username)
|
||||
Повторная регистрация того же username -> 409 conflict ... ok
|
||||
@@ -19,8 +19,10 @@ test_outsider_cannot_write_or_read_history (test_api.ForeignChatTest.test_outsid
|
||||
Посторонний пишет/читает историю -> 404 ... ok
|
||||
test_outsider_does_not_see_chat_in_list (test_api.ForeignChatTest.test_outsider_does_not_see_chat_in_list)
|
||||
Чужой чат не попадает в список чатов ... ok
|
||||
test_nul_character_is_rejected (test_api.IdentityTest.test_nul_character_is_rejected)
|
||||
Символ NUL нельзя сохранить в PostgreSQL text -> 400, а не 500 ... ok
|
||||
test_lone_surrogate_is_rejected (test_api.IdentityTest.test_lone_surrogate_is_rejected)
|
||||
Одиночный суррогат не кодируется в UTF-8 -> 400, а не 500 ... ok
|
||||
test_nul_character_is_preserved (test_api.IdentityTest.test_nul_character_is_preserved)
|
||||
U+0000 — допустимый code point: сообщение, display_name и title сохраняются и читаются без изменений ... ok
|
||||
test_sender_cannot_be_forged (test_api.IdentityTest.test_sender_cannot_be_forged)
|
||||
sender_id в теле запрещён: отправитель только из сессии ... ok
|
||||
test_extra_field (test_api.InvalidJsonTest.test_extra_field)
|
||||
@@ -77,7 +79,7 @@ test_secrets_are_not_stored_in_plaintext (test_db.DatabaseTest.test_secrets_are_
|
||||
В users лежит argon2id-хеш, в sessions — sha256 токена, не сам токен ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 37 tests in 19.926s
|
||||
Ran 38 tests in 11.284s
|
||||
|
||||
OK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user