Skip to content

Commit f9c7665

Browse files
shrsrlhercot
authored andcommitted
[ignore] Removed unused auxillary function from provider_test
1 parent a3b3f5f commit f9c7665

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

internal/provider/provider_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -205,22 +205,3 @@ func CheckOutputBool(name string, value bool) resource.TestCheckFunc {
205205
return nil
206206
}
207207
}
208-
209-
func findAndValidateChildForRestManaged(state *terraform.InstanceState, childCount int, expectedRn, expectedClassName string, expectedContent map[string]string) error {
210-
for i := 0; i < childCount; i++ {
211-
rn := state.Attributes[fmt.Sprintf("child.%d.rn", i)]
212-
className := state.Attributes[fmt.Sprintf("child.%d.class_name", i)]
213-
214-
if rn == expectedRn && className == expectedClassName {
215-
// Found the child, validate content
216-
for key, expectedValue := range expectedContent {
217-
actualValue := state.Attributes[fmt.Sprintf("child.%d.content.%s", i, key)]
218-
if actualValue != expectedValue {
219-
return fmt.Errorf("child %s: expected content.%s '%s', got '%s'", expectedRn, key, expectedValue, actualValue)
220-
}
221-
}
222-
return nil // Child found and validated
223-
}
224-
}
225-
return fmt.Errorf("child '%s' with class '%s' not found in imported state", expectedRn, expectedClassName)
226-
}

0 commit comments

Comments
 (0)