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

     1  variables {
     2    managed_id = "B853C121"
     3  }
     4  
     5  run "setup" {
     6    module {
     7      source = "./setup"
     8    }
     9  
    10    variables {
    11      value = "Hello, world!"
    12      id = "B853C121"
    13    }
    14  }
    15  
    16  run "test" {
    17    assert {
    18      condition = test_resource.created.value == "Hello, world!"
    19      error_message = "bad value"
    20    }
    21  }