You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/testdata/test/missing-provider-in-test-mo.../main.tftest.hcl

40 lines
622 B

provider "test" {}
provider "test" {
alias = "secondary"
}
run "passes_validation_primary" {
providers = {
test = test
}
assert {
condition = test_resource.primary.value == "foo"
error_message = "primary contains invalid value"
}
}
run "passes_validation_secondary" {
providers = {
test = test
}
module {
source = "./setup"
}
assert {
condition = test_resource.primary.value == "foo"
error_message = "primary contains invalid value"
}
assert {
condition = test_resource.secondary.value == "bar"
error_message = "secondary contains invalid value"
}
}