forked from mtusi2026/mtusi2026lab5
24 lines
1.8 KiB
Plaintext
24 lines
1.8 KiB
Plaintext
BASE_URL="http://localhost:8080" RUN_STORAGE_TESTS=1 poetry run pytest student-tests/test_storage_security.py student-tests/test_storage_consistency.py -s
|
|
/Users/enterxx/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
|
|
warnings.warn(
|
|
============================= test session starts ==============================
|
|
platform darwin -- Python 3.12.12, pytest-9.1.1, pluggy-1.6.0 -- /Users/enterxx/Desktop/university/4course/mtusi2026lab5/.venv/bin/python
|
|
cachedir: .pytest_cache
|
|
rootdir: /Users/enterxx/Desktop/university/4course/mtusi2026lab5
|
|
configfile: pyproject.toml
|
|
plugins: anyio-4.15.1
|
|
collecting ... collected 8 items
|
|
|
|
student-tests/test_storage_security.py::test_anonymous_s3_access_is_denied PASSED
|
|
student-tests/test_storage_security.py::test_api_credentials_are_limited_to_own_bucket_objects PASSED
|
|
student-tests/test_storage_security.py::test_api_container_has_no_admin_credentials PASSED
|
|
student-tests/test_storage_security.py::test_admin_interfaces_are_not_reachable PASSED
|
|
student-tests/test_storage_security.py::test_balancer_network_cannot_reach_storage PASSED
|
|
student-tests/test_storage_security.py::test_bucket_bootstrap_is_idempotent PASSED
|
|
student-tests/test_storage_consistency.py::test_janitor_cleans_only_stale_unaccounted_data
|
|
JANITOR REPORT: {"dry_run": false, "unfinished_claimed": 2, "unfinished_objects_deleted": 2, "unfinished_rows_deleted": 2, "objects_scanned": 408, "orphan_objects_found": 5, "orphan_objects_deleted": 5}
|
|
PASSED
|
|
student-tests/test_storage_consistency.py::test_interrupted_upload_leaves_nothing PASSED
|
|
|
|
======================== 8 passed in 108.63s (0:01:48) =========================
|