|
|
|
@ -6,26 +6,10 @@ import {
|
|
|
|
|
testRequiredVariables,
|
|
|
|
|
} from "../test";
|
|
|
|
|
|
|
|
|
|
describe("git-clone", async () => {
|
|
|
|
|
describe("coder-login", async () => {
|
|
|
|
|
await runTerraformInit(import.meta.dir);
|
|
|
|
|
|
|
|
|
|
testRequiredVariables(import.meta.dir, {
|
|
|
|
|
agent_id: "foo",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it("runs with default", async () => {
|
|
|
|
|
const state = await runTerraformApply(import.meta.dir, {
|
|
|
|
|
agent_id: "foo",
|
|
|
|
|
});
|
|
|
|
|
const output = await executeScriptInContainer(state, "alpine");
|
|
|
|
|
// expect(output.exitCode).toBe(0);
|
|
|
|
|
expect(output.stderr).toEqual([
|
|
|
|
|
""
|
|
|
|
|
]);
|
|
|
|
|
expect(output.stdout).toEqual([
|
|
|
|
|
"Authenticating with Coder...",
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|