opentofu/testing/equivalence-tests/outputs/replace_within_map/plan.json
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

181 lines
4.7 KiB
JSON

{
"configuration": {
"provider_config": {
"tfcoremock": {
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
"name": "tfcoremock",
"version_constraint": "0.1.1"
}
},
"root_module": {
"resources": [
{
"address": "tfcoremock_map.map",
"expressions": {
"id": {
"constant_value": "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
},
"map": {
"constant_value": {
"key_one": {
"id": "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
},
"key_three": {
"id": "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
},
"key_two": {
"id": "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
}
}
}
},
"mode": "managed",
"name": "map",
"provider_config_key": "tfcoremock",
"schema_version": 0,
"type": "tfcoremock_map"
}
]
}
},
"format_version": "1.1",
"planned_values": {
"root_module": {
"resources": [
{
"address": "tfcoremock_map.map",
"mode": "managed",
"name": "map",
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
"schema_version": 0,
"sensitive_values": {
"map": {
"key_one": {},
"key_three": {},
"key_two": {}
}
},
"type": "tfcoremock_map",
"values": {
"id": "F40F2AB4-100C-4AE8-BFD0-BF332A158415",
"map": {
"key_one": {
"id": "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
},
"key_three": {
"id": "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
},
"key_two": {
"id": "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
}
}
}
}
]
}
},
"prior_state": {
"format_version": "1.0",
"values": {
"root_module": {
"resources": [
{
"address": "tfcoremock_map.map",
"mode": "managed",
"name": "map",
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
"schema_version": 0,
"sensitive_values": {
"map": {
"key_one": {},
"key_three": {},
"key_two": {}
}
},
"type": "tfcoremock_map",
"values": {
"id": "F40F2AB4-100C-4AE8-BFD0-BF332A158415",
"map": {
"key_one": {
"id": "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
},
"key_three": {
"id": "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
},
"key_two": {
"id": "56C7E07F-B9DF-4799-AF62-E703D1167A51"
}
}
}
}
]
}
}
},
"resource_changes": [
{
"action_reason": "replace_because_cannot_update",
"address": "tfcoremock_map.map",
"change": {
"actions": [
"delete",
"create"
],
"after": {
"id": "F40F2AB4-100C-4AE8-BFD0-BF332A158415",
"map": {
"key_one": {
"id": "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
},
"key_three": {
"id": "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
},
"key_two": {
"id": "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
}
}
},
"after_sensitive": {
"map": {
"key_one": {},
"key_three": {},
"key_two": {}
}
},
"after_unknown": {},
"before": {
"id": "F40F2AB4-100C-4AE8-BFD0-BF332A158415",
"map": {
"key_one": {
"id": "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
},
"key_three": {
"id": "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
},
"key_two": {
"id": "56C7E07F-B9DF-4799-AF62-E703D1167A51"
}
}
},
"before_sensitive": {
"map": {
"key_one": {},
"key_three": {},
"key_two": {}
}
},
"replace_paths": [
[
"map",
"key_two",
"id"
]
]
},
"mode": "managed",
"name": "map",
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
"type": "tfcoremock_map"
}
]
}