diff --git a/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.ref b/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.ref index 68ed71036..6b4a78742 100644 --- a/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.ref +++ b/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.ref @@ -39,10 +39,18 @@ { "creation_date": "########", "iops": 100, - "linked_volumes": [], + "linked_volumes": [ + { + "delete_on_vm_deletion": false, + "device_name": "/dev/xvdc", + "state": "attached", + "vm_id": "##id-2##", + "volume_id": "##id-3##" + } + ], "size": 40, "snapshot_id": "", - "state": "available", + "state": "in-use", "subregion_name": "###region###a", "tags": [ { @@ -50,7 +58,7 @@ "value": "io1" } ], - "volume_id": "##id-2##", + "volume_id": "##id-3##", "volume_type": "io1" }, { @@ -67,7 +75,7 @@ "value": "volume-standard-2" } ], - "volume_id": "##id-3##", + "volume_id": "##id-4##", "volume_type": "standard" } ] @@ -85,7 +93,7 @@ { "schema_version": 0, "attributes": { - "id": "##id-4##", + "id": "##id-5##", "keypair_fingerprint": "########", "keypair_name": "KP-TF159", "private_key": "########", @@ -116,7 +124,7 @@ "delete_on_vm_deletion": "true", "link_date": "########", "state": "attached", - "volume_id": "##id-5##" + "volume_id": "##id-6##" }, "device_name": "/dev/sda1" } @@ -127,7 +135,7 @@ "deletion_protection": false, "get_admin_password": null, "hypervisor": "xen", - "id": "##id-6##", + "id": "##id-2##", "image_id": "##id-7##", "is_source_dest_checked": true, "keypair_name": "KP-TF159", @@ -165,7 +173,7 @@ "tags": [], "timeouts": null, "user_data": "", - "vm_id": "##id-6##", + "vm_id": "##id-2##", "vm_initiated_shutdown_behavior": "stop", "vm_type": "###vm_type###" }, @@ -219,7 +227,7 @@ "schema_version": 0, "attributes": { "creation_date": "########", - "id": "##id-3##", + "id": "##id-4##", "iops": 150, "linked_volumes": [], "request_id": "########", @@ -233,7 +241,7 @@ "value": "volume-standard-2" } ], - "volume_id": "##id-3##", + "volume_id": "##id-4##", "volume_type": "standard" }, "sensitive_attributes": [], @@ -251,7 +259,7 @@ "schema_version": 0, "attributes": { "creation_date": "########", - "id": "##id-2##", + "id": "##id-3##", "iops": 100, "linked_volumes": [], "request_id": "########", @@ -265,7 +273,7 @@ "value": "io1" } ], - "volume_id": "##id-2##", + "volume_id": "##id-3##", "volume_type": "io1" }, "sensitive_attributes": [], @@ -285,12 +293,12 @@ "delete_on_vm_termination": false, "device_name": "/dev/xvdc", "force_unlink": null, - "id": "##id-2##", + "id": "##id-3##", "request_id": "########", "state": "attached", "timeouts": null, - "vm_id": "##id-6##", - "volume_id": "##id-2##" + "vm_id": "##id-2##", + "volume_id": "##id-3##" }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", diff --git a/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.tf b/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.tf index fb6696bc0..9163d4ac5 100644 --- a/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.tf +++ b/tests/qa_provider_oapi/data/volumes/TF-159_volumes_datasource_attributes_ok4/step1.volumes_datasource_attributes_ok4.tf @@ -50,4 +50,5 @@ data "outscale_volumes" "outscale_volumes" { name = "volume_ids" values = [outscale_volume.outscale_volume.volume_id, outscale_volume.outscale_volume2.volume_id, outscale_volume.outscale_volume3.volume_id] } +depends_on = [outscale_volumes_link.outscale_volumes_link] }