22 lines
401 B
HCL
22 lines
401 B
HCL
run "plan_with_required_vars" {
|
|
command = plan
|
|
|
|
variables {
|
|
agent_id = "example-agent-id"
|
|
}
|
|
}
|
|
|
|
run "app_url_uses_port" {
|
|
command = plan
|
|
|
|
variables {
|
|
agent_id = "example-agent-id"
|
|
port = 19999
|
|
}
|
|
|
|
assert {
|
|
condition = resource.coder_app.MODULE_NAME.url == "http://localhost:19999"
|
|
error_message = "Expected MODULE_NAME app URL to include configured port"
|
|
}
|
|
}
|