From c32564e4b5726ed2e0d83c90bec23a4c657ca5ab Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Wed, 12 Jun 2024 13:17:13 +0000 Subject: [PATCH] Fix integration tests --- .../step1.nic_datasource_attributes_ok.ref | 16 +- .../step1.nic_resource_attributes_ok.ref | 4 +- .../step2.nic_resource_attributes_update.ref | 4 +- .../step1.nic_link_resource_attributes_ok.ref | 2 +- ....nic_private_ip_resource_attributes_ok.ref | 2 +- .../step1.nics_datasource_attributes_ok.ref | 232 +++++++++--------- ...resource_private_with_multiple_NICs_ok.ref | 2 +- 7 files changed, 131 insertions(+), 131 deletions(-) diff --git a/tests/qa_provider_oapi/data/nets/TF-109_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.ref b/tests/qa_provider_oapi/data/nets/TF-109_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.ref index 88901a35e..be883ba3b 100644 --- a/tests/qa_provider_oapi/data/nets/TF-109_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-109_nic_datasource_attributes_ok/step1.nic_datasource_attributes_ok.ref @@ -18,7 +18,7 @@ "description": "TF-109", "filter": "########", "id": "##id-1##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -80,7 +80,7 @@ "description": "TF-109", "filter": "########", "id": "##id-1##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -198,7 +198,7 @@ "description": "", "filter": "########", "id": "##id-9##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -256,7 +256,7 @@ "description": "TF-109", "filter": "########", "id": "##id-1##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -318,7 +318,7 @@ "description": "", "filter": "########", "id": "##id-10##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -396,7 +396,7 @@ "account_id": "##id-0##", "description": "TF-109", "id": "##id-1##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -466,7 +466,7 @@ "account_id": "##id-0##", "description": "", "id": "##id-9##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -532,7 +532,7 @@ "account_id": "##id-0##", "description": "", "id": "##id-10##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", diff --git a/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.ref b/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.ref index fd56051f1..1b6470e33 100644 --- a/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step1.nic_resource_attributes_ok.ref @@ -40,7 +40,7 @@ "account_id": "##id-2##", "description": "", "id": "##id-3##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -94,7 +94,7 @@ "account_id": "##id-2##", "description": "", "id": "##id-6##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", diff --git a/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step2.nic_resource_attributes_update.ref b/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step2.nic_resource_attributes_update.ref index 7fea872f8..236b83d11 100644 --- a/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step2.nic_resource_attributes_update.ref +++ b/tests/qa_provider_oapi/data/nets/TF-110_nic_resource_attributes_ok/step2.nic_resource_attributes_update.ref @@ -40,7 +40,7 @@ "account_id": "##id-2##", "description": "", "id": "##id-3##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -95,7 +95,7 @@ "account_id": "##id-2##", "description": "", "id": "##id-6##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", diff --git a/tests/qa_provider_oapi/data/nets/TF-111_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.ref b/tests/qa_provider_oapi/data/nets/TF-111_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.ref index 54ba5f5e9..9ae73ae1b 100644 --- a/tests/qa_provider_oapi/data/nets/TF-111_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-111_nic_link_resource_attributes_ok/step1.nic_link_resource_attributes_ok.ref @@ -62,7 +62,7 @@ "account_id": "##id-3##", "description": "", "id": "##id-4##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", diff --git a/tests/qa_provider_oapi/data/nets/TF-112_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.ref b/tests/qa_provider_oapi/data/nets/TF-112_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.ref index 5342953c5..eb07b6c64 100644 --- a/tests/qa_provider_oapi/data/nets/TF-112_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-112_nic_private_ip_resource_attributes_ok/step1.nic_private_ip_resource_attributes_ok.ref @@ -40,7 +40,7 @@ "account_id": "##id-2##", "description": "", "id": "##id-3##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", diff --git a/tests/qa_provider_oapi/data/nets/TF-113_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.ref b/tests/qa_provider_oapi/data/nets/TF-113_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.ref index 61ac7b1c1..136143a9d 100644 --- a/tests/qa_provider_oapi/data/nets/TF-113_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-113_nics_datasource_attributes_ok/step1.nics_datasource_attributes_ok.ref @@ -146,44 +146,6 @@ "filter": "########", "id": "##id-11##", "nics": [ - { - "account_id": "##id-1##", - "description": "", - "is_source_dest_checked": false, - "link_nic": [], - "link_public_ip": [], - "mac_address": "########", - "net_id": "##id-4##", - "nic_id": "##id-12##", - "private_dns_name": "########", - "private_ips": [ - { - "is_primary": true, - "link_public_ip": [], - "private_dns_name": "########", - "private_ip": "########" - } - ], - "security_groups": [ - { - "security_group_id": "##id-6##", - "security_group_name": "Terraform-SG" - } - ], - "state": "available", - "subnet_id": "##id-13##", - "subregion_name": "us-east-2b", - "tags": [ - { - "key": "Key:", - "value": ":value-tags" - }, - { - "key": "Key-2", - "value": "value-tags-2" - } - ] - }, { "account_id": "##id-1##", "description": "", @@ -192,7 +154,7 @@ { "delete_on_vm_deletion": false, "device_number": 2, - "link_nic_id": "##id-14##", + "link_nic_id": "##id-12##", "state": "attached", "vm_account_id": "##id-1##", "vm_id": "##id-3##" @@ -201,7 +163,7 @@ "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-15##", + "nic_id": "##id-13##", "private_dns_name": "########", "private_ips": [ { @@ -232,35 +194,16 @@ "value": "Nic-2" } ] - } - ], - "request_id": "########" - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "data", - "type": "outscale_nics", - "name": "nic-5", - "provider": "provider[\"registry.terraform.io/outscale/outscale\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "filter": "########", - "id": "##id-16##", - "nics": [ + }, { "account_id": "##id-1##", "description": "", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-12##", + "nic_id": "##id-14##", "private_dns_name": "########", "private_ips": [ { @@ -277,7 +220,7 @@ } ], "state": "available", - "subnet_id": "##id-13##", + "subnet_id": "##id-15##", "subregion_name": "us-east-2b", "tags": [ { @@ -289,7 +232,26 @@ "value": "value-tags-2" } ] - }, + } + ], + "request_id": "########" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "outscale_nics", + "name": "nic-5", + "provider": "provider[\"registry.terraform.io/outscale/outscale\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "filter": "########", + "id": "##id-16##", + "nics": [ { "account_id": "##id-1##", "description": "", @@ -298,7 +260,7 @@ { "delete_on_vm_deletion": false, "device_number": 2, - "link_nic_id": "##id-14##", + "link_nic_id": "##id-12##", "state": "attached", "vm_account_id": "##id-1##", "vm_id": "##id-3##" @@ -307,7 +269,7 @@ "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-15##", + "nic_id": "##id-13##", "private_dns_name": "########", "private_ips": [ { @@ -339,6 +301,44 @@ } ] }, + { + "account_id": "##id-1##", + "description": "", + "is_source_dest_checked": true, + "link_nic": [], + "link_public_ip": [], + "mac_address": "########", + "net_id": "##id-4##", + "nic_id": "##id-14##", + "private_dns_name": "########", + "private_ips": [ + { + "is_primary": true, + "link_public_ip": [], + "private_dns_name": "########", + "private_ip": "########" + } + ], + "security_groups": [ + { + "security_group_id": "##id-6##", + "security_group_name": "Terraform-SG" + } + ], + "state": "available", + "subnet_id": "##id-15##", + "subregion_name": "us-east-2b", + "tags": [ + { + "key": "Key:", + "value": ":value-tags" + }, + { + "key": "Key-2", + "value": "value-tags-2" + } + ] + }, { "account_id": "##id-1##", "description": "TF-109", @@ -452,12 +452,21 @@ { "account_id": "##id-1##", "description": "", - "is_source_dest_checked": false, - "link_nic": [], + "is_source_dest_checked": true, + "link_nic": [ + { + "delete_on_vm_deletion": false, + "device_number": 2, + "link_nic_id": "##id-12##", + "state": "attached", + "vm_account_id": "##id-1##", + "vm_id": "##id-3##" + } + ], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-12##", + "nic_id": "##id-13##", "private_dns_name": "########", "private_ips": [ { @@ -465,6 +474,12 @@ "link_public_ip": [], "private_dns_name": "########", "private_ip": "########" + }, + { + "is_primary": false, + "link_public_ip": [], + "private_dns_name": "########", + "private_ip": "########" } ], "security_groups": [ @@ -473,17 +488,13 @@ "security_group_name": "Terraform-SG" } ], - "state": "available", - "subnet_id": "##id-13##", - "subregion_name": "us-east-2b", + "state": "in-use", + "subnet_id": "##id-7##", + "subregion_name": "us-east-2a", "tags": [ { - "key": "Key:", - "value": ":value-tags" - }, - { - "key": "Key-2", - "value": "value-tags-2" + "key": "Name", + "value": "Nic-2" } ] }, @@ -491,20 +502,11 @@ "account_id": "##id-1##", "description": "", "is_source_dest_checked": true, - "link_nic": [ - { - "delete_on_vm_deletion": false, - "device_number": 2, - "link_nic_id": "##id-14##", - "state": "attached", - "vm_account_id": "##id-1##", - "vm_id": "##id-3##" - } - ], + "link_nic": [], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-15##", + "nic_id": "##id-14##", "private_dns_name": "########", "private_ips": [ { @@ -512,12 +514,6 @@ "link_public_ip": [], "private_dns_name": "########", "private_ip": "########" - }, - { - "is_primary": false, - "link_public_ip": [], - "private_dns_name": "########", - "private_ip": "########" } ], "security_groups": [ @@ -526,13 +522,17 @@ "security_group_name": "Terraform-SG" } ], - "state": "in-use", - "subnet_id": "##id-7##", - "subregion_name": "us-east-2a", + "state": "available", + "subnet_id": "##id-15##", + "subregion_name": "us-east-2b", "tags": [ { - "key": "Name", - "value": "Nic-2" + "key": "Key:", + "value": ":value-tags" + }, + { + "key": "Key-2", + "value": "value-tags-2" } ] }, @@ -649,12 +649,12 @@ { "account_id": "##id-1##", "description": "", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-12##", + "nic_id": "##id-14##", "private_dns_name": "########", "private_ips": [ { @@ -671,7 +671,7 @@ } ], "state": "available", - "subnet_id": "##id-13##", + "subnet_id": "##id-15##", "subregion_name": "us-east-2b", "tags": [ { @@ -726,7 +726,7 @@ "account_id": "##id-1##", "description": "TF-109", "id": "##id-5##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", @@ -795,13 +795,13 @@ "attributes": { "account_id": "##id-1##", "description": "", - "id": "##id-15##", - "is_source_dest_checked": false, + "id": "##id-13##", + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-15##", + "nic_id": "##id-13##", "private_dns_name": "########", "private_ip": "########", "private_ips": [ @@ -861,13 +861,13 @@ "attributes": { "account_id": "##id-1##", "description": "", - "id": "##id-12##", - "is_source_dest_checked": false, + "id": "##id-14##", + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########", "net_id": "##id-4##", - "nic_id": "##id-12##", + "nic_id": "##id-14##", "private_dns_name": "########", "private_ip": "########", "private_ips": [ @@ -890,7 +890,7 @@ } ], "state": "available", - "subnet_id": "##id-13##", + "subnet_id": "##id-15##", "subregion_name": "us-east-2b", "tags": [ { @@ -956,9 +956,9 @@ "attributes": { "delete_on_vm_deletion": false, "device_number": 2, - "id": "##id-14##", - "link_nic_id": "##id-14##", - "nic_id": "##id-15##", + "id": "##id-12##", + "link_nic_id": "##id-12##", + "nic_id": "##id-13##", "request_id": "########", "state": null, "vm_account_id": null, @@ -1053,13 +1053,13 @@ "schema_version": 0, "attributes": { "available_ips_count": "########", - "id": "##id-13##", + "id": "##id-15##", "ip_range": "10.5.2.0/24", "map_public_ip_on_launch": false, "net_id": "##id-4##", "request_id": "########", "state": "available", - "subnet_id": "##id-13##", + "subnet_id": "##id-15##", "subregion_name": "us-east-2b", "tags": [], "timeouts": null diff --git a/tests/qa_provider_oapi/data/nets/TF-145_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.ref b/tests/qa_provider_oapi/data/nets/TF-145_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.ref index 27470e650..833fc0b73 100644 --- a/tests/qa_provider_oapi/data/nets/TF-145_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.ref +++ b/tests/qa_provider_oapi/data/nets/TF-145_vm_resource_private_with_multiple_NICs_attributes_ok/step1.vm_resource_private_with_multiple_NICs_ok.ref @@ -62,7 +62,7 @@ "account_id": "##id-3##", "description": "", "id": "##id-4##", - "is_source_dest_checked": false, + "is_source_dest_checked": true, "link_nic": [], "link_public_ip": [], "mac_address": "########",