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
OpenTofu v1.8.2
on darwin_arm64
+ provider registry.opentofu.org/hashicorp/random v3.6.3
The problem in your OpenTofu project
While currently tofu (after #1204) supports resource overrides at top level and within run blocks, as mentioned there, it does not yet support mock provider level overrides.
Since this is supported in Terraform, it would be nice to have feature parity with Terraform
│ Error: Unsupported block type
│
│ on main.tftest.hcl line 2, in mock_provider "random":
│ 2: override_resource {
│
│ Blocks of type "override_resource" are not expected here.
╵
Proposal
No response
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for the issue, we decided to see what the community's interest in this feature is before scheduling it as test is a relatively new feature. I would be interested to know what modules/projects are using this feature, that would help us gauge the level of adoption.
That said, we will triage this in the core team next week and likely mark it as accepted, waiting on a community PR.
ollevche
added
accepted
This issue has been accepted for implementation.
and removed
pending-decision
This issue has not been accepted for implementation nor rejected. It's still open to discussion.
labels
Nov 11, 2024
OpenTofu Version
The problem in your OpenTofu project
While currently tofu (after #1204) supports resource overrides at top level and within run blocks, as mentioned there, it does not yet support mock provider level overrides.
Since this is supported in Terraform, it would be nice to have feature parity with Terraform
Attempted Solutions
This returns the error
Proposal
No response
References
No response
The text was updated successfully, but these errors were encountered: