35 lines
3.0 KiB
Plaintext
35 lines
3.0 KiB
Plaintext
$ BASE_URL=http://127.0.0.1:8080 python -B -m unittest -v test_api test_race
|
|
test_basic_is_not_accepted_outside_session_creation (test_api.Authentication.test_basic_is_not_accepted_outside_session_creation) ... ok
|
|
test_logout_revokes_only_that_session (test_api.Authentication.test_logout_revokes_only_that_session) ... ok
|
|
test_missing_and_unknown_tokens (test_api.Authentication.test_missing_and_unknown_tokens) ... ok
|
|
test_session_endpoint_rejects_json_body_and_bad_basic (test_api.Authentication.test_session_endpoint_rejects_json_body_and_bad_basic) ... ok
|
|
test_session_payload_and_expiry (test_api.Authentication.test_session_payload_and_expiry) ... ok
|
|
test_wrong_password_and_unknown_user_are_indistinguishable (test_api.Authentication.test_wrong_password_and_unknown_user_are_indistinguishable) ... ok
|
|
test_x_user_id_is_ignored (test_api.Authentication.test_x_user_id_is_ignored) ... ok
|
|
test_foreign_chat_is_hidden_everywhere (test_api.Chats.test_foreign_chat_is_hidden_everywhere) ... ok
|
|
test_membership_validation (test_api.Chats.test_membership_validation) ... ok
|
|
test_messages_are_validated_and_unicode_preserved (test_api.Chats.test_messages_are_validated_and_unicode_preserved) ... ok
|
|
test_health_endpoints_and_request_id (test_api.HealthAndEnvelope.test_health_endpoints_and_request_id) ... ok
|
|
test_query_parameters_rejected_where_not_supported (test_api.HealthAndEnvelope.test_query_parameters_rejected_where_not_supported) ... ok
|
|
test_unknown_route_uses_same_error_envelope (test_api.HealthAndEnvelope.test_unknown_route_uses_same_error_envelope) ... ok
|
|
test_cursor_is_bound_to_its_chat (test_api.Pagination.test_cursor_is_bound_to_its_chat) ... ok
|
|
test_limit_and_cursor_validation (test_api.Pagination.test_limit_and_cursor_validation) ... ok
|
|
test_walks_every_page_without_loss_or_duplicates (test_api.Pagination.test_walks_every_page_without_loss_or_duplicates) ... ok
|
|
test_duplicate_username_conflict (test_api.Registration.test_duplicate_username_conflict) ... ok
|
|
test_malformed_json_extra_fields_and_wrong_types (test_api.Registration.test_malformed_json_extra_fields_and_wrong_types) ... ok
|
|
test_password_rules (test_api.Registration.test_password_rules) ... ok
|
|
test_response_has_no_secret_fields (test_api.Registration.test_response_has_no_secret_fields) ... ok
|
|
test_unsupported_media_type (test_api.Registration.test_unsupported_media_type) ... ok
|
|
test_username_rules (test_api.Registration.test_username_rules) ... ok
|
|
test_100_messages_from_10_clients_are_exactly_100 (test_race.ConcurrentWrites.test_100_messages_from_10_clients_are_exactly_100) ...
|
|
concurrent writes: 100 messages from 10 clients in 3.08s
|
|
ok
|
|
test_bounded_pool_serves_parallel_reads (test_race.ConcurrentWrites.test_bounded_pool_serves_parallel_reads) ... ok
|
|
test_chat_creation_rolls_back_on_unknown_member (test_race.ConcurrentWrites.test_chat_creation_rolls_back_on_unknown_member) ... ok
|
|
test_duplicate_username_race_creates_one_user (test_race.ConcurrentWrites.test_duplicate_username_race_creates_one_user) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 26 tests in 14.846s
|
|
|
|
OK
|