mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-21 18:10:30 -04:00
* add test cases * run equivalence tests * delete old outputs * drift_relevant_attributes should ignore the number attribute * also add a test for data reads * test destroy only
39 lines
644 B
HCL
39 lines
644 B
HCL
terraform {
|
|
required_providers {
|
|
tfcoremock = {
|
|
source = "hashicorp/tfcoremock"
|
|
version = "0.1.1"
|
|
}
|
|
local = {
|
|
source = "hashicorp/local"
|
|
version = "2.2.3"
|
|
}
|
|
random = {
|
|
source = "hashicorp/random"
|
|
version = "3.4.3"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "tfcoremock" {}
|
|
|
|
provider "local" {}
|
|
|
|
provider "random" {}
|
|
|
|
module "create" {
|
|
source = "./create"
|
|
contents = "hello, world!"
|
|
}
|
|
|
|
data "tfcoremock_simple_resource" "read" {
|
|
id = module.create.id
|
|
|
|
depends_on = [
|
|
module.create
|
|
]
|
|
}
|
|
|
|
resource "tfcoremock_simple_resource" "create" {
|
|
string = data.tfcoremock_simple_resource.read.string
|
|
}
|