mirror of
https://github.com/coder/registry.git
synced 2026-06-02 20:48:14 +00:00
ccdca6daf5
Closes #383 ## Description - Update CONTRIBUTION.md to elaborate on ts and tf tests - Add ./scripts/terraform_test_all.sh to CI for ts tests <!-- Briefly describe what this PR does and why --> ## Type of Change - [ ] New module - [ ] Bug fix - [ ] Feature/enhancement - [X] Documentation - [X] Other ## Testing & Validation - [ ] Tests pass (`bun test`) - [X] Code formatted (`bun run fmt`) - [ ] Changes tested locally --------- Co-authored-by: Atif Ali <atif@coder.com>
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"
|
|
}
|
|
}
|