github.com/opentofu/opentofu@v1.7.1/internal/configs/testdata/valid-modules/with-tests-json/tests/test_case_one.tftest.json (about)

     1  {
     2    "variables": {
     3      "input": "default"
     4    },
     5    "run": {
     6      "test_run_one": {
     7        "command": "plan",
     8        "plan_options": {
     9          "target": [
    10            "foo_resource.a"
    11          ]
    12        },
    13        "assert": [
    14          {
    15            "condition": "${foo_resource.a.value} == default",
    16            "error_message": "invalid value"
    17          }
    18        ]
    19      },
    20      "test_run_two": {
    21        "variables": {
    22          "input": "custom"
    23        },
    24        "assert": [
    25          {
    26            "condition": "${foo_resource.a.value} == custom",
    27            "error_message": "invalid value"
    28          }
    29        ]
    30      }
    31    }
    32  }