personalize wip, gcp region added
parent
30a8d3cde0
commit
db2441f831
@ -0,0 +1,26 @@
|
||||
import { describe, expect, it } from "bun:test";
|
||||
import {
|
||||
executeScriptInContainer,
|
||||
runTerraformApply,
|
||||
runTerraformInit,
|
||||
testRequiredVariables,
|
||||
} from "../test";
|
||||
|
||||
describe("gcp-region", async () => {
|
||||
await runTerraformInit(import.meta.dir);
|
||||
|
||||
testRequiredVariables(import.meta.dir, {});
|
||||
|
||||
it("default output", async () => {
|
||||
const state = await runTerraformApply(import.meta.dir, {});
|
||||
expect(state.outputs.value.value).toBe("");
|
||||
});
|
||||
|
||||
it("customized default", async () => {
|
||||
const state = await runTerraformApply(import.meta.dir, {
|
||||
regions: '["asia"]',
|
||||
default: "asia-east1-a",
|
||||
});
|
||||
expect(state.outputs.value.value).toBe("asia-east1-a");
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue