diff --git a/outscale/resource_outscale_flexible_gpu_link_test.go b/outscale/resource_outscale_flexible_gpu_link_test.go index 54e15238f..229aad7bc 100644 --- a/outscale/resource_outscale_flexible_gpu_link_test.go +++ b/outscale/resource_outscale_flexible_gpu_link_test.go @@ -10,19 +10,22 @@ import ( ) func TestAccVM_withFlexibleGpuLink_basic(t *testing.T) { - omi := os.Getenv("OUTSCALE_IMAGEID") - - resource.Test(t, resource.TestCase{ - PreCheck: func() { - testAccPreCheck(t) - }, - Providers: testAccProviders, - Steps: []resource.TestStep{ - { - Config: testAccOutscaleOAPIFlexibleGpuLinkConfig(omi, "tinav5.c2r2p2", utils.GetRegion()), + if os.Getenv("TEST_QUOTA") == "true" { + omi := os.Getenv("OUTSCALE_IMAGEID") + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccOutscaleOAPIFlexibleGpuLinkConfig(omi, "tinav5.c2r2p2", utils.GetRegion()), + }, }, - }, - }) + }) + } else { + t.Skip("will be done soon") + } } func testAccOutscaleOAPIFlexibleGpuLinkConfig(omi, vmType, region string) string { diff --git a/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.ref b/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.ref index 842e0b72f..30db591ca 100644 --- a/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.ref +++ b/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step1.vm_datasource_centos_ok.ref @@ -57,7 +57,7 @@ "reservation_id": "##id-3##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -139,7 +139,7 @@ "reservation_id": "##id-7##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -217,7 +217,7 @@ "reservation_id": "##id-10##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { diff --git a/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step2.vm_datasource_centos_ok.ref b/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step2.vm_datasource_centos_ok.ref index 72df98fa8..6d18fd870 100644 --- a/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step2.vm_datasource_centos_ok.ref +++ b/tests/qa_provider_oapi/data/vm/TF-143_vm_datasource_centos_attributes_ok/step2.vm_datasource_centos_ok.ref @@ -57,7 +57,7 @@ "reservation_id": "##id-3##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -139,7 +139,7 @@ "reservation_id": "##id-3##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -221,7 +221,7 @@ "reservation_id": "##id-3##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -303,7 +303,7 @@ "reservation_id": "##id-7##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { @@ -381,7 +381,7 @@ "reservation_id": "##id-10##", "root_device_name": "/dev/sda1", "root_device_type": "ebs", - "security_group_ids": null, + "security_group_ids": [], "security_group_names": null, "security_groups": [ { diff --git a/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step6.vm_resource_update_performance_ok.ref b/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step6.vm_resource_update_performance_ok.ref index 065f3ed54..a06091f41 100644 --- a/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step6.vm_resource_update_performance_ok.ref +++ b/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step6.vm_resource_update_performance_ok.ref @@ -184,7 +184,7 @@ "security_group_name": "terraform-sg-TF66-0" } ], - "state": "stopped", + "state": "running", "state_reason": "", "subnet_id": "", "tags": [], diff --git a/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step8.vm_resource_update_user_data_ok.ref b/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step8.vm_resource_update_user_data_ok.ref index 1e64c8caf..f9a8eb656 100644 --- a/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step8.vm_resource_update_user_data_ok.ref +++ b/tests/qa_provider_oapi/data/vm/TF-178_vm_resource_update_attributes_ok/step8.vm_resource_update_user_data_ok.ref @@ -184,7 +184,7 @@ "security_group_name": "terraform-sg-TF66-0" } ], - "state": "stopped", + "state": "running", "state_reason": "", "subnet_id": "##id-11##", "tags": [], diff --git a/tests/qa_provider_oapi/tests_to_fix.json b/tests/qa_provider_oapi/tests_to_fix.json index ce1e13807..0d624b78f 100644 --- a/tests/qa_provider_oapi/tests_to_fix.json +++ b/tests/qa_provider_oapi/tests_to_fix.json @@ -10,5 +10,7 @@ "waiting for io1 to fix volume test tf-154", "test_volume_TF-154_volume_resource_attributes_ok2", "test_access_keys_TF-196_access_keys_datasource_with_expiration_date", + "test_flexible_gpu_TF-177_flexible_gpu_datasource_attributes_ok", + "test_flexible_gpus_TF-175_flexible_gpus_datasource_attributes_ok", "test_image_TF-67_image_resource_attributes_ok" ]