Skip to content

Commit

Permalink
Fix acceptance and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Jun 5, 2024
1 parent 2a9bb8f commit b5fee90
Show file tree
Hide file tree
Showing 54 changed files with 440 additions and 432 deletions.
10 changes: 5 additions & 5 deletions outscale/data_source_outscale_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func TestAccOthers_SnapshotDataSource_basic(t *testing.T) {
{
Config: testAccCheckOutscaleOAPISnapshotDataSourceConfig(utils.GetRegion()),
Check: resource.ComposeTestCheckFunc(
testAccCheckOutscaleOAPISnapshotDataSourceID("data.outscale_snapshot.snapshot"),
resource.TestCheckResourceAttr("data.outscale_snapshot.snapshot", "volume_size", "1"),
testAccCheckOutscaleOAPISnapshotDataSourceID("data.outscale_snapshot.snpshot"),
resource.TestCheckResourceAttr("data.outscale_snapshot.snpshot", "volume_size", "1"),
),
},
},
Expand Down Expand Up @@ -66,12 +66,12 @@ func testAccCheckOutscaleOAPISnapshotDataSourceConfig(region string) string {
size = 1
}
resource "outscale_snapshot" "snapshot" {
resource "outscale_snapshot" "snapshot-basic" {
volume_id = outscale_volume.example.id
}
data "outscale_snapshot" "snapshot" {
snapshot_id = outscale_snapshot.snapshot.id
data "outscale_snapshot" "snpshot" {
snapshot_id = outscale_snapshot.snapshot-basic.id
}
`, region)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,25 @@
"attributes": {
"filter": "########",
"flexible_gpu_catalog": [
{
"generations": [
"v5",
"v6"
],
"max_cpu": 35,
"max_ram": 250,
"model_name": "nvidia-a10",
"v_ram": 24000
},
{
"generations": [
"v7"
],
"max_cpu": 35,
"max_ram": 250,
"model_name": "nvidia-l40",
"v_ram": 48000
},
{
"generations": [
"v3",
Expand All @@ -30,9 +49,9 @@
"generations": [
"v5"
],
"max_cpu": 35,
"max_ram": 250,
"model_name": "nvidia-v100",
"max_cpu": 80,
"max_ram": 512,
"model_name": "nvidia-p6",
"v_ram": 16000
},
{
Expand All @@ -46,13 +65,13 @@
},
{
"generations": [
"v5",
"v6"
"v3",
"v4"
],
"max_cpu": 35,
"max_ram": 250,
"model_name": "nvidia-a10",
"v_ram": 24000
"max_cpu": 80,
"max_ram": 512,
"model_name": "nvidia-k2",
"v_ram": 4096
},
{
"generations": [
Expand All @@ -67,9 +86,9 @@
"generations": [
"v5"
],
"max_cpu": 80,
"max_ram": 512,
"model_name": "nvidia-p6",
"max_cpu": 35,
"max_ram": 250,
"model_name": "nvidia-v100",
"v_ram": 16000
},
{
Expand All @@ -81,16 +100,6 @@
"max_ram": 250,
"model_name": "nvidia-a100",
"v_ram": 40000
},
{
"generations": [
"v3",
"v4"
],
"max_cpu": 80,
"max_ram": 512,
"model_name": "nvidia-k2",
"v_ram": 4096
}
],
"id": "##id-0##",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"hypervisor": "xen",
"id": "##id-1##",
"image_id": "##id-4##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF174",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
"hypervisor": "xen",
"id": "##id-3##",
"image_id": "##id-5##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"hypervisor": "xen",
"id": "##id-3##",
"image_id": "##id-6##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF68",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"hypervisor": "xen",
"id": "##id-3##",
"image_id": "##id-5##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"tags": [
{
"key": "Key-2",
"value": "value-tags-2"
"value": "value:TF69"
},
{
"key": "Key:TF69",
"value": "value:TF69"
"value": "value-tags"
}
]
},
Expand Down Expand Up @@ -109,11 +109,11 @@
"tags": [
{
"key": "Key-2",
"value": "value:TF69"
"value": "value-tags-2"
},
{
"key": "Key:TF69",
"value": "value-tags"
"value": "value:TF69"
}
]
}
Expand Down Expand Up @@ -149,7 +149,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-4##",
"snapshot_id": "##id-2##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -161,7 +161,7 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"image_id": "##id-5##",
"image_id": "##id-3##",
"image_name": "########",
"image_type": "machine",
"permissions_to_launch": [],
Expand Down Expand Up @@ -198,7 +198,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-2##",
"snapshot_id": "##id-4##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -210,7 +210,7 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"image_id": "##id-3##",
"image_id": "##id-5##",
"image_name": "########",
"image_type": "machine",
"permissions_to_launch": [],
Expand Down Expand Up @@ -300,11 +300,11 @@
"tags": [
{
"key": "Key-2",
"value": "value-tags-2"
"value": "value:TF69"
},
{
"key": "Key:TF69",
"value": "value:TF69"
"value": "value-tags"
}
]
},
Expand Down Expand Up @@ -349,11 +349,11 @@
"tags": [
{
"key": "Key-2",
"value": "value:TF69"
"value": "value-tags-2"
},
{
"key": "Key:TF69",
"value": "value-tags"
"value": "value:TF69"
}
]
}
Expand Down Expand Up @@ -389,7 +389,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-4##",
"snapshot_id": "##id-2##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -401,7 +401,7 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"image_id": "##id-5##",
"image_id": "##id-3##",
"image_name": "########",
"image_type": "machine",
"permissions_to_launch": [],
Expand Down Expand Up @@ -438,7 +438,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-2##",
"snapshot_id": "##id-4##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -450,7 +450,7 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"image_id": "##id-3##",
"image_id": "##id-5##",
"image_name": "########",
"image_type": "machine",
"permissions_to_launch": [],
Expand Down Expand Up @@ -509,7 +509,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-2##",
"snapshot_id": "##id-4##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -521,7 +521,7 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"image_id": "##id-3##",
"image_id": "##id-5##",
"image_name": "########",
"image_type": "machine",
"permissions_to_launch": [],
Expand Down Expand Up @@ -574,7 +574,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-4##",
"snapshot_id": "##id-2##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -586,8 +586,8 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"id": "##id-5##",
"image_id": "##id-5##",
"id": "##id-3##",
"image_id": "##id-3##",
"image_name": "########",
"image_type": "machine",
"is_public": null,
Expand Down Expand Up @@ -652,7 +652,7 @@
{
"delete_on_vm_deletion": true,
"iops": 0,
"snapshot_id": "##id-2##",
"snapshot_id": "##id-4##",
"volume_size": 10,
"volume_type": "standard"
}
Expand All @@ -664,8 +664,8 @@
"creation_date": "########",
"description": "",
"file_location": "########",
"id": "##id-3##",
"image_id": "##id-3##",
"id": "##id-5##",
"image_id": "##id-5##",
"image_name": "########",
"image_type": "machine",
"is_public": null,
Expand Down Expand Up @@ -743,7 +743,7 @@
"hypervisor": "xen",
"id": "##id-10##",
"image_id": "##id-12##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"hypervisor": "xen",
"id": "##id-3##",
"image_id": "##id-12##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF87",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"hypervisor": "xen",
"id": "##id-6##",
"image_id": "##id-13##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF88",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"hypervisor": "xen",
"id": "##id-1##",
"image_id": "##id-13##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF88",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"hypervisor": "xen",
"id": "##id-3##",
"image_id": "##id-12##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF89",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
"hypervisor": "xen",
"id": "##id-0##",
"image_id": "##id-9##",
"is_source_dest_checked": true,
"is_source_dest_checked": false,
"keypair_name": "KP-TF92",
"launch_number": 0,
"nested_virtualization": false,
Expand Down
Loading

0 comments on commit b5fee90

Please sign in to comment.