lab4: исправления по ревью

This commit is contained in:
Vladislav Kunetskiy
2026-10-21 23:25:11 +03:00
parent 3389c6c900
commit e9f0fde6f2
32 changed files with 451 additions and 131 deletions
+5 -2
View File
@@ -36,7 +36,6 @@ def main() -> int:
env = parse_env(source)
expected = {
"admin": ("S3_ADMIN_ACCESS_KEY", "S3_ADMIN_SECRET_ACCESS_KEY"),
"app": ("S3_ACCESS_KEY_ID", "S3_SECRET_ACCESS_KEY"),
}
@@ -63,7 +62,11 @@ def main() -> int:
print(" -", failure)
return 1
print(f"PASS: S3 identities match {source.name} (admin + app)")
if "admin" not in by_name:
print("FAIL: infra/s3/s3.json has no admin identity for s3-init")
return 1
print(f"PASS: S3 app identity matches {source.name}; admin stays in s3.json/s3-init")
return 0