Skip to content

Commit 2940475

Browse files
committed
upped gcp-region testing
1 parent 75d8d0d commit 2940475

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gcp-region/main.test.ts

+18
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,22 @@ describe("gcp-region", async () => {
2323
});
2424
expect(state.outputs.value.value).toBe("asia-east1-a");
2525
});
26+
27+
it("gpu only invalid default", async () => {
28+
const state = await runTerraformApply(import.meta.dir, {
29+
regions: '["us-west2"]',
30+
default: "us-west2-a",
31+
gpu_only: "true",
32+
});
33+
expect(state.outputs.value.value).toBe("");
34+
});
35+
36+
it("gpu only valid default", async () => {
37+
const state = await runTerraformApply(import.meta.dir, {
38+
regions: '["us-west2"]',
39+
default: "us-west2-b",
40+
gpu_only: "true",
41+
});
42+
expect(state.outputs.value.value).toBe("us-west2-b");
43+
});
2644
});

0 commit comments

Comments
 (0)