fix(provisioner/terraform/tfparse): skip evaluation of unrelated parameters (#16023)

* Improves tfparse test coverage to include more parameter types and values
* Adds tests with unrelated parameters that should be ignored by tfparse
* Modifies tfparse to only attempt evaluation of parameters referenced by coder_workspace_tags
This commit is contained in:
Cian Johnston
2025-01-03 19:32:17 +00:00
committed by GitHub
parent 4e0963966d
commit 1ab10cf80c
5 changed files with 330 additions and 78 deletions

View File

@ -1412,6 +1412,11 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
provider "coder" {}
data "coder_workspace" "me" {}
data "coder_workspace_owner" "me" {}
data "coder_parameter" "unrelated" {
name = "unrelated"
type = "list(string)"
default = jsonencode(["a", "b"])
}
%s
`