Files
mtusi2026lab2/evidence/validation/student-test.txt
T

131 lines
8.2 KiB
Plaintext

UTC: 2026-11-07T01:34:49.887449+00:00
SHA: 1e00d861a803a6d49ef443175b8231cbf048fc02
$ make student-test
.venv/bin/pytest
============================= test session starts ==============================
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
rootdir: <repo>
configfile: pyproject.toml
testpaths: student-tests
plugins: asyncio-1.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 1016 items / 19 deselected / 997 selected
student-tests/adapters/test_rabbitmq.py ..... [ 0%]
student-tests/adapters/test_s3_storage.py EE. [ 0%]
student-tests/api/test_access.py ......... [ 1%]
student-tests/api/test_attachments.py .................................. [ 5%]
...... [ 5%]
student-tests/api/test_bounded_contexts.py .................... [ 7%]
student-tests/api/test_cache.py ............ [ 8%]
student-tests/api/test_concurrency.py .... [ 9%]
student-tests/api/test_consistency.py ........ [ 10%]
student-tests/api/test_cost_experiment.py ... [ 10%]
student-tests/api/test_drain.py .. [ 10%]
student-tests/api/test_events.py ...... [ 11%]
student-tests/api/test_http_telemetry.py . [ 11%]
student-tests/api/test_idempotency.py ............... [ 12%]
student-tests/api/test_instance.py .... [ 13%]
student-tests/api/test_job_returning.py . [ 13%]
student-tests/api/test_message_attachments.py ............. [ 14%]
student-tests/api/test_migrations.py ................................... [ 18%]
. [ 18%]
student-tests/api/test_negative.py ..................................... [ 21%]
[ 21%]
student-tests/api/test_nul_validation.py ................. [ 23%]
student-tests/api/test_operability.py .............. [ 25%]
student-tests/api/test_pagination.py .................. [ 26%]
student-tests/api/test_pipeline.py ............. [ 28%]
student-tests/api/test_pool.py ............ [ 29%]
student-tests/api/test_reconciler.py ........... [ 30%]
student-tests/api/test_recovery.py ............ [ 31%]
student-tests/api/test_sessions.py ...................... [ 33%]
student-tests/api/test_timeout.py ........ [ 34%]
student-tests/api/test_trace_context.py . [ 34%]
student-tests/api/test_upload_consistency.py ......... [ 35%]
student-tests/api/test_versioned_pipeline.py ........... [ 36%]
student-tests/api/test_wire_format.py .. [ 37%]
student-tests/unit/test_attachments_domain.py .......................... [ 39%]
. [ 39%]
student-tests/unit/test_authentication.py ............................. [ 42%]
student-tests/unit/test_cursor.py ........... [ 43%]
student-tests/unit/test_domain.py ...................................... [ 47%]
.. [ 47%]
student-tests/unit/test_haproxy_errors.py ............... [ 49%]
student-tests/unit/test_image_inspection.py ............................ [ 52%]
........................................................................ [ 59%]
........................................................................ [ 66%]
..................................................... [ 71%]
student-tests/unit/test_job_observer.py . [ 71%]
student-tests/unit/test_nul_inputs.py ...................... [ 74%]
student-tests/unit/test_pipeline_domain.py ....................... [ 76%]
student-tests/unit/test_png_memory.py ....s [ 76%]
student-tests/unit/test_png_transparency.py ............................ [ 79%]
........................................................................ [ 86%]
.............................................. [ 91%]
student-tests/unit/test_png_upload.py .. [ 91%]
student-tests/unit/test_probe.py .............. [ 93%]
student-tests/unit/test_reconcile_measurements.py ...... [ 93%]
student-tests/unit/test_render_pool.py .....s. [ 94%]
student-tests/unit/test_renderer.py .............................. [ 97%]
student-tests/unit/test_scaling.py ..... [ 97%]
student-tests/unit/test_session_cache.py .......... [ 98%]
student-tests/unit/test_telemetry_platform.py ..... [ 99%]
student-tests/unit/test_timeouts.py . [ 99%]
student-tests/unit/test_worker_delivery.py .... [100%]
==================================== ERRORS ====================================
___________ ERROR at setup of test_round_trip_of_the_largest_object ____________
@pytest.fixture(scope="session")
def rustfs() -> Iterator[str]:
name = f"mtusi-lab6-test-rustfs-{uuid4().hex[:8]}"
keys = ["-e", f"RUSTFS_ACCESS_KEY={ROOT_KEY}", "-e", f"RUSTFS_SECRET_KEY={ROOT_SECRET}"]
container(name, *keys, "-p", f"127.0.0.1:{free_port()}:9000", image(RUSTFS_IMAGE))
try:
endpoint = f"http://127.0.0.1:{published(name, 9000)}"
deadline = time.monotonic() + STARTUP_SECONDS
while True:
try:
if httpx.get(f"{endpoint}/health/ready", timeout=1).status_code == 200:
break
except httpx.TransportError:
pass
> assert time.monotonic() < deadline, "RustFS не стал готов"
E AssertionError: RustFS не стал готов
E assert 1263360.179650416 < 1263359.923121166
E + where 1263360.179650416 = <built-in function monotonic>()
E + where <built-in function monotonic> = time.monotonic
student-tests/adapters/test_s3_storage.py:36: AssertionError
__ ERROR at setup of test_listing_is_paged_in_byte_order_and_stat_reads_size ___
@pytest.fixture(scope="session")
def rustfs() -> Iterator[str]:
name = f"mtusi-lab6-test-rustfs-{uuid4().hex[:8]}"
keys = ["-e", f"RUSTFS_ACCESS_KEY={ROOT_KEY}", "-e", f"RUSTFS_SECRET_KEY={ROOT_SECRET}"]
container(name, *keys, "-p", f"127.0.0.1:{free_port()}:9000", image(RUSTFS_IMAGE))
try:
endpoint = f"http://127.0.0.1:{published(name, 9000)}"
deadline = time.monotonic() + STARTUP_SECONDS
while True:
try:
if httpx.get(f"{endpoint}/health/ready", timeout=1).status_code == 200:
break
except httpx.TransportError:
pass
> assert time.monotonic() < deadline, "RustFS не стал готов"
E AssertionError: RustFS не стал готов
E assert 1263360.179650416 < 1263359.923121166
E + where 1263360.179650416 = <built-in function monotonic>()
E + where <built-in function monotonic> = time.monotonic
student-tests/adapters/test_s3_storage.py:36: AssertionError
=========================== short test summary info ============================
ERROR student-tests/adapters/test_s3_storage.py::test_round_trip_of_the_largest_object
ERROR student-tests/adapters/test_s3_storage.py::test_listing_is_paged_in_byte_order_and_stat_reads_size
===== 993 passed, 2 skipped, 19 deselected, 2 errors in 232.27s (0:03:52) ======
make: *** [student-test] Error 1
exit_code: 2