Skip to content

fix(coderd/wsbuilder): correctly evaluate dynamic workspace tag values #15897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 17, 2024
Prev Previous commit
Next Next commit
fix more tests
  • Loading branch information
johnstcn committed Dec 17, 2024
commit e17bceb44bc75f64fdbb4aac756adcac1e63a21e
10 changes: 5 additions & 5 deletions enterprise/coderd/workspaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1480,8 +1480,8 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
name: "tag variable",
provisionerTags: map[string]string{"foo": "bar"},
tfWorkspaceTags: `
variable "foo" {
default = "bar"
variable "foo" {
default = "bar"
}
data "coder_workspace_tags" "tags" {
tags = {
Expand All @@ -1493,8 +1493,8 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
name: "tag param",
provisionerTags: map[string]string{"foo": "bar"},
tfWorkspaceTags: `
data "coder_parameter" "foo" {
name = "foo"
data "coder_parameter" "foo" {
name = "foo"
type = "string"
default = "bar"
}
Expand All @@ -1509,7 +1509,7 @@ func TestWorkspaceTagsTerraform(t *testing.T) {
provisionerTags: map[string]string{"foo": "bar"},
tfWorkspaceTags: `
variable "foo" {
type = "string"
type = string
default = "bar"
}
data "coder_parameter" "foo" {
Expand Down
Loading