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.
32 lines
734 B
TypeScript
32 lines
734 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import {
|
|
executeScriptInContainer,
|
|
runTerraformApply,
|
|
runTerraformInit,
|
|
testRequiredVariables,
|
|
} from "../test";
|
|
|
|
describe("git-clone", 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...",
|
|
"",
|
|
""
|
|
]);
|
|
});
|
|
});
|