Skip to content

Commit 8d04383

Browse files
committed
fix tftest.hcl file
1 parent 9282198 commit 8d04383

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

registry/coder/modules/aider/main.tftest.hcl

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ run "test_aider_basic" {
44
variables {
55
agent_id = "test-agent-123"
66
workdir = "/home/coder"
7+
model = "gemini"
78
}
89

910
assert {
@@ -39,6 +40,7 @@ run "test_with_credentials" {
3940
agent_id = "test-agent-456"
4041
workdir = "/home/coder/workspace"
4142
credentials = "test-api-key-123"
43+
model = "gemini"
4244
}
4345

4446
assert {
@@ -60,7 +62,7 @@ run "test_custom_options" {
6062
ai_prompt = "Help me write better code"
6163
install_aider = false
6264
install_agentapi = false
63-
agentapi_version = "v0.6.3"
65+
agentapi_version = "v0.10.0"
6466
credentials = ""
6567
base_aider_config = "read:\n - CONVENTIONS.md"
6668
}
@@ -101,8 +103,8 @@ run "test_custom_options" {
101103
}
102104

103105
assert {
104-
condition = var.agentapi_version == "v0.6.3"
105-
error_message = "AgentAPI version should be set to 'v0.6.3'"
106+
condition = var.agentapi_version == "v0.10.0"
107+
error_message = "AgentAPI version should be set to 'v0.10.0'"
106108
}
107109
}
108110

@@ -112,6 +114,7 @@ run "test_with_scripts" {
112114
variables {
113115
agent_id = "test-agent-scripts"
114116
workdir = "/home/coder/scripts"
117+
model = "gemini"
115118
pre_install_script = "echo 'Pre-install script'"
116119
post_install_script = "echo 'Post-install script'"
117120
}
@@ -134,6 +137,7 @@ run "test_ai_provider_env_mapping" {
134137
agent_id = "test-agent-provider"
135138
workdir = "/home/coder/test"
136139
ai_provider = "google"
140+
model = "gemini"
137141
custom_env_var_name = ""
138142
}
139143

@@ -143,26 +147,3 @@ run "test_ai_provider_env_mapping" {
143147
error_message = "AI provider should be set to 'google' for this test"
144148
}
145149
}
146-
147-
run "test_system_prompt_wrapping" {
148-
command = plan
149-
150-
variables {
151-
agent_id = "test-agent-system-prompt"
152-
workdir = "/home/coder/test"
153-
system_prompt = "Custom addition"
154-
report_tasks = true
155-
}
156-
157-
assert {
158-
condition = var.system_prompt == "Custom addition"
159-
error_message = "System prompt variable should be set correctly"
160-
}
161-
162-
# When report_tasks is true, the module builds a final_system_prompt local that includes the Task Reporting section.
163-
# We can't directly reference locals from here reliably, so just assert report_tasks is true for this run.
164-
assert {
165-
condition = var.report_tasks == true
166-
error_message = "report_tasks should be true for this test"
167-
}
168-
}

0 commit comments

Comments
 (0)