forked from mtusi2026/mtusi2026lab2
Rerun the clean clone pass on the final commit in its own compose project: secrets, config, up with migrations on empty volumes, readiness, smoke, replica spread and same key races, failover, persistence, repeated migrations, down keeping volumes and reset-data removing them. Record the student tests by name and the limits policy on the final code. Check every figure of the report against evidence files and fix the ones that drifted: data set sizes, the share of the chat lock statement, the WAL waits, the aborted series, the disturbed steps, the restart timing and the image ID of the rolling update. State which commit each evidence file was taken on, answer the defense questions, index evidence/ and bring AGENTS.md and the openspec context up to date for lab 3. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
254 lines
22 KiB
Plaintext
254 lines
22 KiB
Plaintext
date: 2026-10-29T00:00:10Z commit: e88673d
|
||
$ PYTEST_ADDOPTS=-vv make student-test # все собственные тесты без маркера stack (одноразовые PostgreSQL и Valkey в Docker), по именам
|
||
============================= test session starts ==============================
|
||
collecting ... collected 250 items / 10 deselected / 240 selected
|
||
|
||
student-tests/api/test_access.py::test_outsider_gets_404_on_chat PASSED
|
||
student-tests/api/test_access.py::test_unknown_chat_is_indistinguishable_from_foreign PASSED
|
||
student-tests/api/test_access.py::test_outsider_cannot_write PASSED
|
||
student-tests/api/test_access.py::test_outsider_cannot_read_history PASSED
|
||
student-tests/api/test_access.py::test_access_checked_before_body PASSED
|
||
student-tests/api/test_access.py::test_chat_list_hides_foreign_chats PASSED
|
||
student-tests/api/test_access.py::test_403_is_never_used PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_identity_does_not_know_about_messaging PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_messaging_touches_identity_only_through_events PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_domains_do_not_import_infrastructure PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_core_layers_do_not_import_pydantic PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_knows_nothing_about_zones PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_core_is_free_of_transport PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_core_holds_only_platform PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_entrypoints_hold_only_transport PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_errors_events_and_commands PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_every_zone_owns_its_http_layer PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_only_main_knows_both_zones PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_application_has_no_separate_entrypoints_root PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_source_mentions_no_domain_vocabulary PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_declares_no_concrete_commands_or_events PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_shared_has_no_test_doubles PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_zone_errors_do_not_leak_transport_codes PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_sql_of_each_zone_reads_only_its_tables PASSED
|
||
student-tests/api/test_bounded_contexts.py::test_messaging_does_not_import_identity_at_all PASSED
|
||
student-tests/api/test_cache.py::test_second_check_is_served_from_cache PASSED
|
||
student-tests/api/test_cache.py::test_logout_writes_tombstone_before_database PASSED
|
||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token PASSED
|
||
student-tests/api/test_cache.py::test_flushall_loses_nothing PASSED
|
||
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access PASSED
|
||
student-tests/api/test_concurrency.py::test_hundred_messages_from_ten_clients PASSED
|
||
student-tests/api/test_concurrency.py::test_history_follows_the_clock_but_never_moves_back PASSED
|
||
student-tests/api/test_concurrency.py::test_parallel_registration_keeps_username_unique PASSED
|
||
student-tests/api/test_concurrency.py::test_parallel_chat_creation_is_atomic PASSED
|
||
student-tests/api/test_consistency.py::test_registration_is_visible_to_chats_immediately PASSED
|
||
student-tests/api/test_consistency.py::test_parallel_registrations_are_all_usable_as_members PASSED
|
||
student-tests/api/test_consistency.py::test_rejected_registration_leaves_no_trace PASSED
|
||
student-tests/api/test_consistency.py::test_failed_chat_creation_rolls_back_both_tables PASSED
|
||
student-tests/api/test_consistency.py::test_rejected_message_does_not_enter_history PASSED
|
||
student-tests/api/test_consistency.py::test_confirmed_write_is_visible_to_next_read PASSED
|
||
student-tests/api/test_consistency.py::test_parallel_writes_across_zones_keep_counts_consistent PASSED
|
||
student-tests/api/test_consistency.py::test_chat_membership_survives_parallel_reads_and_writes PASSED
|
||
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED
|
||
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_exits PASSED
|
||
student-tests/api/test_events.py::test_event_has_no_message_text PASSED
|
||
student-tests/api/test_events.py::test_every_subscriber_receives_event PASSED
|
||
student-tests/api/test_events.py::test_failing_subscriber_does_not_block_others PASSED
|
||
student-tests/api/test_events.py::test_queue_overflow_drops_events_without_raising PASSED
|
||
student-tests/api/test_events.py::test_projection_runs_before_publish_returns PASSED
|
||
student-tests/api/test_events.py::test_publication_does_not_delay_response PASSED
|
||
student-tests/api/test_events.py::test_null_logger_hides_everything PASSED
|
||
student-tests/api/test_idempotency.py::test_replay_returns_the_same_message PASSED
|
||
student-tests/api/test_idempotency.py::test_same_json_in_other_layout_is_a_replay PASSED
|
||
student-tests/api/test_idempotency.py::test_other_body_with_same_key_conflicts PASSED
|
||
student-tests/api/test_idempotency.py::test_missing_key_is_rejected PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[0] PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[1] PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[2] PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[3] PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[4] PASSED
|
||
student-tests/api/test_idempotency.py::test_malformed_key_is_rejected[5] PASSED
|
||
student-tests/api/test_idempotency.py::test_rejected_attempt_does_not_take_the_key PASSED
|
||
student-tests/api/test_idempotency.py::test_key_is_scoped_by_user_and_chat PASSED
|
||
student-tests/api/test_idempotency.py::test_replay_checks_session_and_access_again PASSED
|
||
student-tests/api/test_idempotency.py::test_expired_key_starts_over PASSED
|
||
student-tests/api/test_idempotency.py::test_concurrent_retries_through_two_replicas_store_one_message PASSED
|
||
student-tests/api/test_instance.py::test_every_response_names_the_replica PASSED
|
||
student-tests/api/test_instance.py::test_rejected_body_names_the_replica PASSED
|
||
student-tests/api/test_instance.py::test_unhandled_error_names_the_replica PASSED
|
||
student-tests/api/test_instance.py::test_replica_defaults_to_container_hostname PASSED
|
||
student-tests/api/test_migrations.py::test_migrations_are_ordered_and_versioned PASSED
|
||
student-tests/api/test_migrations.py::test_rerun_changes_nothing PASSED
|
||
student-tests/api/test_migrations.py::test_changed_migration_is_refused PASSED
|
||
student-tests/api/test_migrations.py::test_sender_must_be_member_even_bypassing_api PASSED
|
||
student-tests/api/test_migrations.py::test_key_needs_a_member_and_a_message PASSED
|
||
student-tests/api/test_negative.py::test_malformed_json PASSED
|
||
student-tests/api/test_negative.py::test_unexpected_field PASSED
|
||
student-tests/api/test_negative.py::test_wrong_types PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body0] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body1] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body2] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body3] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body4] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body5] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body6] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body7] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body8] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body9] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_registration[body10] PASSED
|
||
student-tests/api/test_negative.py::test_duplicate_username PASSED
|
||
student-tests/api/test_negative.py::test_missing_identity PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer ] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer not a token] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[Token abcdef] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_bearer[11111111-1111-4111-8111-111111111111] PASSED
|
||
student-tests/api/test_negative.py::test_user_id_header_alone_is_ignored PASSED
|
||
student-tests/api/test_negative.py::test_identity_checked_before_body PASSED
|
||
student-tests/api/test_negative.py::test_empty_message_rejected PASSED
|
||
student-tests/api/test_negative.py::test_long_message_rejected PASSED
|
||
student-tests/api/test_negative.py::test_sender_id_not_accepted PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body0] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body1] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body2] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body3] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body4] PASSED
|
||
student-tests/api/test_negative.py::test_invalid_chat_creation[body5] PASSED
|
||
student-tests/api/test_negative.py::test_creator_must_be_member PASSED
|
||
student-tests/api/test_negative.py::test_unknown_member_rejected PASSED
|
||
student-tests/api/test_negative.py::test_bad_chat_id_in_path PASSED
|
||
student-tests/api/test_operability.py::test_health_needs_no_identity PASSED
|
||
student-tests/api/test_operability.py::test_every_response_carries_request_id PASSED
|
||
student-tests/api/test_operability.py::test_client_request_id_is_preserved PASSED
|
||
student-tests/api/test_operability.py::test_unknown_public_route_is_404 PASSED
|
||
student-tests/api/test_operability.py::test_unknown_protected_route_needs_identity PASSED
|
||
student-tests/api/test_operability.py::test_method_not_allowed_is_hidden PASSED
|
||
student-tests/api/test_operability.py::test_logs_do_not_contain_message_text PASSED
|
||
student-tests/api/test_operability.py::test_log_lines_are_json PASSED
|
||
student-tests/api/test_operability.py::test_body_limit_returns_413 PASSED
|
||
student-tests/api/test_operability.py::test_ready_turns_unavailable_without_database PASSED
|
||
student-tests/api/test_operability.py::test_protected_request_is_503_not_401_without_database PASSED
|
||
student-tests/api/test_operability.py::test_state_survives_new_process PASSED
|
||
student-tests/api/test_operability.py::test_logs_do_not_contain_credentials PASSED
|
||
student-tests/api/test_pagination.py::test_full_walk_has_no_gaps_or_repeats PASSED
|
||
student-tests/api/test_pagination.py::test_limit_may_change_between_pages PASSED
|
||
student-tests/api/test_pagination.py::test_last_page_closes_history PASSED
|
||
student-tests/api/test_pagination.py::test_cursor_is_shared_between_members PASSED
|
||
student-tests/api/test_pagination.py::test_cursor_from_another_chat_is_rejected PASSED
|
||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[garbage] PASSED
|
||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[1.2.3.4] PASSED
|
||
student-tests/api/test_pagination.py::test_broken_cursor_is_rejected[%20] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[0] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[-1] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[101] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[abc] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[1.5] PASSED
|
||
student-tests/api/test_pagination.py::test_limit_out_of_range[] PASSED
|
||
student-tests/api/test_pagination.py::test_default_limit_is_50 PASSED
|
||
student-tests/api/test_pagination.py::test_unknown_query_parameter_is_ignored PASSED
|
||
student-tests/api/test_pagination.py::test_chat_list_pagination PASSED
|
||
student-tests/api/test_pool.py::test_exhausted_pool_answers_503_in_bounded_time PASSED
|
||
student-tests/api/test_pool.py::test_statement_timeout_is_set_on_connections PASSED
|
||
student-tests/api/test_sessions.py::test_login_returns_session_for_registered_user PASSED
|
||
student-tests/api/test_sessions.py::test_registration_response_hides_password PASSED
|
||
student-tests/api/test_sessions.py::test_password_is_stored_as_argon2id PASSED
|
||
student-tests/api/test_sessions.py::test_session_stores_only_token_digest PASSED
|
||
student-tests/api/test_sessions.py::test_wrong_password_and_unknown_user_look_the_same PASSED
|
||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers0] PASSED
|
||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers1] PASSED
|
||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers2] PASSED
|
||
student-tests/api/test_sessions.py::test_login_without_valid_basic[headers3] PASSED
|
||
student-tests/api/test_sessions.py::test_password_with_colon_logs_in PASSED
|
||
student-tests/api/test_sessions.py::test_login_with_body_is_rejected PASSED
|
||
student-tests/api/test_sessions.py::test_basic_on_business_endpoint_gets_bearer_challenge PASSED
|
||
student-tests/api/test_sessions.py::test_user_id_header_does_not_override_owner PASSED
|
||
student-tests/api/test_sessions.py::test_authentication_precedes_validation PASSED
|
||
student-tests/api/test_sessions.py::test_logout_revokes_only_current_session PASSED
|
||
student-tests/api/test_sessions.py::test_short_ttl_session_expires PASSED
|
||
student-tests/api/test_sessions.py::test_expired_sessions_are_purged_on_next_login PASSED
|
||
student-tests/api/test_sessions.py::test_chat_routes_require_bearer PASSED
|
||
student-tests/api/test_timeout.py::test_timeout_returns_unavailable_error_body PASSED
|
||
student-tests/api/test_timeout.py::test_timeout_does_not_break_following_requests PASSED
|
||
student-tests/api/test_timeout.py::test_timeout_is_logged_without_message_text PASSED
|
||
student-tests/api/test_timeout.py::test_normal_request_is_not_affected_by_timeout PASSED
|
||
student-tests/api/test_timeout.py::test_slow_event_handler_does_not_trigger_timeout PASSED
|
||
student-tests/api/test_timeout.py::test_healthcheck_stays_fast PASSED
|
||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[whole-second] PASSED
|
||
student-tests/api/test_wire_format.py::test_created_at_is_rfc3339_utc[microseconds] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_splits_on_first_colon PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_decodes_utf8_password PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_scheme_is_case_insensitive PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic ] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic !!!not-base64!!!] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic bm8tY29sb24taGVyZQ==] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic 0LDQu9C40YHQsDrQv9Cw0YDQvtC70Yw=] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Basic YWxpY2U6//4=] PASSED
|
||
student-tests/unit/test_authentication.py::test_basic_rejects_malformed[Bearer YWxpY2U6c2VjcmV0] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_accepts_token68 PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer ] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Bearer a b] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[Basic abc] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_malformed[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED
|
||
student-tests/unit/test_authentication.py::test_bearer_rejects_oversized_token PASSED
|
||
student-tests/unit/test_authentication.py::test_challenge_depends_only_on_path PASSED
|
||
student-tests/unit/test_cursor.py::test_roundtrip_preserves_key PASSED
|
||
student-tests/unit/test_cursor.py::test_cursor_is_opaque PASSED
|
||
student-tests/unit/test_cursor.py::test_cursor_from_another_scope_is_rejected PASSED
|
||
student-tests/unit/test_cursor.py::test_forged_cursor_is_rejected PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[] PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[garbage] PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.2.3] PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[2.1.2.3] PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.notanumber.ff.AAAA] PASSED
|
||
student-tests/unit/test_cursor.py::test_broken_cursor_is_rejected[1.1.zz.AAAA] PASSED
|
||
student-tests/unit/test_cursor.py::test_tampered_payload_is_rejected PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[ab] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[Alice] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice-01] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[\u0430\u043b\u0438\u0441\u0430] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[a b] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\n] PASSED
|
||
student-tests/unit/test_domain.py::test_username_rejects_invalid[alice\r\n] PASSED
|
||
student-tests/unit/test_domain.py::test_username_accepts_valid[abc] PASSED
|
||
student-tests/unit/test_domain.py::test_username_accepts_valid[a_b_9] PASSED
|
||
student-tests/unit/test_domain.py::test_username_accepts_valid[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED
|
||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[] PASSED
|
||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[ ] PASSED
|
||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[\t\n] PASSED
|
||
student-tests/unit/test_domain.py::test_display_name_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED
|
||
student-tests/unit/test_domain.py::test_password_rejects_invalid[] PASSED
|
||
student-tests/unit/test_domain.py::test_password_rejects_invalid[ ] PASSED
|
||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxx] PASSED
|
||
student-tests/unit/test_domain.py::test_password_rejects_invalid[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED
|
||
student-tests/unit/test_domain.py::test_password_rejects_invalid[\t\t\t\t\t\t\t\t\t\t\t\t] PASSED
|
||
student-tests/unit/test_domain.py::test_password_counts_code_points[xxxxxxxxxxxx] PASSED
|
||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f\u043f] PASSED
|
||
student-tests/unit/test_domain.py::test_password_counts_code_points[\u043f\u0430\u0440\u043e\u043b\u044c:\u0441:\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c] PASSED
|
||
student-tests/unit/test_domain.py::test_password_counts_code_points[\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b\U0001f44b] PASSED
|
||
student-tests/unit/test_domain.py::test_password_is_not_printed PASSED
|
||
student-tests/unit/test_domain.py::test_session_token_is_opaque_and_stored_as_digest PASSED
|
||
student-tests/unit/test_domain.py::test_session_tokens_are_unique PASSED
|
||
student-tests/unit/test_domain.py::test_message_text_counts_code_points_not_bytes PASSED
|
||
student-tests/unit/test_domain.py::test_message_text_rejects_blank PASSED
|
||
student-tests/unit/test_domain.py::test_chat_requires_creator_in_members PASSED
|
||
student-tests/unit/test_domain.py::test_chat_rejects_duplicate_members PASSED
|
||
student-tests/unit/test_domain.py::test_chat_rejects_more_than_hundred_members PASSED
|
||
student-tests/unit/test_domain.py::test_receipt_replays_only_the_same_request PASSED
|
||
student-tests/unit/test_domain.py::test_posted_message_describes_itself PASSED
|
||
student-tests/unit/test_domain.py::test_user_registration_emits_event PASSED
|
||
student-tests/unit/test_domain.py::test_clock_is_strictly_increasing PASSED
|
||
student-tests/unit/test_timeouts.py::test_timeouts_shrink_inwards_and_shutdown_fits_the_stop_budget PASSED
|
||
|
||
===================== 240 passed, 10 deselected in 19.77s ======================
|
||
|
||
$ .venv/bin/pytest -s -q student-tests/api/test_drain.py student-tests/unit/test_timeouts.py # SIGTERM-окно и цепочка таймаутов
|
||
.окно: ready/live (503, 200), порт закрыт через 1.74 с, выход 2.11 с
|
||
запрос, принятый до SIGTERM и дописанный после закрытия порта: HTTP/1.1 201 Created
|
||
.обнаружение 1.5 с (зависание 3.5 с), окно 2.0 с, остановка 5.0 с, хук 6.0 с, stop_grace_period 8.0 с; LB server 10.0 с > запрос 8.0 с > БД 3.0 с; readiness 0.8 с < check 1.0 с
|
||
.
|