Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/fwserver: Unit testing and changelog for ConfigValidators di…
…agnostics overwrites (#622) Reference: #619 Against current `main`: ``` --- FAIL: TestServerValidateDataSourceConfig (0.00s) --- FAIL: TestServerValidateDataSourceConfig/request-config-DataSourceWithConfigValidators-diagnostics (0.00s) /Users/bflad/src/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validatedatasourceconfig_test.go:301: unexpected difference: &fwserver.ValidateDataSourceConfigResponse{ - Diagnostics: diag.Diagnostics{diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}}, + Diagnostics: diag.Diagnostics{ + diag.ErrorDiagnostic{detail: "error detail 1", summary: "error summary 1"}, + diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}, + }, } --- FAIL: TestServerValidateProviderConfig (0.00s) --- FAIL: TestServerValidateProviderConfig/request-config-ProviderWithConfigValidators-diagnostics (0.00s) /Users/bflad/src/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validateproviderconfig_test.go:307: unexpected difference: &fwserver.ValidateProviderConfigResponse{ PreparedConfig: &{Raw: s`tftypes.Object["test":tftypes.String]<"test":tftypes.String<"tes`..., Schema: schema.Schema{Attributes: {"test": schema.StringAttribute{Required: true}}}}, - Diagnostics: diag.Diagnostics{diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}}, + Diagnostics: diag.Diagnostics{ + diag.ErrorDiagnostic{detail: "error detail 1", summary: "error summary 1"}, + diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}, + }, } --- FAIL: TestServerValidateResourceConfig (0.00s) --- FAIL: TestServerValidateResourceConfig/request-config-ResourceWithConfigValidators-diagnostics (0.00s) /Users/bflad/src/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validateresourceconfig_test.go:301: unexpected difference: &fwserver.ValidateResourceConfigResponse{ - Diagnostics: diag.Diagnostics{diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}}, + Diagnostics: diag.Diagnostics{ + diag.ErrorDiagnostic{detail: "error detail 1", summary: "error summary 1"}, + diag.ErrorDiagnostic{detail: "error detail 2", summary: "error summary 2"}, + }, } ```
- Loading branch information