40 lines
3.7 KiB
Plaintext
40 lines
3.7 KiB
Plaintext
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 "/private/var/folders/29/ynjlk2qn0w36p604jk6_2_180000gn/T/lab2-clone-3ftebi2o/путь с пробелами/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 "/private/var/folders/29/ynjlk2qn0w36p604jk6_2_180000gn/T/lab2-clone-3ftebi2o/путь с пробелами/HighLoad/student-tests/auth_contract.py", line 51, in error
|
||
response = c.call(method, path, status, **kwargs)
|
||
File "/private/var/folders/29/ynjlk2qn0w36p604jk6_2_180000gn/T/lab2-clone-3ftebi2o/путь с пробелами/HighLoad/tests/client.py", line 132, in call
|
||
check(status in allowed, method + ' ' + path.split('?')[0] + ': expected ' + str(allowed) + ', received ' + str(status))
|
||
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
File "/private/var/folders/29/ynjlk2qn0w36p604jk6_2_180000gn/T/lab2-clone-3ftebi2o/путь с пробелами/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 7.323s
|
||
|
||
FAILED (failures=1)
|