lab3: nginx, replicas, idempotency, tests

This commit is contained in:
2026-11-06 17:23:38 +03:00
commit 46c829b730
96 changed files with 206384 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
python3 -m pytest tests/test_lab3.py -v
============================= test session starts ==============================
platform darwin -- Python 3.13.2, pytest-8.3.4, pluggy-1.6.0 -- /Users/kirill/Downloads/drone_simulation_project/.venv/bin/python3
cachedir: .pytest_cache
rootdir: /Users/kirill/Desktop/esp/temka/mtusi2026lab3
plugins: platformdirs-4.12.2, anyio-3.6.2
collecting ... collected 3 items
tests/test_lab3.py::test_idempotency_same_body_returns_same_id PASSED [ 33%]
tests/test_lab3.py::test_idempotency_different_body_returns_409 PASSED [ 66%]
tests/test_lab3.py::test_shared_session_across_replicas PASSED [100%]
============================== 3 passed in 1.50s ===============================