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

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy