Files
opentf/internal/command/testdata/test/with_verify_module/main.tftest.hcl
Ronny Orot 1aa92856b1 Fix test command teardown order (#1043)
Signed-off-by: Ronny Orot <ronny.orot@gmail.com>
2023-12-20 16:38:42 +02:00

23 lines
361 B
HCL

variables {
id = "resource"
value = "Hello, world!"
}
run "test" {
}
run "verify" {
module {
source = "./verify"
}
assert {
condition = data.test_data_source.resource_data.value == "Hello, world!"
error_message = "bad value"
}
assert {
condition = test_resource.another_resource.id == "hi"
error_message = "bad value"
}
}