forked from mtusi2026/mtusi2026lab2
Возвращать 401 вместо 500 при не-ASCII символах в заголовке Basic
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Собственные тесты API
|
||||
# дата: 2026-10-09T10:55Z, commit: 31530fc (после исправления проверки cursor)
|
||||
# дата: 2026-10-09T21:41Z, после исправлений по замечаниям (проверка cursor, разбор заголовка Basic)
|
||||
# стенд: Apple M3 Pro, 11 CPU, 18 GB RAM, macOS 26.1, Docker 29.3.0, Compose 5.1.0
|
||||
|
||||
$ make student-test
|
||||
@@ -17,12 +17,14 @@ test_members_can_read_and_write (test_access.ForeignChatTest.test_members_can_re
|
||||
test_outsider_gets_404_everywhere (test_access.ForeignChatTest.test_outsider_gets_404_everywhere) ... ok
|
||||
test_outsider_message_is_not_saved (test_access.ForeignChatTest.test_outsider_message_is_not_saved) ... ok
|
||||
test_basic_is_not_accepted_on_business_endpoints (test_auth.BearerTest.test_basic_is_not_accepted_on_business_endpoints) ... ok
|
||||
test_garbage_token_is_401_not_500 (test_auth.BearerTest.test_garbage_token_is_401_not_500) ... ok
|
||||
test_no_token (test_auth.BearerTest.test_no_token) ... ok
|
||||
test_token_is_checked_before_anything_else (test_auth.BearerTest.test_token_is_checked_before_anything_else) ... ok
|
||||
test_unknown_tokens (test_auth.BearerTest.test_unknown_tokens) ... ok
|
||||
test_x_user_id_does_not_change_identity (test_auth.BearerTest.test_x_user_id_does_not_change_identity) ... ok
|
||||
test_x_user_id_gives_no_access (test_auth.BearerTest.test_x_user_id_gives_no_access) ... ok
|
||||
test_colon_and_unicode_in_password (test_auth.LoginTest.test_colon_and_unicode_in_password) ... ok
|
||||
test_garbage_after_basic_is_401_not_500 (test_auth.LoginTest.test_garbage_after_basic_is_401_not_500) ... ok
|
||||
test_login (test_auth.LoginTest.test_login) ... ok
|
||||
test_malformed_credentials (test_auth.LoginTest.test_malformed_credentials) ... ok
|
||||
test_token_is_opaque_and_unique (test_auth.LoginTest.test_token_is_opaque_and_unique) ... ok
|
||||
@@ -66,7 +68,7 @@ test_password_is_never_returned (test_validation.UserValidationTest.test_passwor
|
||||
test_password_length_limits (test_validation.UserValidationTest.test_password_length_limits) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 60 tests in 1.798s
|
||||
Ran 62 tests in 1.797s
|
||||
|
||||
OK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user