You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
652 B
TypeScript
27 lines
652 B
TypeScript
import { it, expect, describe } from "bun:test";
|
|
import {
|
|
runTerraformInit,
|
|
testRequiredVariables,
|
|
runTerraformApply,
|
|
} from "../test";
|
|
|
|
describe("jetbrains-gateway", async () => {
|
|
await runTerraformInit(import.meta.dir);
|
|
|
|
await testRequiredVariables(import.meta.dir, {
|
|
agent_id: "foo",
|
|
agent_name: "foo",
|
|
folder: "/home/foo",
|
|
});
|
|
|
|
it("default to first ide", async () => {
|
|
const state = await runTerraformApply(import.meta.dir, {
|
|
agent_id: "foo",
|
|
agent_name: "foo",
|
|
folder: "/home/foo",
|
|
jetbrains_ides: '["IU", "GO", "PY"]',
|
|
});
|
|
expect(state.outputs.identifier.value).toBe("IU");
|
|
});
|
|
});
|