32 lines
1.7 KiB
Plaintext
32 lines
1.7 KiB
Plaintext
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
python3 tests/smoke.py --base-url "http://127.0.0.1:18089"
|
|
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
|
BASE_URL="http://127.0.0.1:18089" python3 -m unittest discover -s student-tests -p 'test_*.py' -v
|
|
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
|
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
|
test_foreign_chat (test_api.APIContract) ... ok
|
|
test_idempotency_concurrent_replicas (test_api.APIContract) ... ok
|
|
test_idempotency_conflicting_race (test_api.APIContract) ... ok
|
|
test_idempotency_invalid_keys (test_api.APIContract) ... ok
|
|
test_idempotency_scope (test_api.APIContract) ... ok
|
|
test_idempotency_semantic_body (test_api.APIContract) ... ok
|
|
test_invalid_chat_creation (test_api.APIContract) ... ok
|
|
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
|
test_protocol_error_headers (test_api.APIContract) ... ok
|
|
test_registration_race (test_api.APIContract) ... ok
|
|
test_unicode_limits (test_api.APIContract) ... ok
|
|
test_unicode_nul_round_trip (test_api.APIContract) ... ok
|
|
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
|
test_access_and_cross_chat (test_attachments.Attachments) ... ok
|
|
test_attachment_message_replay (test_attachments.Attachments) ... ok
|
|
test_bad_images_and_mime (test_attachments.Attachments) ... ok
|
|
test_binary_roundtrip_and_metadata (test_attachments.Attachments) ... ok
|
|
test_dangerous_names_and_query (test_attachments.Attachments) ... ok
|
|
test_valid_pixel_boundary (test_attachments.Attachments) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 21 tests in 5.309s
|
|
|
|
OK
|