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/mock-sources-inline/main.tftest.hcl

31 lines
500 B

mock_provider "test" {
source = "./testing/base"
mock_resource "test_resource" {
defaults = {
id = "local-mock-id" // should override the file-based mock
}
}
}
mock_provider "test" {
source = "./testing/base"
alias = "secondary"
}
run "test_foo" {
assert {
condition = output.foo == "local-mock-id"
error_message = "invalid value"
}
}
run "test_bar" {
assert {
condition = output.bar == "file-mock-id"
error_message = "invalid value"
}
}