mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-10 10:01:16 -04:00
* Add test structure to views package for rendering test output * Add test file HCL configuration and parser functionality * address comments
45 lines
916 B
JSON
45 lines
916 B
JSON
{
|
|
"run": {
|
|
"test_run_one": {
|
|
"variables": {
|
|
"input": "test_run_one"
|
|
},
|
|
"assert": [
|
|
{
|
|
"condition": "${foo_resource.a.value} == test_run_one",
|
|
"error_message": "invalid value"
|
|
}
|
|
]
|
|
},
|
|
"test_run_two": {
|
|
"plan_options": {
|
|
"mode": "refresh-only"
|
|
},
|
|
"variables": {
|
|
"input": "test_run_two"
|
|
},
|
|
"assert": [
|
|
{
|
|
"condition": "${foo_resource.a.value} == test_run_one",
|
|
"error_message": "invalid value"
|
|
}
|
|
]
|
|
},
|
|
"test_run_three": {
|
|
"variables": {
|
|
"input": "test_run_three"
|
|
},
|
|
"plan_options": {
|
|
"replace": [
|
|
"bar_resource.c"
|
|
]
|
|
},
|
|
"assert": [
|
|
{
|
|
"condition": "${foo_resource.a.value} == test_run_three",
|
|
"error_message": "invalid value"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |