mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Automated equivalence test golden file update for release 1.5.0-alpha20230405.
This commit is contained in:
parent
1a36d07ead
commit
c10a07f3b2
@ -20,8 +20,8 @@ Terraform will perform the following actions:
|
||||
~ object-attribute = {
|
||||
+ key_four = "value_three"
|
||||
~ key_three = "value_three" -> "value_two"
|
||||
- key_two = "value_two" -> null
|
||||
# (1 unchanged element hidden)
|
||||
- key_two = "value_two"
|
||||
# (1 unchanged attribute hidden)
|
||||
}
|
||||
~ string-attribute = "string" -> "a new string"
|
||||
}
|
||||
|
@ -0,0 +1,19 @@
|
||||
# tfcoremock_simple_resource.json:
|
||||
resource "tfcoremock_simple_resource" "json" {
|
||||
id = "5a3fd9b3-e852-8956-8c0a-255d47eda645"
|
||||
string = jsonencode(
|
||||
{
|
||||
list-attribute = [
|
||||
"one",
|
||||
"four",
|
||||
"three",
|
||||
]
|
||||
object-attribute = {
|
||||
key_four = "value_three"
|
||||
key_one = "value_one"
|
||||
key_three = "value_two"
|
||||
}
|
||||
string-attribute = "a new string"
|
||||
}
|
||||
)
|
||||
}
|
9
testing/equivalence-tests/outputs/basic_list/state
Normal file
9
testing/equivalence-tests/outputs/basic_list/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_list.list:
|
||||
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",
|
||||
]
|
||||
}
|
5
testing/equivalence-tests/outputs/basic_list_empty/state
Normal file
5
testing/equivalence-tests/outputs/basic_list_empty/state
Normal file
@ -0,0 +1,5 @@
|
||||
# tfcoremock_list.list:
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
list = []
|
||||
}
|
4
testing/equivalence-tests/outputs/basic_list_null/state
Normal file
4
testing/equivalence-tests/outputs/basic_list_null/state
Normal file
@ -0,0 +1,4 @@
|
||||
# tfcoremock_list.list:
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "985820B3-ACF9-4F00-94AD-F81C5EA33663"
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
# tfcoremock_list.list:
|
||||
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",
|
||||
]
|
||||
}
|
9
testing/equivalence-tests/outputs/basic_map/state
Normal file
9
testing/equivalence-tests/outputs/basic_map/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_map.map:
|
||||
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"
|
||||
}
|
||||
}
|
5
testing/equivalence-tests/outputs/basic_map_empty/state
Normal file
5
testing/equivalence-tests/outputs/basic_map_empty/state
Normal file
@ -0,0 +1,5 @@
|
||||
# tfcoremock_map.map:
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
map = {}
|
||||
}
|
4
testing/equivalence-tests/outputs/basic_map_null/state
Normal file
4
testing/equivalence-tests/outputs/basic_map_null/state
Normal file
@ -0,0 +1,4 @@
|
||||
# tfcoremock_map.map:
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "50E1A46E-E64A-4C1F-881C-BA85A5440964"
|
||||
}
|
9
testing/equivalence-tests/outputs/basic_map_update/state
Normal file
9
testing/equivalence-tests/outputs/basic_map_update/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_map.map:
|
||||
resource "tfcoremock_map" "map" {
|
||||
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"
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
# tfcoremock_simple_resource.multiline:
|
||||
resource "tfcoremock_simple_resource" "multiline" {
|
||||
id = "69fe5233-e77a-804f-0dac-115c949540bc"
|
||||
string = <<-EOT
|
||||
one
|
||||
three
|
||||
two
|
||||
four
|
||||
six
|
||||
seven
|
||||
EOT
|
||||
}
|
9
testing/equivalence-tests/outputs/basic_set/state
Normal file
9
testing/equivalence-tests/outputs/basic_set/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_set.set:
|
||||
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",
|
||||
]
|
||||
}
|
5
testing/equivalence-tests/outputs/basic_set_empty/state
Normal file
5
testing/equivalence-tests/outputs/basic_set_empty/state
Normal file
@ -0,0 +1,5 @@
|
||||
# tfcoremock_set.set:
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = []
|
||||
}
|
4
testing/equivalence-tests/outputs/basic_set_null/state
Normal file
4
testing/equivalence-tests/outputs/basic_set_null/state
Normal file
@ -0,0 +1,4 @@
|
||||
# tfcoremock_set.set:
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
}
|
@ -10,8 +10,8 @@ Terraform will perform the following actions:
|
||||
~ resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
~ set = [
|
||||
+ "1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
- "C04762B9-D07B-40FE-A92B-B72AD342658D",
|
||||
+ "1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
# (2 unchanged elements hidden)
|
||||
]
|
||||
}
|
||||
|
9
testing/equivalence-tests/outputs/basic_set_update/state
Normal file
9
testing/equivalence-tests/outputs/basic_set_update/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_set.set:
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "046952C9-B832-4106-82C0-C217F7C73E18"
|
||||
set = [
|
||||
"1769B76E-12F0-4214-A864-E843EB23B64E",
|
||||
"41471135-E14C-4946-BFA4-2626C7E2A94A",
|
||||
"D8F7EA80-9E25-4DD7-8D97-797D2080952B",
|
||||
]
|
||||
}
|
@ -242,6 +242,31 @@
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_simple_resource"
|
||||
},
|
||||
{
|
||||
"address": "tfcoremock_simple_resource.create",
|
||||
"change": {
|
||||
"actions": [
|
||||
"create"
|
||||
],
|
||||
"after": {
|
||||
"bool": null,
|
||||
"float": null,
|
||||
"integer": null,
|
||||
"number": null,
|
||||
"string": null
|
||||
},
|
||||
"after_sensitive": {},
|
||||
"after_unknown": {
|
||||
"id": true
|
||||
},
|
||||
"before": null,
|
||||
"before_sensitive": false
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "create",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_simple_resource"
|
||||
},
|
||||
{
|
||||
"address": "module.create.local_file.data_file",
|
||||
"change": {
|
||||
@ -297,31 +322,6 @@
|
||||
"name": "random",
|
||||
"provider_name": "registry.terraform.io/hashicorp/random",
|
||||
"type": "random_integer"
|
||||
},
|
||||
{
|
||||
"address": "tfcoremock_simple_resource.create",
|
||||
"change": {
|
||||
"actions": [
|
||||
"create"
|
||||
],
|
||||
"after": {
|
||||
"bool": null,
|
||||
"float": null,
|
||||
"integer": null,
|
||||
"number": null,
|
||||
"string": null
|
||||
},
|
||||
"after_sensitive": {},
|
||||
"after_unknown": {
|
||||
"id": true
|
||||
},
|
||||
"before": null,
|
||||
"before_sensitive": false
|
||||
},
|
||||
"mode": "managed",
|
||||
"name": "create",
|
||||
"provider_name": "registry.terraform.io/hashicorp/tfcoremock",
|
||||
"type": "tfcoremock_simple_resource"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
# tfcoremock_simple_resource.base:
|
||||
resource "tfcoremock_simple_resource" "base" {
|
||||
id = "f6f74ca6-e8ef-e51f-522c-433b9ed5038f"
|
||||
number = 0
|
||||
string = "Hello, change!"
|
||||
}
|
||||
|
||||
# tfcoremock_simple_resource.dependent:
|
||||
resource "tfcoremock_simple_resource" "dependent" {
|
||||
id = "1b17b502-96c9-fcc3-3b09-2af1c3de6ad8"
|
||||
string = "Hello, change!"
|
||||
}
|
5
testing/equivalence-tests/outputs/drift_simple/state
Normal file
5
testing/equivalence-tests/outputs/drift_simple/state
Normal file
@ -0,0 +1,5 @@
|
||||
# tfcoremock_simple_resource.drift:
|
||||
resource "tfcoremock_simple_resource" "drift" {
|
||||
id = "f3c6ddc5-37d5-0170-64ff-518ad421385a"
|
||||
string = "Hello, world!"
|
||||
}
|
212
testing/equivalence-tests/outputs/fully_populated_complex/state
Normal file
212
testing/equivalence-tests/outputs/fully_populated_complex/state
Normal file
@ -0,0 +1,212 @@
|
||||
# tfcoremock_complex_resource.complex:
|
||||
resource "tfcoremock_complex_resource" "complex" {
|
||||
bool = true
|
||||
float = 987654321
|
||||
id = "64564E36-BFCB-458B-9405-EBBF6A3CAC7A"
|
||||
integer = 987654321
|
||||
list = [
|
||||
{
|
||||
string = "this is my first entry in the list, and doesn't contain anything interesting"
|
||||
},
|
||||
{
|
||||
string = <<-EOT
|
||||
this is my second entry in the list
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
EOT
|
||||
},
|
||||
{
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
{
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set"
|
||||
},
|
||||
]
|
||||
map = {
|
||||
"key_four" = {
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set"
|
||||
},
|
||||
"key_one" = {
|
||||
string = "this is my first entry in the map, and doesn't contain anything interesting"
|
||||
},
|
||||
"key_three" = {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
"key_two" = {
|
||||
string = <<-EOT
|
||||
this is my second entry in the map
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
EOT
|
||||
},
|
||||
}
|
||||
number = 123456789
|
||||
object = {
|
||||
bool = false
|
||||
number = 0
|
||||
object = {
|
||||
bool = true
|
||||
number = 1
|
||||
string = "i am a nested nested object"
|
||||
}
|
||||
string = "i am a nested object"
|
||||
}
|
||||
set = [
|
||||
{
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
{
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set"
|
||||
},
|
||||
{
|
||||
string = "this is my first entry in the set, and doesn't contain anything interesting"
|
||||
},
|
||||
{
|
||||
string = <<-EOT
|
||||
this is my second entry in the set
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
EOT
|
||||
},
|
||||
]
|
||||
string = "a not very long or complex string"
|
||||
|
||||
list_block {
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 0
|
||||
}
|
||||
)
|
||||
}
|
||||
list_block {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 1
|
||||
}
|
||||
)
|
||||
}
|
||||
list_block {
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 2
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
set_block {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 1
|
||||
}
|
||||
)
|
||||
}
|
||||
set_block {
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 2
|
||||
}
|
||||
)
|
||||
}
|
||||
set_block {
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 0
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
@ -85,7 +85,7 @@ Terraform will perform the following actions:
|
||||
and contain multiple lines
|
||||
EOT -> null
|
||||
},
|
||||
}
|
||||
} -> null
|
||||
- number = 123456789 -> null
|
||||
- object = {
|
||||
- bool = false -> null
|
||||
|
@ -72,7 +72,7 @@ Terraform will perform the following actions:
|
||||
},
|
||||
# (1 unchanged element hidden)
|
||||
]
|
||||
# (2 unchanged attributes hidden)
|
||||
# (1 unchanged attribute hidden)
|
||||
},
|
||||
# (2 unchanged elements hidden)
|
||||
}
|
||||
|
@ -0,0 +1,208 @@
|
||||
# tfcoremock_complex_resource.complex:
|
||||
resource "tfcoremock_complex_resource" "complex" {
|
||||
bool = true
|
||||
float = 123456789
|
||||
id = "64564E36-BFCB-458B-9405-EBBF6A3CAC7A"
|
||||
integer = 123456789
|
||||
list = [
|
||||
{
|
||||
string = "this is my first entry in the list, and doesn't contain anything interesting"
|
||||
},
|
||||
{
|
||||
string = <<-EOT
|
||||
this is my second entry in the list
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
but I've been edited
|
||||
EOT
|
||||
},
|
||||
{
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 3
|
||||
},
|
||||
{
|
||||
number = 4
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
{
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set and I edited my test"
|
||||
},
|
||||
]
|
||||
map = {
|
||||
"key_four" = {
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 3
|
||||
},
|
||||
{
|
||||
number = 4
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set"
|
||||
},
|
||||
"key_one" = {
|
||||
string = "this is my first entry in the map, and doesn't contain anything interesting"
|
||||
},
|
||||
"key_three" = {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 3
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
"key_two" = {
|
||||
string = <<-EOT
|
||||
this is my second entry in the map
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
EOT
|
||||
},
|
||||
}
|
||||
number = 987654321
|
||||
object = {
|
||||
number = 0
|
||||
object = {
|
||||
bool = true
|
||||
string = "i am a nested nested object"
|
||||
}
|
||||
string = "i am a nested object"
|
||||
}
|
||||
set = [
|
||||
{
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = "this is my third entry, and I actually have a nested list"
|
||||
},
|
||||
{
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = "this is my fourth entry, and I actually have a nested set"
|
||||
},
|
||||
{
|
||||
string = "this is my first entry in the set, and doesn't contain anything interesting"
|
||||
},
|
||||
{
|
||||
string = <<-EOT
|
||||
this is my second entry in the set
|
||||
I am a bit more interesting
|
||||
and contain multiple lines
|
||||
EOT
|
||||
},
|
||||
]
|
||||
string = "a not very long or complex string"
|
||||
|
||||
list_block {
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 0
|
||||
}
|
||||
)
|
||||
}
|
||||
list_block {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 1
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
set_block {
|
||||
list = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
{
|
||||
number = 2
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 1
|
||||
}
|
||||
)
|
||||
}
|
||||
set_block {
|
||||
set = [
|
||||
{
|
||||
number = 0
|
||||
},
|
||||
{
|
||||
number = 1
|
||||
},
|
||||
]
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 2
|
||||
}
|
||||
)
|
||||
}
|
||||
set_block {
|
||||
string = jsonencode(
|
||||
{
|
||||
index = 3
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
12
testing/equivalence-tests/outputs/local_provider_basic/state
Normal file
12
testing/equivalence-tests/outputs/local_provider_basic/state
Normal file
@ -0,0 +1,12 @@
|
||||
# local_file.local_file:
|
||||
resource "local_file" "local_file" {
|
||||
content = jsonencode(
|
||||
{
|
||||
hello = "world"
|
||||
}
|
||||
)
|
||||
directory_permission = "0777"
|
||||
file_permission = "0777"
|
||||
filename = "output.json"
|
||||
id = "2248ee2fa0aaaad99178531f924bf00b4b0a8f4e"
|
||||
}
|
@ -0,0 +1 @@
|
||||
The state file is empty. No resources are represented.
|
@ -11,7 +11,7 @@ Terraform will perform the following actions:
|
||||
~ content = jsonencode(
|
||||
~ {
|
||||
+ goodbye = "world"
|
||||
- hello = "world" -> null
|
||||
- hello = "world"
|
||||
} # forces replacement
|
||||
)
|
||||
~ id = "2248ee2fa0aaaad99178531f924bf00b4b0a8f4e" -> (known after apply)
|
||||
|
@ -0,0 +1,12 @@
|
||||
# local_file.local_file:
|
||||
resource "local_file" "local_file" {
|
||||
content = jsonencode(
|
||||
{
|
||||
goodbye = "world"
|
||||
}
|
||||
)
|
||||
directory_permission = "0777"
|
||||
file_permission = "0777"
|
||||
filename = "output.json"
|
||||
id = "648a5452054fca119f95b07f9ea992cc6d9681df"
|
||||
}
|
5
testing/equivalence-tests/outputs/moved_simple/state
Normal file
5
testing/equivalence-tests/outputs/moved_simple/state
Normal file
@ -0,0 +1,5 @@
|
||||
# tfcoremock_simple_resource.second:
|
||||
resource "tfcoremock_simple_resource" "second" {
|
||||
id = "70c47571-66c3-b1dc-2474-47a74b9c7886"
|
||||
string = "Hello, world!"
|
||||
}
|
11
testing/equivalence-tests/outputs/moved_with_drift/state
Normal file
11
testing/equivalence-tests/outputs/moved_with_drift/state
Normal file
@ -0,0 +1,11 @@
|
||||
# tfcoremock_simple_resource.base_after:
|
||||
resource "tfcoremock_simple_resource" "base_after" {
|
||||
id = "e450ef2f-b80f-0cce-8bdb-14d88f48649c"
|
||||
string = "Hello, change!"
|
||||
}
|
||||
|
||||
# tfcoremock_simple_resource.dependent:
|
||||
resource "tfcoremock_simple_resource" "dependent" {
|
||||
id = "2ecc718c-8d04-5774-5c36-7d69bf77d34e"
|
||||
string = "Hello, change!"
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# tfcoremock_simple_resource.moved:
|
||||
resource "tfcoremock_simple_resource" "moved" {
|
||||
id = "7da63aeb-f908-a112-9886-f29a0b0bd4ad"
|
||||
string = "Hello, change!"
|
||||
}
|
21
testing/equivalence-tests/outputs/multiple_block_types/state
Normal file
21
testing/equivalence-tests/outputs/multiple_block_types/state
Normal file
@ -0,0 +1,21 @@
|
||||
# tfcoremock_multiple_blocks.multiple_blocks:
|
||||
resource "tfcoremock_multiple_blocks" "multiple_blocks" {
|
||||
id = "DA051126-BAD6-4EB2-92E5-F0250DAF0B92"
|
||||
|
||||
first_block {
|
||||
id = "D35E88DA-BC3B-46D7-9E0B-4ED4582FA65A"
|
||||
}
|
||||
first_block {
|
||||
id = "E60148A2-04D1-4EF8-90A2-45CAFC02C60D"
|
||||
}
|
||||
first_block {
|
||||
id = "717C64FB-6A93-4763-A1EF-FE4C5B341488"
|
||||
}
|
||||
|
||||
second_block {
|
||||
id = "157660A9-D590-469E-BE28-83B8526428CA"
|
||||
}
|
||||
second_block {
|
||||
id = "D080F298-2BA4-4DFA-A367-2C5FB0EA7BFE"
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
# tfcoremock_multiple_blocks.multiple_blocks:
|
||||
resource "tfcoremock_multiple_blocks" "multiple_blocks" {
|
||||
id = "DA051126-BAD6-4EB2-92E5-F0250DAF0B92"
|
||||
|
||||
first_block {
|
||||
id = "B27FB8BE-52D4-4CEB-ACE9-5E7FB3968F2B"
|
||||
}
|
||||
first_block {
|
||||
id = "E60148A2-04D1-4EF8-90A2-45CAFC02C60D"
|
||||
}
|
||||
first_block {
|
||||
id = "717C64FB-6A93-4763-A1EF-FE4C5B341488"
|
||||
}
|
||||
|
||||
second_block {
|
||||
id = "91640A80-A65F-4BEF-925B-684E4517A04D"
|
||||
}
|
||||
second_block {
|
||||
id = "D080F298-2BA4-4DFA-A367-2C5FB0EA7BFE"
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/outputs/nested_list/state
Normal file
14
testing/equivalence-tests/outputs/nested_list/state
Normal file
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_list.nested_list:
|
||||
resource "tfcoremock_nested_list" "nested_list" {
|
||||
id = "DA051126-BAD6-4EB2-92E5-F0250DAF0B92"
|
||||
lists = [
|
||||
[],
|
||||
[
|
||||
"44E1C623-7B70-4D78-B4D3-D9CFE8A6D982",
|
||||
],
|
||||
[
|
||||
"13E3B154-7B85-4EAA-B3D0-E295E7D71D7F",
|
||||
"8B031CD1-01F7-422C-BBE6-FF8A0E18CDFD",
|
||||
],
|
||||
]
|
||||
}
|
15
testing/equivalence-tests/outputs/nested_list_update/state
Normal file
15
testing/equivalence-tests/outputs/nested_list_update/state
Normal file
@ -0,0 +1,15 @@
|
||||
# tfcoremock_nested_list.nested_list:
|
||||
resource "tfcoremock_nested_list" "nested_list" {
|
||||
id = "DA051126-BAD6-4EB2-92E5-F0250DAF0B92"
|
||||
lists = [
|
||||
[
|
||||
"44E1C623-7B70-4D78-B4D3-D9CFE8A6D982",
|
||||
],
|
||||
[
|
||||
"8B031CD1-01F7-422C-BBE6-FF8A0E18CDFD",
|
||||
],
|
||||
[
|
||||
"13E3B154-7B85-4EAA-B3D0-E295E7D71D7F",
|
||||
],
|
||||
]
|
||||
}
|
14
testing/equivalence-tests/outputs/nested_map/state
Normal file
14
testing/equivalence-tests/outputs/nested_map/state
Normal file
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_map.nested_map:
|
||||
resource "tfcoremock_nested_map" "nested_map" {
|
||||
id = "502B0348-B796-4F6A-8694-A5A397237B85"
|
||||
maps = {
|
||||
"first_nested_map" = {
|
||||
"first_key" = "9E858021-953F-4DD3-8842-F2C782780422"
|
||||
"second_key" = "D55D0E1E-51D9-4BCE-9021-7D201906D3C0"
|
||||
}
|
||||
"second_nested_map" = {
|
||||
"first_key" = "6E80C701-A823-43FE-A520-699851EF9052"
|
||||
"second_key" = "79CBEBB1-1192-480A-B4A8-E816A1A9D2FC"
|
||||
}
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/outputs/nested_map_update/state
Normal file
14
testing/equivalence-tests/outputs/nested_map_update/state
Normal file
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_map.nested_map:
|
||||
resource "tfcoremock_nested_map" "nested_map" {
|
||||
id = "502B0348-B796-4F6A-8694-A5A397237B85"
|
||||
maps = {
|
||||
"first_nested_map" = {
|
||||
"first_key" = "6E80C701-A823-43FE-A520-699851EF9052"
|
||||
"second_key" = "D55D0E1E-51D9-4BCE-9021-7D201906D3C0"
|
||||
"third_key" = "79CBEBB1-1192-480A-B4A8-E816A1A9D2FC"
|
||||
}
|
||||
"second_nested_map" = {
|
||||
"first_key" = "9E858021-953F-4DD3-8842-F2C782780422"
|
||||
}
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/outputs/nested_objects/state
Normal file
14
testing/equivalence-tests/outputs/nested_objects/state
Normal file
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_object.nested_object:
|
||||
resource "tfcoremock_nested_object" "nested_object" {
|
||||
id = "B2491EF0-9361-40FD-B25A-0332A1A5E052"
|
||||
parent_object = {
|
||||
first_nested_object = {
|
||||
attribute_one = "09AE7244-7BFB-476B-912C-D1AB4E7E9622"
|
||||
attribute_two = "5425587C-49EF-4C1E-A906-1DC923A12725"
|
||||
}
|
||||
second_nested_object = {
|
||||
attribute_one = "63712BFE-78F8-42D3-A074-A78249E5E25E"
|
||||
attribute_two = "FB350D92-4AAE-48C6-A408-BFFAFAD46B04"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_object.nested_object:
|
||||
resource "tfcoremock_nested_object" "nested_object" {
|
||||
id = "B2491EF0-9361-40FD-B25A-0332A1A5E052"
|
||||
parent_object = {
|
||||
first_nested_object = {
|
||||
attribute_one = "09AE7244-7BFB-476B-912C-D1AB4E7E9622"
|
||||
attribute_two = "FB350D92-4AAE-48C6-A408-BFFAFAD46B04"
|
||||
}
|
||||
second_nested_object = {
|
||||
attribute_one = "63712BFE-78F8-42D3-A074-A78249E5E25E"
|
||||
attribute_two = "5425587C-49EF-4C1E-A906-1DC923A12725"
|
||||
}
|
||||
}
|
||||
}
|
14
testing/equivalence-tests/outputs/nested_set/state
Normal file
14
testing/equivalence-tests/outputs/nested_set/state
Normal file
@ -0,0 +1,14 @@
|
||||
# tfcoremock_nested_set.nested_set:
|
||||
resource "tfcoremock_nested_set" "nested_set" {
|
||||
id = "510598F6-83FE-4090-8986-793293E90480"
|
||||
sets = [
|
||||
[
|
||||
"29B6824A-5CB6-4C25-A359-727BAFEF25EB",
|
||||
"7E90963C-BE32-4411-B9DD-B02E7FE75766",
|
||||
],
|
||||
[
|
||||
"9373D62D-1BF0-4F17-B100-7C0FBE368ADE",
|
||||
],
|
||||
[],
|
||||
]
|
||||
}
|
@ -14,13 +14,13 @@ Terraform will perform the following actions:
|
||||
- "29B6824A-5CB6-4C25-A359-727BAFEF25EB",
|
||||
- "7E90963C-BE32-4411-B9DD-B02E7FE75766",
|
||||
],
|
||||
- [],
|
||||
+ [
|
||||
+ "29B6824A-5CB6-4C25-A359-727BAFEF25EB",
|
||||
],
|
||||
+ [
|
||||
+ "7E90963C-BE32-4411-B9DD-B02E7FE75766",
|
||||
],
|
||||
- [],
|
||||
# (1 unchanged element hidden)
|
||||
]
|
||||
}
|
||||
|
15
testing/equivalence-tests/outputs/nested_set_update/state
Normal file
15
testing/equivalence-tests/outputs/nested_set_update/state
Normal file
@ -0,0 +1,15 @@
|
||||
# tfcoremock_nested_set.nested_set:
|
||||
resource "tfcoremock_nested_set" "nested_set" {
|
||||
id = "510598F6-83FE-4090-8986-793293E90480"
|
||||
sets = [
|
||||
[
|
||||
"29B6824A-5CB6-4C25-A359-727BAFEF25EB",
|
||||
],
|
||||
[
|
||||
"7E90963C-BE32-4411-B9DD-B02E7FE75766",
|
||||
],
|
||||
[
|
||||
"9373D62D-1BF0-4F17-B100-7C0FBE368ADE",
|
||||
],
|
||||
]
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
# null_resource.null_resource:
|
||||
resource "null_resource" "null_resource" {
|
||||
id = "8145960078408660399"
|
||||
}
|
@ -0,0 +1 @@
|
||||
The state file is empty. No resources are represented.
|
15
testing/equivalence-tests/outputs/replace_within_list/state
Normal file
15
testing/equivalence-tests/outputs/replace_within_list/state
Normal file
@ -0,0 +1,15 @@
|
||||
# tfcoremock_list.list:
|
||||
resource "tfcoremock_list" "list" {
|
||||
id = "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
|
||||
list = [
|
||||
{
|
||||
id = "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
|
||||
},
|
||||
{
|
||||
id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
},
|
||||
{
|
||||
id = "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
|
||||
},
|
||||
]
|
||||
}
|
15
testing/equivalence-tests/outputs/replace_within_map/state
Normal file
15
testing/equivalence-tests/outputs/replace_within_map/state
Normal file
@ -0,0 +1,15 @@
|
||||
# tfcoremock_map.map:
|
||||
resource "tfcoremock_map" "map" {
|
||||
id = "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
|
||||
map = {
|
||||
"key_one" = {
|
||||
id = "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
|
||||
},
|
||||
"key_three" = {
|
||||
id = "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
|
||||
},
|
||||
"key_two" = {
|
||||
id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
},
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
|
||||
object = {
|
||||
id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
}
|
||||
}
|
@ -10,12 +10,12 @@ Terraform will perform the following actions:
|
||||
-/+ resource "tfcoremock_set" "set" {
|
||||
id = "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
|
||||
~ set = [
|
||||
+ { # forces replacement
|
||||
+ id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
},
|
||||
- { # forces replacement
|
||||
- id = "56C7E07F-B9DF-4799-AF62-E703D1167A51" -> null
|
||||
},
|
||||
+ { # forces replacement
|
||||
+ id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
},
|
||||
# (2 unchanged elements hidden)
|
||||
]
|
||||
}
|
||||
|
15
testing/equivalence-tests/outputs/replace_within_set/state
Normal file
15
testing/equivalence-tests/outputs/replace_within_set/state
Normal file
@ -0,0 +1,15 @@
|
||||
# tfcoremock_set.set:
|
||||
resource "tfcoremock_set" "set" {
|
||||
id = "F40F2AB4-100C-4AE8-BFD0-BF332A158415"
|
||||
set = [
|
||||
{
|
||||
id = "07F887E2-FDFF-4B2E-9BFB-B6AA4A05EDB9"
|
||||
},
|
||||
{
|
||||
id = "3BFC1A84-023F-44FA-A8EE-EFD88E18B8F7"
|
||||
},
|
||||
{
|
||||
id = "4B7178A8-AB9D-4FF4-8B3D-48B754DE537B"
|
||||
},
|
||||
]
|
||||
}
|
9
testing/equivalence-tests/outputs/simple_object/state
Normal file
9
testing/equivalence-tests/outputs/simple_object/state
Normal file
@ -0,0 +1,9 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "AF9833AE-3434-4D0B-8B69-F4B992565D9F"
|
||||
object = {
|
||||
boolean = true
|
||||
number = 10
|
||||
string = "Hello, world!"
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "00e14fba-4d56-6cc5-b685-633555376e3f"
|
||||
object = {}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "00e14fba-4d56-6cc5-b685-633555376e3f"
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "63A9E8E8-71BC-4DAE-A66C-48CE393CCBD3"
|
||||
object = {
|
||||
boolean = true
|
||||
number = 10
|
||||
string = "Hello, world!"
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
# tfcoremock_object.object:
|
||||
resource "tfcoremock_object" "object" {
|
||||
id = "00e14fba-4d56-6cc5-b685-633555376e3f"
|
||||
object = {
|
||||
boolean = false
|
||||
number = 2
|
||||
string = "Hello, a totally different world!"
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
|
||||
|
||||
Outputs:
|
||||
|
||||
list_empty_default = []
|
||||
list_no_default = [
|
||||
{
|
||||
optional_attribute_with_default = "Hello, world!"
|
||||
required_attribute = "D92053D5-948A-4E5E-80BF-E53F0DB33EB5"
|
||||
},
|
||||
{
|
||||
optional_attribute = "8AC4B9EE-9E05-4AE0-AA35-6D7636AEA487"
|
||||
optional_attribute_with_default = "Hello, world!"
|
||||
required_attribute = "E6DA6176-49FB-46D6-9ECD-401B3F46A3E5"
|
||||
},
|
||||
{
|
||||
optional_attribute = "E68C1EB0-3D3D-4DB0-A41D-0F8C334E181C"
|
||||
optional_attribute_with_default = "92E855B2-A444-49DF-AFCA-2B5B017451B4"
|
||||
required_attribute = "9F9922C4-B426-4648-96AE-804A6F52F778"
|
||||
},
|
||||
]
|
||||
nested_optional_object = {}
|
||||
nested_optional_object_with_default = {
|
||||
nested_object = {
|
||||
flag = false
|
||||
}
|
||||
}
|
||||
nested_optional_object_with_embedded_default = {
|
||||
nested_object = {
|
||||
flag = false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user