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

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