You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcTestAccProvider_Update_Server_Env(t*testing.T) {
t.Setenv("DNS_UPDATE_SERVER", "example.com")
resource.Test(t, resource.TestCase{
ProtoV5ProviderFactories: testProtoV5ProviderFactories,
Steps: []resource.TestStep{
{
Config: ` data "dns_a_record_set" "test" { # Same host as data source testing host = "terraform-provider-dns-a.hashicorptest.com" } `,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("data.dns_a_record_set.test", "addrs.#", "1"),
),
},
},
})
}
Expected Behavior
Similar to running this outside terraform-plugin-testing, the acceptance test to fail with the terraform-plugin-mux mismatched schema error in the GetProviderSchema response.
Actual Behavior
Acceptance testing passes because the terraform-plugin-mux diagnostics are missing a severity. The acceptance testing is dependent on terraform-exec's error return from Terraform commands to be populated, but since the diagnostic is not an error diagnostic, it does not fill in the error return.
Enabling trace logging shows the issue:
2023-04-21T12:59:08.670-0400 [TRACE] sdk.proto: Received downstream response: tf_provider_addr=registry.terraform.io/hashicorp/dns tf_proto_version=5.3 tf_req_id=e00c4292-8082-32c4-e1b2-526b6f989c7b tf_rpc=GetProviderSchema diagnostic_warning_count=0 tf_req_duration_ms=0 diagnostic_error_count=0
2023-04-21T12:59:08.670-0400 [WARN] sdk.proto: Response contains unknown diagnostic: tf_proto_version=5.3 diagnostic_severity=INVALID diagnostic_summary="Invalid Provider Server Combination"
diagnostic_detail=
| The combined provider has differing provider schema implementations across providers. Provider schemas must be identical across providers. This is always an issue in the provider implementation and should be reported to the provider developers...
Steps to Reproduce
Add new test to terraform-provider-dns
TF_LOG=TRACE TF_ACC=1 go test -count=1 -run='TestAccProvider_Update_Server_Env' -v ./internal/provider
=== RUN TestAccProvider_Update_Server_Env
--- PASS: TestAccProvider_Update_Server_Env (0.79s)
PASS
ok github.com/hashicorp/terraform-provider-dns/internal/provider 1.085s
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
terraform-plugin-mux version
Relevant provider source code
In github.com/hashicorp/terraform-provider-dns:
Expected Behavior
Similar to running this outside terraform-plugin-testing, the acceptance test to fail with the terraform-plugin-mux mismatched schema error in the
GetProviderSchema
response.Actual Behavior
Acceptance testing passes because the terraform-plugin-mux diagnostics are missing a severity. The acceptance testing is dependent on terraform-exec's
error
return from Terraform commands to be populated, but since the diagnostic is not an error diagnostic, it does not fill in theerror
return.Enabling trace logging shows the issue:
Steps to Reproduce
TF_LOG=TRACE TF_ACC=1 go test -count=1 -run='TestAccProvider_Update_Server_Env' -v ./internal/provider
References
The text was updated successfully, but these errors were encountered: