upped gcp-region testing

This commit is contained in:
Stephen Kirby
2023-10-10 15:48:18 +00:00
parent 75d8d0dbcd
commit 294047546a

View File

@@ -23,4 +23,22 @@ describe("gcp-region", async () => {
});
expect(state.outputs.value.value).toBe("asia-east1-a");
});
it("gpu only invalid default", async () => {
const state = await runTerraformApply(import.meta.dir, {
regions: '["us-west2"]',
default: "us-west2-a",
gpu_only: "true",
});
expect(state.outputs.value.value).toBe("");
});
it("gpu only valid default", async () => {
const state = await runTerraformApply(import.meta.dir, {
regions: '["us-west2"]',
default: "us-west2-b",
gpu_only: "true",
});
expect(state.outputs.value.value).toBe("us-west2-b");
});
});