Tf test 1.8.3 - Cannot resolve properly provider definition "Provider type mismatch" #35160
Labels
bug
confirmed
a Terraform Core team member has reproduced this issue
explained
a Terraform Core team member has described the root cause of this issue in code
terraform test
Terraform Version
module_to_test/tests/unit.tftest.hcl
azdevops/main.tf
Debug Output
Not relevant for this use case as we have a clear error message shown
Expected Behavior
The terraform init should work for the above context summed up like this:
A side module
azdevops
is requiring themicrosoft/azuredevops
provider to run and output some data. These data are then used as input to the tested module but this tested module has no knowledge about this azuredevops provider (and we don't want to have coupling with it)Actual Behavior
The following errors are raised when doing terraform init & terraform providers:
Steps to Reproduce
terraform init
Additional Context
N/A
References
Already opened as discussion in the forum:
https://discuss.hashicorp.com/t/tf-1-8-3-test-im-not-able-to-select-the-right-provider-for-sub-module/67016
The text was updated successfully, but these errors were encountered: