Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit c23edf4

Browse files
committed
added jetbrains-gateway test
1 parent b03bb1b commit c23edf4

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

jetbrains-gateway/main.test.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import { describe } from "bun:test";
2-
import { runTerraformInit, testRequiredVariables } from "../test";
1+
import { it, expect, describe } from "bun:test";
2+
import {
3+
runTerraformInit,
4+
testRequiredVariables,
5+
executeScriptInContainer,
6+
runTerraformApply,
7+
} from "../test";
38

49
describe("jetbrains-gateway", async () => {
510
await runTerraformInit(import.meta.dir);
@@ -10,4 +15,16 @@ describe("jetbrains-gateway", async () => {
1015
folder: "/baz/",
1116
jetbrains_ides: '["IU", "IC", "PY"]',
1217
});
18+
19+
it("default to first ide", async () => {
20+
const state = await runTerraformApply(import.meta.dir, {
21+
agent_id: "foo",
22+
agent_name: "bar",
23+
folder: "/baz/",
24+
jetbrains_ides: '["IU", "IC", "PY"]',
25+
});
26+
expect(state.outputs.jetbrains_ides.value).toBe(
27+
'["IU","232.9921.47","https://download.jetbrains.com/idea/ideaIU-2023.2.2.tar.gz"]',
28+
);
29+
});
1330
});

0 commit comments

Comments
 (0)