Files
opentf/internal/command/testdata/test/mock_provider_validation/main.tftest.hcl
Christian Mesh 3c76c5f419 Use the correct data when mocking a resource refresh (#3068)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
Co-authored-by: Diogenes Fernandes <diofeher@gmail.com>
2025-07-25 22:00:43 -03:00

18 lines
320 B
HCL

mock_provider "test" {
mock_resource "test_resource" {
defaults = {
computed_value = "bar"
object_attr = {
string_attr = "bar"
}
}
}
}
run "test" {
assert {
condition = test_resource.primary.computed_value == "bar"
error_message = "Unexpected computed value"
}
}