mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
40 lines
622 B
HCL
40 lines
622 B
HCL
|
|
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"
|
|
}
|
|
} |