feat: add direct upload to 5 track
This commit is contained in:
@@ -22,12 +22,14 @@ def main():
|
||||
if mount["Type"] == "bind"
|
||||
]
|
||||
if service == "s3":
|
||||
assert not info["HostConfig"]["PortBindings"], "S3 ports are published"
|
||||
assert info["HostConfig"]["PortBindings"] == {
|
||||
"9000/tcp": [{"HostIp": "127.0.0.1", "HostPort": "9000"}]
|
||||
}, "only loopback S3 port may be published"
|
||||
assert "MINIO_BROWSER=off" in info["Config"]["Env"], (
|
||||
"MinIO console is enabled"
|
||||
)
|
||||
assert set(info["NetworkSettings"]["Networks"]) == {
|
||||
"highload-lab4_data"
|
||||
"highload-lab4_data", "highload-lab4_edge"
|
||||
}
|
||||
else:
|
||||
assert (
|
||||
@@ -56,7 +58,7 @@ def main():
|
||||
directory.mkdir(parents=True, exist_ok=True)
|
||||
(directory / "isolation.json").write_text(json.dumps(evidence, indent=2) + "\n")
|
||||
print(
|
||||
"PASS: private S3 network, disabled console, restricted API mounts, bounded tmpfs"
|
||||
"PASS: loopback-only private S3, disabled console, restricted API mounts, bounded tmpfs"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user