Files
opentf/internal/configs/testdata/valid-modules/with-tests-json/tests/test_case_one.tftest.json
Liam Cervante cad9aa9025 [Testing Framework] Add test file HCL configuration and parser functionality (#33325)
* Add test structure to views package for rendering test output

* Add test file HCL configuration and parser functionality

* address comments
2023-06-22 17:03:37 +02:00

33 lines
591 B
JSON

{
"variables": {
"input": "default"
},
"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": {
"variables": {
"input": "custom"
},
"assert": [
{
"condition": "${foo_resource.a.value} == custom",
"error_message": "invalid value"
}
]
}
}
}