Skip to content

Commit

Permalink
Update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Feb 9, 2024
1 parent 26b6a03 commit 12596a3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
27 changes: 15 additions & 12 deletions outscale/resource_outscale_flexible_gpu_link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"security_group_name": "terraform-sg-TF66-0"
}
],
"state": "stopped",
"state": "running",
"state_reason": "",
"subnet_id": "",
"tags": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"security_group_name": "terraform-sg-TF66-0"
}
],
"state": "stopped",
"state": "running",
"state_reason": "",
"subnet_id": "##id-11##",
"tags": [],
Expand Down
2 changes: 2 additions & 0 deletions tests/qa_provider_oapi/tests_to_fix.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]

0 comments on commit 12596a3

Please sign in to comment.