You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/configs/testdata/valid-modules/with-tests/test_case_one.tftest.hcl

32 lines
487 B

variables {
input = "default"
}
# test_run_one runs a partial plan
run "test_run_one" {
command = plan
plan_options {
target = [
foo_resource.a
]
}
assert {
condition = foo_resource.a.value == "default"
error_message = "invalid value"
}
}
# test_run_two does a complete apply operation
run "test_run_two" {
variables {
input = "custom"
}
assert {
condition = foo_resource.a.value == "custom"
error_message = "invalid value"
}
}