github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/with_verify_module/main.tftest.hcl (about)

     1  variables {
     2    id = "resource"
     3    value = "Hello, world!"
     4  }
     5  
     6  run "test" {
     7  }
     8  
     9  run "verify" {
    10    module {
    11      source = "./verify"
    12    }
    13  
    14    assert {
    15      condition = data.test_data_source.resource_data.value == "Hello, world!"
    16      error_message = "bad value"
    17    }
    18  
    19    assert {
    20      condition = test_resource.another_resource.id == "hi"
    21      error_message = "bad value"
    22    }
    23  }