opentofu/testing/equivalence-tests/tests/moved_with_drift/main.tf
Liam Cervante 82b5cfad7e
Add more equivalence tests that are testing edge cases around the new structured renderer (#32538)
* 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
2023-01-20 09:31:11 +01:00

24 lines
454 B
HCL

terraform {
required_providers {
tfcoremock = {
source = "hashicorp/tfcoremock"
version = "0.1.1"
}
}
}
provider "tfcoremock" {}
resource "tfcoremock_simple_resource" "base_after" {
string = "Hello, change!"
}
resource "tfcoremock_simple_resource" "dependent" {
string = tfcoremock_simple_resource.base_after.string
}
moved {
from = tfcoremock_simple_resource.base_before
to = tfcoremock_simple_resource.base_after
}