github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/missing-provider-in-test-module/main.tftest.hcl (about) 1 2 provider "test" {} 3 4 provider "test" { 5 alias = "secondary" 6 } 7 8 run "passes_validation_primary" { 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 } 20 21 run "passes_validation_secondary" { 22 23 providers = { 24 test = test 25 } 26 27 module { 28 source = "./setup" 29 } 30 31 assert { 32 condition = test_resource.primary.value == "foo" 33 error_message = "primary contains invalid value" 34 } 35 36 assert { 37 condition = test_resource.secondary.value == "bar" 38 error_message = "secondary contains invalid value" 39 } 40 }