fix: address s3-storage verify findings
- s3 healthcheck and fault hook probe wait for the volume server to register with master (first write after restart no longer waits ~5 s) - s3-bootstrap mounts /data as tmpfs: no anonymous volume per container - S3 client: NoSuchBucket and AccessDenied are 503 with their own error logs, not a missing object or rejected credentials; delete ignores only a missing key - test_isolated verifies prefix removal (weed shell exits 0 on errors) - s3_check derives ports from listening sockets in the s3 container - readiness without S3 is also checked with s3 paused Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -353,8 +353,15 @@ def test_readiness_without_cache(api: Api, stand: Stand) -> None:
|
||||
|
||||
|
||||
@pytest.mark.spec("health", "Хранилище объектов недоступно")
|
||||
def test_readiness_without_object_storage(api: Api, stand: Stand) -> None:
|
||||
with outage(stand, "stop", "s3"):
|
||||
@pytest.mark.parametrize("action", ["stop", "pause"])
|
||||
def test_readiness_without_object_storage(
|
||||
api: Api,
|
||||
stand: Stand,
|
||||
action: str,
|
||||
) -> None:
|
||||
# pause: соединение с S3 есть, ответа нет — проверка, которая всё же
|
||||
# ходила бы в S3, ждала бы срока вызова (5 с), а не отказа соединения
|
||||
with outage(stand, action, "s3"):
|
||||
for path in ("/health/ready", "/health/live"):
|
||||
resp, took = timed(lambda path=path: api.request("GET", path))
|
||||
assert assert_ok(resp, 200, "Health") == {"status": "ok"}
|
||||
|
||||
Reference in New Issue
Block a user