mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update equivalence tests to counter non-deterministic output (#32366)
This commit is contained in:
parent
5bcfd36c26
commit
8e1b660b79
78
testing/equivalence-tests/outputs/basic_list/apply.json
Normal file
78
testing/equivalence-tests/outputs/basic_list/apply.json
Normal file
@ -0,0 +1,78 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Plan to create",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Creating...",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Creation complete after 0s [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 1 added, 0 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 1,
|
||||
"change": 0,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
25
testing/equivalence-tests/outputs/basic_list/plan
Normal file
25
testing/equivalence-tests/outputs/basic_list/plan
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
+ create
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_list.list will be created
|
||||
+ resource "tfcoremock_list" "list" {
|
||||
+ id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
+ list = [
|
||||
+ "9C2BE420-042D-440A-96E9-75565341C994",
|
||||
+ "3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
+ "D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 1 to add, 0 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
97
testing/equivalence-tests/outputs/basic_list/plan.json
Normal file
97
testing/equivalence-tests/outputs/basic_list/plan.json
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
},
|
||||
"list": {
|
||||
"constant_value": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"change": {
|
||||
"actions": [
|
||||
"create"
|
||||
],
|
||||
"after": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"after_sensitive": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": null,
|
||||
"before_sensitive": false
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
32
testing/equivalence-tests/outputs/basic_list/state.json
Normal file
32
testing/equivalence-tests/outputs/basic_list/state.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifying... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifications complete after 0s [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_list_empty/plan
Normal file
26
testing/equivalence-tests/outputs/basic_list_empty/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_list.list: Refreshing state... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_list.list will be updated in-place
|
||||
~ resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
~ list = [
|
||||
- "9C2BE420-042D-440A-96E9-75565341C994",
|
||||
- "3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
- "D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
122
testing/equivalence-tests/outputs/basic_list_empty/plan.json
Normal file
122
testing/equivalence-tests/outputs/basic_list_empty/plan.json
Normal file
@ -0,0 +1,122 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
},
|
||||
"list": {
|
||||
"constant_value": []
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": []
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": []
|
||||
},
|
||||
"after_sensitive": {
|
||||
"list": []
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": []
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
80
testing/equivalence-tests/outputs/basic_list_null/apply.json
Normal file
80
testing/equivalence-tests/outputs/basic_list_null/apply.json
Normal file
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifying... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifications complete after 0s [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_list_null/plan
Normal file
26
testing/equivalence-tests/outputs/basic_list_null/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_list.list: Refreshing state... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_list.list will be updated in-place
|
||||
~ resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
- list = [
|
||||
- "9C2BE420-042D-440A-96E9-75565341C994",
|
||||
- "3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
- "D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
] -> null
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
115
testing/equivalence-tests/outputs/basic_list_null/plan.json
Normal file
115
testing/equivalence-tests/outputs/basic_list_null/plan.json
Normal file
@ -0,0 +1,115 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": null
|
||||
},
|
||||
"after_sensitive": {},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
22
testing/equivalence-tests/outputs/basic_list_null/state.json
Normal file
22
testing/equivalence-tests/outputs/basic_list_null/state.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifying... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_list.list: Modifications complete after 0s [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_list.list",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_list.list",
|
||||
"resource_key": null,
|
||||
"resource_name": "list",
|
||||
"resource_type": "tfcoremock_list"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
27
testing/equivalence-tests/outputs/basic_list_update/plan
Normal file
27
testing/equivalence-tests/outputs/basic_list_update/plan
Normal file
@ -0,0 +1,27 @@
|
||||
tfcoremock_list.list: Refreshing state... [id=985820B3-ACF9-4F00-94AD-F81C5EA33663]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_list.list will be updated in-place
|
||||
~ resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
~ list = [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
- "3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
+ "9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0",
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
142
testing/equivalence-tests/outputs/basic_list_update/plan.json
Normal file
142
testing/equivalence-tests/outputs/basic_list_update/plan.json
Normal file
@ -0,0 +1,142 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
},
|
||||
"list": {
|
||||
"constant_value": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0"
|
||||
]
|
||||
},
|
||||
"after_sensitive": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_list"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_list.list",
|
||||
"mode": "managed",
|
||||
"name": "list",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"list": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_list",
|
||||
"values": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
78
testing/equivalence-tests/outputs/basic_map/apply.json
Normal file
78
testing/equivalence-tests/outputs/basic_map/apply.json
Normal file
@ -0,0 +1,78 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Plan to create",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Creating...",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Creation complete after 0s [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 1 added, 0 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 1,
|
||||
"change": 0,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
25
testing/equivalence-tests/outputs/basic_map/plan
Normal file
25
testing/equivalence-tests/outputs/basic_map/plan
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
+ create
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_map.map will be created
|
||||
+ resource "tfcoremock_map" "map" {
|
||||
+ id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
+ map = {
|
||||
+ "one" = "682672C7-0918-4448-8342-887BAE01062A"
|
||||
+ "two" = "212FFBF6-40FE-4862-B708-E6AA508E84E0"
|
||||
+ "zero" = "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
|
||||
Plan: 1 to add, 0 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
89
testing/equivalence-tests/outputs/basic_map/plan.json
Normal file
89
testing/equivalence-tests/outputs/basic_map/plan.json
Normal file
@ -0,0 +1,89 @@
|
||||
{
|
||||
"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": "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
},
|
||||
"map": {
|
||||
"constant_value": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_map.map",
|
||||
"change": {
|
||||
"actions": [
|
||||
"create"
|
||||
],
|
||||
"after": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"after_sensitive": {
|
||||
"map": {}
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": null,
|
||||
"before_sensitive": false
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "map",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_map"
|
||||
}
|
||||
]
|
||||
}
|
28
testing/equivalence-tests/outputs/basic_map/state.json
Normal file
28
testing/equivalence-tests/outputs/basic_map/state.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
80
testing/equivalence-tests/outputs/basic_map_empty/apply.json
Normal file
80
testing/equivalence-tests/outputs/basic_map_empty/apply.json
Normal file
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifying... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifications complete after 0s [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_map_empty/plan
Normal file
26
testing/equivalence-tests/outputs/basic_map_empty/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_map.map: Refreshing state... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_map.map will be updated in-place
|
||||
~ resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
~ map = {
|
||||
- "one" = "682672C7-0918-4448-8342-887BAE01062A" -> null
|
||||
- "two" = "212FFBF6-40FE-4862-B708-E6AA508E84E0" -> null
|
||||
- "zero" = "6B044AF7-172B-495B-BE11-B9546C12C3BD" -> null
|
||||
}
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
114
testing/equivalence-tests/outputs/basic_map_empty/plan.json
Normal file
114
testing/equivalence-tests/outputs/basic_map_empty/plan.json
Normal file
@ -0,0 +1,114 @@
|
||||
{
|
||||
"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": "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
},
|
||||
"map": {
|
||||
"constant_value": {}
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_map.map",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {}
|
||||
},
|
||||
"after_sensitive": {
|
||||
"map": {}
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"before_sensitive": {
|
||||
"map": {}
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "map",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_map"
|
||||
}
|
||||
]
|
||||
}
|
24
testing/equivalence-tests/outputs/basic_map_empty/state.json
Normal file
24
testing/equivalence-tests/outputs/basic_map_empty/state.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
80
testing/equivalence-tests/outputs/basic_map_null/apply.json
Normal file
80
testing/equivalence-tests/outputs/basic_map_null/apply.json
Normal file
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifying... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifications complete after 0s [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_map_null/plan
Normal file
26
testing/equivalence-tests/outputs/basic_map_null/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_map.map: Refreshing state... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_map.map will be updated in-place
|
||||
~ resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
- map = {
|
||||
- "one" = "682672C7-0918-4448-8342-887BAE01062A"
|
||||
- "two" = "212FFBF6-40FE-4862-B708-E6AA508E84E0"
|
||||
- "zero" = "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
} -> null
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
107
testing/equivalence-tests/outputs/basic_map_null/plan.json
Normal file
107
testing/equivalence-tests/outputs/basic_map_null/plan.json
Normal file
@ -0,0 +1,107 @@
|
||||
{
|
||||
"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": "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
}
|
||||
},
|
||||
"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": {},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_map.map",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": null
|
||||
},
|
||||
"after_sensitive": {},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"before_sensitive": {
|
||||
"map": {}
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "map",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_map"
|
||||
}
|
||||
]
|
||||
}
|
22
testing/equivalence-tests/outputs/basic_map_null/state.json
Normal file
22
testing/equivalence-tests/outputs/basic_map_null/state.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"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": {},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifying... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_map.map: Modifications complete after 0s [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_map.map",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_map.map",
|
||||
"resource_key": null,
|
||||
"resource_name": "map",
|
||||
"resource_type": "tfcoremock_map"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_map_update/plan
Normal file
26
testing/equivalence-tests/outputs/basic_map_update/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_map.map: Refreshing state... [id=50E1A46E-E64A-4C1F-881C-BA85A5440964]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_map.map will be updated in-place
|
||||
~ resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
~ map = {
|
||||
+ "four" = "D820D482-7C2C-4EF3-8935-863168A193F9"
|
||||
- "one" = "682672C7-0918-4448-8342-887BAE01062A" -> null
|
||||
# (2 unchanged elements hidden)
|
||||
}
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
126
testing/equivalence-tests/outputs/basic_map_update/plan.json
Normal file
126
testing/equivalence-tests/outputs/basic_map_update/plan.json
Normal file
@ -0,0 +1,126 @@
|
||||
{
|
||||
"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": "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
},
|
||||
"map": {
|
||||
"constant_value": {
|
||||
"four": "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"four": "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_map.map",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"four": "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"after_sensitive": {
|
||||
"map": {}
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"before_sensitive": {
|
||||
"map": {}
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "map",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_map"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"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": {}
|
||||
},
|
||||
"type": "tfcoremock_map",
|
||||
"values": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"four": "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
78
testing/equivalence-tests/outputs/basic_set/apply.json
Normal file
78
testing/equivalence-tests/outputs/basic_set/apply.json
Normal file
@ -0,0 +1,78 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Plan to create",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Creating...",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Creation complete after 0s [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "create",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 1 added, 0 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 1,
|
||||
"change": 0,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
25
testing/equivalence-tests/outputs/basic_set/plan
Normal file
25
testing/equivalence-tests/outputs/basic_set/plan
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
+ create
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_set.set will be created
|
||||
+ resource "tfcoremock_set" "set" {
|
||||
+ id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
+ set = [
|
||||
+ "41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
+ "C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
+ "D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 1 to add, 0 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
97
testing/equivalence-tests/outputs/basic_set/plan.json
Normal file
97
testing/equivalence-tests/outputs/basic_set/plan.json
Normal file
@ -0,0 +1,97 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
},
|
||||
"set": {
|
||||
"constant_value": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"change": {
|
||||
"actions": [
|
||||
"create"
|
||||
],
|
||||
"after": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"after_sensitive": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": null,
|
||||
"before_sensitive": false
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
32
testing/equivalence-tests/outputs/basic_set/state.json
Normal file
32
testing/equivalence-tests/outputs/basic_set/state.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
80
testing/equivalence-tests/outputs/basic_set_empty/apply.json
Normal file
80
testing/equivalence-tests/outputs/basic_set_empty/apply.json
Normal file
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifying... [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifications complete after 0s [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_set_empty/plan
Normal file
26
testing/equivalence-tests/outputs/basic_set_empty/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_set.set: Refreshing state... [id=046952C9-B832-4106-82C0-C217F7C73E18]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_set.set will be updated in-place
|
||||
~ resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
~ set = [
|
||||
- "41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
- "C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
- "D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
122
testing/equivalence-tests/outputs/basic_set_empty/plan.json
Normal file
122
testing/equivalence-tests/outputs/basic_set_empty/plan.json
Normal file
@ -0,0 +1,122 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
},
|
||||
"set": {
|
||||
"constant_value": []
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": []
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": []
|
||||
},
|
||||
"after_sensitive": {
|
||||
"set": []
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
24
testing/equivalence-tests/outputs/basic_set_empty/state.json
Normal file
24
testing/equivalence-tests/outputs/basic_set_empty/state.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": []
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
80
testing/equivalence-tests/outputs/basic_set_null/apply.json
Normal file
80
testing/equivalence-tests/outputs/basic_set_null/apply.json
Normal file
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifying... [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifications complete after 0s [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_set_null/plan
Normal file
26
testing/equivalence-tests/outputs/basic_set_null/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_set.set: Refreshing state... [id=046952C9-B832-4106-82C0-C217F7C73E18]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_set.set will be updated in-place
|
||||
~ resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
- set = [
|
||||
- "41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
- "C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
- "D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
] -> null
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
115
testing/equivalence-tests/outputs/basic_set_null/plan.json
Normal file
115
testing/equivalence-tests/outputs/basic_set_null/plan.json
Normal file
@ -0,0 +1,115 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": null
|
||||
},
|
||||
"after_sensitive": {},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
22
testing/equivalence-tests/outputs/basic_set_null/state.json
Normal file
22
testing/equivalence-tests/outputs/basic_set_null/state.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
[
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Plan to update",
|
||||
"@module": "terraform.ui",
|
||||
"change": {
|
||||
"action": "update",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "planned_change"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifying... [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_start"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "tfcoremock_set.set: Modifications complete after 0s [id=046952C9-B832-4106-82C0-C217F7C73E18]",
|
||||
"@module": "terraform.ui",
|
||||
"hook": {
|
||||
"action": "update",
|
||||
"elapsed_seconds": 0,
|
||||
"id_key": "id",
|
||||
"id_value": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"resource": {
|
||||
"addr": "tfcoremock_set.set",
|
||||
"implied_provider": "tfcoremock",
|
||||
"module": "",
|
||||
"resource": "tfcoremock_set.set",
|
||||
"resource_key": null,
|
||||
"resource_name": "set",
|
||||
"resource_type": "tfcoremock_set"
|
||||
}
|
||||
},
|
||||
"type": "apply_complete"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Apply complete! Resources: 0 added, 1 changed, 0 destroyed.",
|
||||
"@module": "terraform.ui",
|
||||
"changes": {
|
||||
"add": 0,
|
||||
"change": 1,
|
||||
"operation": "apply",
|
||||
"remove": 0
|
||||
},
|
||||
"type": "change_summary"
|
||||
},
|
||||
{
|
||||
"@level": "info",
|
||||
"@message": "Outputs: 0",
|
||||
"@module": "terraform.ui",
|
||||
"outputs": {},
|
||||
"type": "outputs"
|
||||
}
|
||||
]
|
26
testing/equivalence-tests/outputs/basic_set_update/plan
Normal file
26
testing/equivalence-tests/outputs/basic_set_update/plan
Normal file
@ -0,0 +1,26 @@
|
||||
tfcoremock_set.set: Refreshing state... [id=046952C9-B832-4106-82C0-C217F7C73E18]
|
||||
|
||||
Terraform used the selected providers to generate the following execution
|
||||
plan. Resource actions are indicated with the following symbols:
|
||||
~ update in-place
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
# tfcoremock_set.set will be updated in-place
|
||||
~ resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
~ set = [
|
||||
+ "1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
- "C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
# (2 unchanged elements hidden)
|
||||
]
|
||||
}
|
||||
|
||||
Plan: 0 to add, 1 to change, 0 to destroy.
|
||||
|
||||
─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Saved the plan to: equivalence_test_plan
|
||||
|
||||
To perform exactly these actions, run the following command to apply:
|
||||
terraform apply "equivalence_test_plan"
|
142
testing/equivalence-tests/outputs/basic_set_update/plan.json
Normal file
142
testing/equivalence-tests/outputs/basic_set_update/plan.json
Normal file
@ -0,0 +1,142 @@
|
||||
{
|
||||
"configuration": {
|
||||
"provider_config": {
|
||||
"tfcoremock": {
|
||||
"full_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"name": "tfcoremock",
|
||||
"version_constraint": "0.1.1"
|
||||
}
|
||||
},
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"expressions": {
|
||||
"id": {
|
||||
"constant_value": "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
},
|
||||
"set": {
|
||||
"constant_value": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_config_key": "tfcoremock",
|
||||
"schema_version": 0,
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"format_version": "1.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"resource_changes": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"change": {
|
||||
"actions": [
|
||||
"update"
|
||||
],
|
||||
"after": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"after_sensitive": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"after_unknown": {},
|
||||
"before": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"before_sensitive": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
}
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_set"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
{
|
||||
"address": "tfcoremock_set.set",
|
||||
"mode": "managed",
|
||||
"name": "set",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"schema_version": 0,
|
||||
"sensitive_values": {
|
||||
"set": [
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": "tfcoremock_set",
|
||||
"values": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
]
|
||||
}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
]
|
||||
}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {
|
||||
"zero" : "6B044AF7-172B-495B-BE11-B9546C12C3BD",
|
||||
"one" : "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two" : "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.5",
|
||||
"serial": 8,
|
||||
"lineage": "d3c0d734-0689-e932-cdb8-e678d38bf385",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_set",
|
||||
"name": "set",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.5",
|
||||
"serial": 8,
|
||||
"lineage": "d3c0d734-0689-e932-cdb8-e678d38bf385",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_set",
|
||||
"name": "set",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0",
|
||||
]
|
||||
}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
]
|
||||
}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {
|
||||
"zero" : "6B044AF7-172B-495B-BE11-B9546C12C3BD",
|
||||
"two" : "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"four" : "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
}
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.5",
|
||||
"serial": 8,
|
||||
"lineage": "d3c0d734-0689-e932-cdb8-e678d38bf385",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_set",
|
||||
"name": "set",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "046952C9-B832-4106-82C0-C217F7C73E18",
|
||||
"set": [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -11,12 +11,10 @@ provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
]
|
||||
}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -13,13 +13,3 @@ resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = []
|
||||
}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = []
|
||||
}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "10d37a1e-be83-d81f-dc89-30b6ec90e835",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/tests/basic_list_null/main.tf
Normal file
14
testing/equivalence-tests/tests/basic_list_null/main.tf
Normal file
@ -0,0 +1,14 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "10d37a1e-be83-d81f-dc89-30b6ec90e835",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_list": {
|
||||
"attributes": {
|
||||
"list": {
|
||||
"type": "list",
|
||||
"optional": true,
|
||||
"list": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
testing/equivalence-tests/tests/basic_list_update/main.tf
Normal file
19
testing/equivalence-tests/tests/basic_list_update/main.tf
Normal file
@ -0,0 +1,19 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6",
|
||||
"9B9F3ADF-8AD4-4E8C-AFE4-7BC2413E9AC0",
|
||||
]
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "10d37a1e-be83-d81f-dc89-30b6ec90e835",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_list",
|
||||
"name": "list",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "985820B3-ACF9-4F00-94AD-F81C5EA33663",
|
||||
"list": [
|
||||
"9C2BE420-042D-440A-96E9-75565341C994",
|
||||
"3EC6EB1F-E372-46C3-A069-00D6E82EC1E1",
|
||||
"D01290F6-2D3A-45FA-B006-DAA80F6D31F6"
|
||||
]
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
testing/equivalence-tests/tests/basic_map/main.tf
Normal file
19
testing/equivalence-tests/tests/basic_map/main.tf
Normal file
@ -0,0 +1,19 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {
|
||||
"zero" : "6B044AF7-172B-495B-BE11-B9546C12C3BD",
|
||||
"one" : "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two" : "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
}
|
||||
}
|
4
testing/equivalence-tests/tests/basic_map/spec.json
Normal file
4
testing/equivalence-tests/tests/basic_map/spec.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"include_files": [],
|
||||
"ignore_fields": {}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
testing/equivalence-tests/tests/basic_map_empty/main.tf
Normal file
15
testing/equivalence-tests/tests/basic_map_empty/main.tf
Normal file
@ -0,0 +1,15 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"include_files": [],
|
||||
"ignore_fields": {}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "6d4501ec-0c29-0728-bfb9-296c7dc09b9f",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/tests/basic_map_null/main.tf
Normal file
14
testing/equivalence-tests/tests/basic_map_null/main.tf
Normal file
@ -0,0 +1,14 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
}
|
4
testing/equivalence-tests/tests/basic_map_null/spec.json
Normal file
4
testing/equivalence-tests/tests/basic_map_null/spec.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"include_files": [],
|
||||
"ignore_fields": {}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "6d4501ec-0c29-0728-bfb9-296c7dc09b9f",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_map": {
|
||||
"attributes": {
|
||||
"map": {
|
||||
"type": "map",
|
||||
"optional": true,
|
||||
"map": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
testing/equivalence-tests/tests/basic_map_update/main.tf
Normal file
19
testing/equivalence-tests/tests/basic_map_update/main.tf
Normal file
@ -0,0 +1,19 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {
|
||||
"zero" : "6B044AF7-172B-495B-BE11-B9546C12C3BD",
|
||||
"two" : "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"four" : "D820D482-7C2C-4EF3-8935-863168A193F9",
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"include_files": [],
|
||||
"ignore_fields": {}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"values": {
|
||||
"id": {
|
||||
"string": "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
},
|
||||
"map": {
|
||||
"map": {
|
||||
"one": {
|
||||
"string": "682672C7-0918-4448-8342-887BAE01062A"
|
||||
},
|
||||
"two": {
|
||||
"string": "212FFBF6-40FE-4862-B708-E6AA508E84E0"
|
||||
},
|
||||
"zero": {
|
||||
"string": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.6",
|
||||
"serial": 1,
|
||||
"lineage": "6d4501ec-0c29-0728-bfb9-296c7dc09b9f",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "tfcoremock_map",
|
||||
"name": "map",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/tfcoremock\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "50E1A46E-E64A-4C1F-881C-BA85A5440964",
|
||||
"map": {
|
||||
"one": "682672C7-0918-4448-8342-887BAE01062A",
|
||||
"two": "212FFBF6-40FE-4862-B708-E6AA508E84E0",
|
||||
"zero": "6B044AF7-172B-495B-BE11-B9546C12C3BD"
|
||||
}
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
19
testing/equivalence-tests/tests/basic_set/main.tf
Normal file
19
testing/equivalence-tests/tests/basic_set/main.tf
Normal file
@ -0,0 +1,19 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = [
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
]
|
||||
}
|
4
testing/equivalence-tests/tests/basic_set/spec.json
Normal file
4
testing/equivalence-tests/tests/basic_set/spec.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"include_files": [],
|
||||
"ignore_fields": {}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"tfcoremock_set": {
|
||||
"attributes": {
|
||||
"set": {
|
||||
"type": "set",
|
||||
"optional": true,
|
||||
"set": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
testing/equivalence-tests/tests/basic_set_empty/main.tf
Normal file
15
testing/equivalence-tests/tests/basic_set_empty/main.tf
Normal file
@ -0,0 +1,15 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
tfcoremock = {
|
||||
source = "hashicorp/tfcoremock"
|
||||
version = "0.1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "tfcoremock" {}
|
||||
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = []
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user