forked from mtusi2026/mtusi2026lab7
Майорова Софья, БВТ2301, на 5. Трек1. HTTPS/TLS/ACL,18 API tests,13 pipeline groups,3 compromise runs,clean clone,persistence. Original tests/API contract preserved; residual CVE triage in REPORT/security.
31 lines
2.0 KiB
Plaintext
31 lines
2.0 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 "https://localhost:18443" --ca-file "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/pki/lb/ca.crt"
|
|
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
|
python3 tests/security.py --base-url "https://localhost:18443" --ca-file "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/pki/lb/ca.crt"
|
|
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
|
BASE_URL="https://localhost:18443" CA_FILE="/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/pki/lb/ca.crt" 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_async_variants_and_replay (test_images.Images) ... ok
|
|
test_mime_bytes_pixels_and_filename (test_images.Images) ... ok
|
|
test_private_and_cross_chat (test_images.Images) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 18 tests in 7.369s
|
|
|
|
OK
|