github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/missing-provider-in-run-block/main.tftest.hcl (about)

     1  
     2  provider "test" {}
     3  
     4  provider "test" {
     5    alias = "secondary"
     6  }
     7  
     8  run "passes_validation" {
     9  
    10    providers = {
    11      test = test
    12    }
    13  
    14    assert {
    15      condition = test_resource.primary.value == "foo"
    16      error_message = "primary contains invalid value"
    17    }
    18  
    19    assert {
    20      condition = test_resource.secondary.value == "bar"
    21      error_message = "secondary contains invalid value"
    22    }
    23  }