Skip to content

Commit e2e1e17

Browse files
committed
fix test
1 parent 9ae5514 commit e2e1e17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

provisioner/terraform/resources_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,12 @@ func TestParameterValidation(t *testing.T) {
12101210
tfPlanGraph, err := os.ReadFile(filepath.Join(dir, "rich-parameters.tfplan.dot"))
12111211
require.NoError(t, err)
12121212

1213+
for _, resource := range tfPlan.PriorState.Values.RootModule.Resources {
1214+
if resource.Type == "coder_parameter" {
1215+
resource.AttributeValues["name"] = "identical"
1216+
}
1217+
}
1218+
12131219
state, err := terraform.ConvertState(ctx, []*tfjson.StateModule{tfPlan.PriorState.Values.RootModule}, string(tfPlanGraph), logger)
12141220
require.Nil(t, state)
12151221
require.Error(t, err)

0 commit comments

Comments
 (0)