mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-30 16:03:37 -04:00
* Add test structure to views package for rendering test output * Add test file HCL configuration and parser functionality * address comments
33 lines
591 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|