diff --git a/internal/providers/pluginfw/tfschema/customizable_schema.go b/internal/providers/pluginfw/tfschema/customizable_schema.go index 08a0e4e93..136482673 100644 --- a/internal/providers/pluginfw/tfschema/customizable_schema.go +++ b/internal/providers/pluginfw/tfschema/customizable_schema.go @@ -205,7 +205,7 @@ func (s *CustomizableSchema) SetReadOnly(path ...string) *CustomizableSchema { // points to an attribute, not a block. func (s *CustomizableSchema) ConvertToAttribute(path ...string) *CustomizableSchema { if len(path) == 0 { - panic(fmt.Errorf("ToAttribute called on root schema. %s", common.TerraformBugErrorMessage)) + panic(fmt.Errorf("ConvertToAttribute called on root schema. %s", common.TerraformBugErrorMessage)) } field := path[len(path)-1] diff --git a/internal/providers/pluginfw/tfschema/customizable_schema_test.go b/internal/providers/pluginfw/tfschema/customizable_schema_test.go index fbf63f8b7..512e3d93a 100644 --- a/internal/providers/pluginfw/tfschema/customizable_schema_test.go +++ b/internal/providers/pluginfw/tfschema/customizable_schema_test.go @@ -227,7 +227,7 @@ func (m mockValidator) ValidateObject(context.Context, validator.ObjectRequest, var _ validator.List = mockValidator{} var _ validator.Object = mockValidator{} -func TestCustomizeSchema_ToAttribute(t *testing.T) { +func TestCustomizeSchema_ConvertToAttribute(t *testing.T) { v := mockValidator{} pm := mockPlanModifier{} testCases := []struct {