lab4: исправления по ревью
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user