github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/custom_condition_checks/main.tf (about)

     1  
     2  variable "input" {
     3    type = string
     4  }
     5  
     6  resource "test_resource" "resource" {
     7    value = var.input
     8  }
     9  
    10  check "expected_to_fail" {
    11    assert {
    12      condition = test_resource.resource.value != var.input
    13      error_message = "this really should fail"
    14    }
    15  }