Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2e1e17

Browse files
committed
fix test
1 parent9ae5514 commite2e1e17

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:=rangetfPlan.PriorState.Values.RootModule.Resources {
1214+
ifresource.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)

[8]ページ先頭

©2009-2025 Movatter.jp