runner fix
CI / verify (push) Successful in 24s
CI / infrastructure-smoke (push) Successful in 19s

This commit is contained in:
ekklesia
2026-07-13 20:19:30 -05:00
parent 7b448d8706
commit 2465d9c1f7
3 changed files with 94 additions and 6 deletions
+19
View File
@@ -79,6 +79,25 @@ describe("development infrastructure", () => {
expect(infrastructureCommands).toContain("bash scripts/smoke-infrastructure.sh");
});
it("routes containerized S3 smoke checks through the isolated Compose network", async () => {
const source = await readFile(
path.join(repositoryRoot, "scripts", "smoke-infrastructure.sh"),
"utf8",
);
expect(source).toContain("[[ -f /.dockerenv ]]");
expect(source).toContain(`object_storage_container="$("\${compose[@]}" ps -q object-storage)"`);
expect(source).toContain("docker inspect");
expect(source).toContain('docker network connect "$compose_network" "$current_container"');
expect(source).toContain('docker network disconnect "$compose_network" "$current_container"');
expect(source).toContain('s3_endpoint="http://object-storage:8333"');
expect(source).toContain('s3_endpoint="http://127.0.0.1:$s3_port"');
expect(source).not.toContain("0.0.0.0:${S3_PORT");
expect(source.indexOf("docker network disconnect")).toBeLessThan(
source.indexOf(`"\${compose[@]}" down`),
);
});
it("includes every official platform layer in the workspace", async () => {
const source = await readFile(path.join(repositoryRoot, "pnpm-workspace.yaml"), "utf8");
const workspace = parse(source) as WorkspaceDocument;