Revert "fix show -json tests"

This reverts commit e54949f2e1.

Changes incorrectly applied to the planned state tests
This commit is contained in:
James Bardin 2020-09-21 14:39:25 -04:00
parent f222ed7479
commit 3b3ff98356
5 changed files with 33 additions and 15 deletions

View File

@ -53,7 +53,18 @@
] ]
} }
}, },
"prior_state": {}, "prior_state": {
"format_version": "0.1",
"values": {
"outputs": {
"test": {
"sensitive": false,
"value": "bar"
}
},
"root_module": {}
}
},
"resource_changes": [ "resource_changes": [
{ {
"address": "test_instance.test[0]", "address": "test_instance.test[0]",

View File

@ -3,12 +3,7 @@
"terraform_version": "0.12.0", "terraform_version": "0.12.0",
"serial": 7, "serial": 7,
"lineage": "configuredUnchanged", "lineage": "configuredUnchanged",
"outputs": { "outputs": {},
"test": {
"value": "bar",
"type": "string"
}
},
"resources": [ "resources": [
{ {
"mode": "managed", "mode": "managed",

View File

@ -3,12 +3,7 @@
"terraform_version": "0.12.0", "terraform_version": "0.12.0",
"serial": 7, "serial": 7,
"lineage": "configuredUnchanged", "lineage": "configuredUnchanged",
"outputs": { "outputs": {},
"test": {
"value": "bar",
"type": "string"
}
},
"resources": [ "resources": [
{ {
"mode": "managed", "mode": "managed",

View File

@ -69,7 +69,18 @@
] ]
} }
}, },
"prior_state": {}, "prior_state": {
"format_version": "0.1",
"values": {
"outputs": {
"test": {
"sensitive": false,
"value": "baz"
}
},
"root_module": {}
}
},
"resource_changes": [ "resource_changes": [
{ {
"address": "module.module_test_bar.test_instance.test", "address": "module.module_test_bar.test_instance.test",

View File

@ -101,14 +101,20 @@
"format_version": "0.1", "format_version": "0.1",
"terraform_version": "0.13.0", "terraform_version": "0.13.0",
"values": { "values": {
"outputs": {
"test": {
"sensitive": false,
"value": "bar"
}
},
"root_module": { "root_module": {
"resources": [ "resources": [
{ {
"address": "test_instance.test[0]", "address": "test_instance.test[0]",
"index": 0,
"mode": "managed", "mode": "managed",
"type": "test_instance", "type": "test_instance",
"name": "test", "name": "test",
"index": 0,
"provider_name": "registry.terraform.io/hashicorp/test", "provider_name": "registry.terraform.io/hashicorp/test",
"schema_version": 0, "schema_version": 0,
"values": { "values": {