Files
mtusi2026lab5/evidence/lab5-student-tests.txt
T

61 lines
4.5 KiB
Plaintext

# Student black-box tests (grade 4/5), one command
$ C:\IT-labs\VNP\mtusi2026lab5\.venv\Scripts\python.exe -m pytest student-tests -v
============================= test session starts =============================
platform win32 -- Python 3.11.9, pytest-8.3.4, pluggy-1.7.0 -- C:\IT-labs\VNP\mtusi2026lab5\.venv\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\IT-labs\VNP\mtusi2026lab5
plugins: anyio-4.16.0
collecting ... collected 49 items
student-tests/test_attachments.py::test_upload_is_202_queued_then_ready PASSED [ 2%]
student-tests/test_attachments.py::test_content_409_while_queued PASSED [ 4%]
student-tests/test_attachments.py::test_foreign_actor_gets_404 PASSED [ 6%]
student-tests/test_attachments.py::test_cross_chat_attachment_is_404 PASSED [ 8%]
student-tests/test_attachments.py::test_oversized_upload_is_413 PASSED [ 10%]
student-tests/test_attachments.py::test_corrupt_image_is_415 PASSED [ 12%]
student-tests/test_attachments.py::test_mime_spoof_is_415 PASSED [ 14%]
student-tests/test_attachments.py::test_empty_upload_is_415 PASSED [ 16%]
student-tests/test_attachments.py::test_unsafe_filename_is_400 PASSED [ 18%]
student-tests/test_attachments.py::test_empty_text_without_attachment_is_400 PASSED [ 20%]
student-tests/test_auth.py::test_registration_requires_password PASSED [ 22%]
student-tests/test_auth.py::test_short_password_is_400 PASSED [ 24%]
student-tests/test_auth.py::test_extra_field_is_400 PASSED [ 26%]
student-tests/test_auth.py::test_malformed_json_is_400 PASSED [ 28%]
student-tests/test_auth.py::test_duplicate_username_is_409 PASSED [ 30%]
student-tests/test_auth.py::test_registration_never_returns_password PASSED [ 32%]
student-tests/test_auth.py::test_wrong_password_is_401_basic PASSED [ 34%]
student-tests/test_auth.py::test_unknown_user_is_401_basic PASSED [ 36%]
student-tests/test_auth.py::test_basic_on_business_endpoint_is_401_bearer PASSED [ 38%]
student-tests/test_auth.py::test_missing_auth_is_401_bearer PASSED [ 40%]
student-tests/test_auth.py::test_unknown_bearer_is_401 PASSED [ 42%]
student-tests/test_auth.py::test_x_user_id_is_ignored PASSED [ 44%]
student-tests/test_auth.py::test_logout_revokes_session PASSED [ 46%]
student-tests/test_concurrency.py::test_100_concurrent_messages_are_not_lost PASSED [ 48%]
student-tests/test_idempotency.py::test_replay_same_key_returns_same_message PASSED [ 51%]
student-tests/test_idempotency.py::test_same_key_different_body_is_409 PASSED [ 53%]
student-tests/test_idempotency.py::test_missing_key_is_400 PASSED [ 55%]
student-tests/test_idempotency.py::test_invalid_key_is_400 PASSED [ 57%]
student-tests/test_idempotency.py::test_concurrent_same_key_creates_exactly_one_message PASSED [ 59%]
student-tests/test_instances.py::test_instance_header_present_on_success PASSED [ 61%]
student-tests/test_instances.py::test_instance_header_present_on_error PASSED [ 63%]
student-tests/test_instances.py::test_at_least_two_instances_seen_through_lb PASSED [ 65%]
student-tests/test_negative.py::test_foreign_chat_is_404 PASSED [ 67%]
student-tests/test_negative.py::test_empty_message_is_400 PASSED [ 69%]
student-tests/test_negative.py::test_oversized_message_is_400 PASSED [ 71%]
student-tests/test_negative.py::test_limit_out_of_range_is_400 PASSED [ 73%]
student-tests/test_negative.py::test_sender_id_in_body_is_rejected PASSED [ 75%]
student-tests/test_negative.py::test_chat_without_caller_is_400 PASSED [ 77%]
student-tests/test_negative.py::test_chat_with_unknown_member_is_400 PASSED [ 79%]
student-tests/test_negative.py::test_chat_with_duplicate_members_is_400 PASSED [ 81%]
student-tests/test_pagination.py::test_full_traversal_without_duplicates PASSED [ 83%]
student-tests/test_pagination.py::test_cursor_from_other_chat_is_400 PASSED [ 85%]
student-tests/test_pagination.py::test_garbage_cursor_is_400 PASSED [ 87%]
student-tests/test_pagination.py::test_well_formed_cursor_with_wrong_types_is_400 PASSED [ 89%]
student-tests/test_pipeline.py::test_variants_match_contract PASSED [ 91%]
student-tests/test_pipeline.py::test_missing_variant_is_404 PASSED [ 93%]
student-tests/test_race.py::test_concurrent_duplicate_username_single_winner PASSED [ 95%]
student-tests/test_race.py::test_failed_chat_creation_rolls_back PASSED [ 97%]
student-tests/test_session_revocation.py::test_logout_invalidates_across_replicas PASSED [100%]
============================= 49 passed in 15.19s =============================