mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
Signed-off-by: Christian Mesh <christianmesh1@gmail.com> Signed-off-by: Diogenes Fernandes <diofeher@gmail.com> Co-authored-by: Diogenes Fernandes <diofeher@gmail.com>
18 lines
320 B
HCL
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"
|
|
}
|
|
}
|