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": [
{
"address": "test_instance.test[0]",

View File

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

View File

@ -3,12 +3,7 @@
"terraform_version": "0.12.0",
"serial": 7,
"lineage": "configuredUnchanged",
"outputs": {
"test": {
"value": "bar",
"type": "string"
}
},
"outputs": {},
"resources": [
{
"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": [
{
"address": "module.module_test_bar.test_instance.test",

View File

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