forked from mtusi2026/mtusi2026lab3
ЛР 3: финальная проверка и исправление лимита памяти API
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
test_duplicate_username_concurrent_registration (__main__.AuthContract.test_duplicate_username_concurrent_registration) ... FAIL
|
||||
test_identity_acl_and_sender_ignore_legacy_header (__main__.AuthContract.test_identity_acl_and_sender_ignore_legacy_header) ... ok
|
||||
test_invalid_chat_does_not_leave_visible_partial_chat (__main__.AuthContract.test_invalid_chat_does_not_leave_visible_partial_chat) ... ok
|
||||
test_invalid_password_length_and_blank (__main__.AuthContract.test_invalid_password_length_and_blank) ... ok
|
||||
test_login_does_not_accept_json_credentials (__main__.AuthContract.test_login_does_not_accept_json_credentials) ... ok
|
||||
test_login_rejects_missing_or_malformed_basic (__main__.AuthContract.test_login_rejects_missing_or_malformed_basic) ... ok
|
||||
test_logout_revokes_only_current_session (__main__.AuthContract.test_logout_revokes_only_current_session) ... ok
|
||||
test_password_unicode_boundaries_and_colon (__main__.AuthContract.test_password_unicode_boundaries_and_colon) ... ok
|
||||
test_protected_routes_require_bearer_before_validation (__main__.AuthContract.test_protected_routes_require_bearer_before_validation) ... ok
|
||||
test_public_health_and_registration (__main__.AuthContract.test_public_health_and_registration) ... ok
|
||||
test_registration_bytes_json_and_content_type (__main__.AuthContract.test_registration_bytes_json_and_content_type) ... ok
|
||||
test_registration_required_fields_types_and_names (__main__.AuthContract.test_registration_required_fields_types_and_names) ... ok
|
||||
test_session_ttl_matches_configuration (__main__.AuthContract.test_session_ttl_matches_configuration) ... ok
|
||||
test_tokens_distinct_opaque_and_tamper_rejected (__main__.AuthContract.test_tokens_distinct_opaque_and_tamper_rejected) ... ok
|
||||
test_username_and_display_name_constraints (__main__.AuthContract.test_username_and_display_name_constraints) ... ok
|
||||
test_wrong_credentials_have_same_public_error (__main__.AuthContract.test_wrong_credentials_have_same_public_error) ... ok
|
||||
|
||||
======================================================================
|
||||
FAIL: test_duplicate_username_concurrent_registration (__main__.AuthContract.test_duplicate_username_concurrent_registration)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/Users/olegromanovich/Library/Mobile Documents/com~apple~CloudDocs/Пары/Высоконагруженные приложения/HighLoad/student-tests/auth_contract.py", line 357, in test_duplicate_username_concurrent_registration
|
||||
error(self.c, "POST", LOGIN, 401, "unauthorized",
|
||||
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
headers=basic(candidate["username"], candidate["password"]))
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/olegromanovich/Library/Mobile Documents/com~apple~CloudDocs/Пары/Высоконагруженные приложения/HighLoad/student-tests/auth_contract.py", line 51, in error
|
||||
response = c.call(method, path, status, **kwargs)
|
||||
File "/Users/olegromanovich/Library/Mobile Documents/com~apple~CloudDocs/Пары/Высоконагруженные приложения/HighLoad/tests/client.py", line 132, in call
|
||||
check(status in allowed, method + ' ' + path.split('?')[0] + ': expected ' + str(allowed) + ', received ' + str(status))
|
||||
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/olegromanovich/Library/Mobile Documents/com~apple~CloudDocs/Пары/Высоконагруженные приложения/HighLoad/tests/client.py", line 24, in check
|
||||
raise Failure(message)
|
||||
client.Failure: POST /api/v1/auth/sessions: expected [401], received 502
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 16 tests in 8.226s
|
||||
|
||||
FAILED (failures=1)
|
||||
Reference in New Issue
Block a user