mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 08:58:34 -04:00
* Add a helper for mocking a provider with a state store * Update tests to use the new helper * Update other test fixtures for consistency The related tests pass before and after this change * Update testing helper to return the underlying type, not the interface
20 lines
272 B
HCL
20 lines
272 B
HCL
terraform {
|
|
required_providers {
|
|
test = {
|
|
source = "hashicorp/test"
|
|
}
|
|
}
|
|
state_store "test_store" {
|
|
provider "test" {}
|
|
|
|
value = "foobar"
|
|
}
|
|
}
|
|
|
|
resource "aws_instance" "web" {
|
|
ami = "ami-1234"
|
|
security_groups = [
|
|
"foo",
|
|
"bar",
|
|
]
|
|
}
|