Skip to content

Commit 829a692

Browse files
CopilotFoorack
andcommitted
Remove trusted domains tests as requested
Co-authored-by: Foorack <5008081+Foorack@users.noreply.github.com>
1 parent e438265 commit 829a692

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

registry/coder/modules/code-server/code-server.tftest.hcl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,3 @@ run "url_with_folder_query" {
4848
error_message = "coder_app URL must include encoded folder query param"
4949
}
5050
}
51-
52-
run "trusted_domains_empty" {
53-
command = plan
54-
55-
variables {
56-
agent_id = "foo"
57-
trusted_domains = []
58-
}
59-
60-
assert {
61-
condition = !can(regex("CODE_SERVER.*--link-protection-trusted-domains", resource.coder_script.code-server.script))
62-
error_message = "Empty trusted_domains should not include --link-protection-trusted-domains option in command execution"
63-
}
64-
}
65-
66-
run "trusted_domains_with_values" {
67-
command = plan
68-
69-
variables {
70-
agent_id = "foo"
71-
trusted_domains = ["example.com", "trusted.org"]
72-
}
73-
74-
assert {
75-
condition = can(regex("TRUSTED_DOMAINS_ARG=\"--link-protection-trusted-domains=example\\.com,trusted\\.org\"", resource.coder_script.code-server.script))
76-
error_message = "trusted_domains should include --link-protection-trusted-domains option with correct domains in command execution"
77-
}
78-
}

0 commit comments

Comments
 (0)