opentofu/command/test-fixtures/show-json/basic-create/main.tf
Kristin Laemmert 5df9cd0f52
command/show: tests for -json output (#19980)
* command/show: added test scaffold for json output

More test cases will be added once the basic shape of the tests is
validated.

- command/json* packages now sort resources by address, matching
behavior elsewhere
- using cmp in tests instead of reflect.DeepEqual for the diffs
- updating expected output in tests to match sorting
2019-01-11 15:13:55 -08:00

10 lines
146 B
HCL

variable "test_var" {
default = "bar"
}
resource "test_instance" "test" {
ami = var.test_var
}
output "test" {
value = var.test_var
}