mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 19:24:37 -05:00
43 lines
589 B
HCL
43 lines
589 B
HCL
run "first" {
|
|
variables {
|
|
input = "first"
|
|
}
|
|
|
|
assert {
|
|
condition = test_resource.foo.value == "first"
|
|
error_message = "invalid value"
|
|
}
|
|
}
|
|
|
|
run "second" {
|
|
command=plan
|
|
plan_options {
|
|
mode=refresh-only
|
|
}
|
|
|
|
variables {
|
|
input = "second"
|
|
}
|
|
|
|
assert {
|
|
condition = test_resource.foo.value == "first"
|
|
error_message = "invalid value"
|
|
}
|
|
}
|
|
|
|
run "third" {
|
|
command=plan
|
|
plan_options {
|
|
mode=normal
|
|
}
|
|
|
|
variables {
|
|
input = "second"
|
|
}
|
|
|
|
assert {
|
|
condition = test_resource.foo.value == "second"
|
|
error_message = "invalid value"
|
|
}
|
|
}
|