55 "testing"
66
77 "github.com/google/go-cmp/cmp"
8- "github.com/hashicorp/terraform-plugin-framework-validators/internal/configvalidator"
98 "github.com/hashicorp/terraform-plugin-framework/datasource"
109 "github.com/hashicorp/terraform-plugin-framework/diag"
1110 "github.com/hashicorp/terraform-plugin-framework/path"
@@ -14,6 +13,8 @@ import (
1413 "github.com/hashicorp/terraform-plugin-framework/resource/schema"
1514 "github.com/hashicorp/terraform-plugin-framework/tfsdk"
1615 "github.com/hashicorp/terraform-plugin-go/tftypes"
16+
17+ "github.com/hashicorp/terraform-plugin-framework-validators/internal/configvalidator"
1718)
1819
1920func TestRequiredTogetherValidatorValidate (t * testing.T ) {
@@ -101,8 +102,8 @@ func TestRequiredTogetherValidatorValidate(t *testing.T) {
101102 },
102103 expected : diag.Diagnostics {
103104 diag .NewErrorDiagnostic (
104- "Invalid Path Expression for Schema Data " ,
105- "The Terraform Provider unexpectedly matched no paths with the given path expression and current schema data . " +
105+ "Invalid Path Expression for Schema" ,
106+ "The Terraform Provider unexpectedly provided a path expression that does not match the current schema. " +
106107 "This can happen if the path expression does not correctly follow the schema in structure or types. " +
107108 "Please report this to the provider developers.\n \n " +
108109 "Path Expression: not-test" ,
@@ -137,15 +138,15 @@ func TestRequiredTogetherValidatorValidate(t *testing.T) {
137138 },
138139 expected : diag.Diagnostics {
139140 diag .NewErrorDiagnostic (
140- "Invalid Path Expression for Schema Data " ,
141- "The Terraform Provider unexpectedly matched no paths with the given path expression and current schema data . " +
141+ "Invalid Path Expression for Schema" ,
142+ "The Terraform Provider unexpectedly provided a path expression that does not match the current schema. " +
142143 "This can happen if the path expression does not correctly follow the schema in structure or types. " +
143144 "Please report this to the provider developers.\n \n " +
144145 "Path Expression: not-test1" ,
145146 ),
146147 diag .NewErrorDiagnostic (
147- "Invalid Path Expression for Schema Data " ,
148- "The Terraform Provider unexpectedly matched no paths with the given path expression and current schema data . " +
148+ "Invalid Path Expression for Schema" ,
149+ "The Terraform Provider unexpectedly provided a path expression that does not match the current schema. " +
149150 "This can happen if the path expression does not correctly follow the schema in structure or types. " +
150151 "Please report this to the provider developers.\n \n " +
151152 "Path Expression: not-test2" ,
0 commit comments