fix: fix tests

This commit is contained in:
35C4n0r 2026-02-09 09:19:17 +05:30
parent e499d602fd
commit b14bbe432d
No known key found for this signature in database
GPG Key ID: 5B71E5C9D18D5675

View File

@ -281,32 +281,6 @@ describe("agentapi", async () => {
expect(respAgentCommand.stdout).toContain("exists"); expect(respAgentCommand.stdout).toContain("exists");
}); });
test("task-app-id-output", async () => {
// Test that task_app_id output is null when enable_agentapi is false
const projectDir = "/home/coder/project";
const state = await runTerraformApply(import.meta.dir, {
agent_id: "test-agent",
experiment_report_tasks: "true",
install_agentapi: "false",
web_app_display_name: "AgentAPI Web",
web_app_slug: "agentapi-web",
web_app_icon: "/icon/coder.svg",
cli_app_display_name: "AgentAPI CLI",
cli_app_slug: "agentapi-cli",
agentapi_version: "latest",
agent_name: "claude",
module_dir_name: moduleDirName,
folder: projectDir,
pre_install_script: "echo 'Pre-install'",
install_script: "echo 'Install'",
post_install_script: "echo 'Post-install'",
start_script: "echo 'Start'",
enable_agentapi: "false",
});
expect(state.outputs.task_app_id.value).toBeNull();
});
describe("shutdown script", async () => { describe("shutdown script", async () => {
const setupMocks = async ( const setupMocks = async (
containerId: string, containerId: string,