Skip to content

Commit

Permalink
Update tests for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Dec 15, 2023
1 parent eb34f40 commit e1448b0
Show file tree
Hide file tree
Showing 74 changed files with 1,898 additions and 1,752 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
{
"schema_version": 0,
"attributes": {
"flexible_gpu_id": "##id-0##",
"id": "##id-0##",
"flexible_gpu_ids": [
"##id-0##"
],
"id": "##id-1##",
"request_id": "########",
"timeouts": null,
"vm_id": "##id-1##"
Expand All @@ -63,7 +65,7 @@
{
"schema_version": 0,
"attributes": {
"id": "##id-2##",
"id": "##id-3##",
"keypair_fingerprint": "########",
"keypair_name": "KP-TF174",
"private_key": "########",
Expand All @@ -90,12 +92,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-3##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-4##"
}
],
"device_name": "/dev/sda1"
}
],
Expand All @@ -105,8 +109,8 @@
"deletion_protection": false,
"get_admin_password": null,
"hypervisor": "xen",
"id": "##id-1##",
"image_id": "##id-4##",
"id": "##id-2##",
"image_id": "##id-5##",
"is_source_dest_checked": true,
"keypair_name": "KP-TF174",
"launch_number": 0,
Expand All @@ -127,14 +131,14 @@
"public_dns_name": "########",
"public_ip": "########",
"request_id": "########",
"reservation_id": "##id-5##",
"reservation_id": "##id-6##",
"root_device_name": "/dev/sda1",
"root_device_type": "ebs",
"security_group_ids": null,
"security_group_names": null,
"security_groups": [
{
"security_group_id": "##id-6##",
"security_group_id": "##id-7##",
"security_group_name": "default"
}
],
Expand All @@ -144,7 +148,7 @@
"tags": [],
"timeouts": null,
"user_data": "",
"vm_id": "##id-1##",
"vm_id": "##id-2##",
"vm_initiated_shutdown_behavior": "restart",
"vm_type": "tinav5.c2r2p1"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

resource "outscale_keypair" "my_keypair" {
keypair_name = "KP-TF174"
keypair_name = "KP-TF174"
}

resource "outscale_vm" "MaVM" {
image_id = var.image_id
vm_type = var.fgpu_vm_type
keypair_name = outscale_keypair.my_keypair.keypair_name
placement_subregion_name = "${var.region}a"
vm_initiated_shutdown_behavior = "restart"
image_id = var.image_id
vm_type = var.fgpu_vm_type
keypair_name = outscale_keypair.my_keypair.keypair_name
placement_subregion_name = "${var.region}a"
vm_initiated_shutdown_behavior = "restart"
}

resource "outscale_flexible_gpu" "fGPU-1" {
model_name = "nvidia-p6"
generation = var.fgpu_gen
subregion_name = "${var.region}a"
delete_on_vm_deletion = true
model_name = "nvidia-p6"
generation = var.fgpu_gen
subregion_name = "${var.region}a"
delete_on_vm_deletion = true
}


resource "outscale_flexible_gpu_link" "link_fGPU" {
flexible_gpu_id = outscale_flexible_gpu.fGPU-1.flexible_gpu_id
vm_id = outscale_vm.MaVM.vm_id
flexible_gpu_ids = [outscale_flexible_gpu.fGPU-1.flexible_gpu_id]
vm_id = outscale_vm.MaVM.vm_id
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@
{
"schema_version": 0,
"attributes": {
"flexible_gpu_id": "##id-0##",
"id": "##id-0##",
"flexible_gpu_ids": [
"##id-0##"
],
"id": "##id-4##",
"request_id": "########",
"timeouts": null,
"vm_id": "##id-1##"
Expand All @@ -172,7 +174,7 @@
{
"schema_version": 0,
"attributes": {
"id": "##id-4##",
"id": "##id-5##",
"keypair_fingerprint": "########",
"keypair_name": "KP-TF1775",
"private_key": "########",
Expand All @@ -199,12 +201,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-5##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-6##"
}
],
"device_name": "/dev/sda1"
}
],
Expand All @@ -215,7 +219,7 @@
"get_admin_password": null,
"hypervisor": "xen",
"id": "##id-1##",
"image_id": "##id-6##",
"image_id": "##id-7##",
"is_source_dest_checked": true,
"keypair_name": "KP-TF1775",
"launch_number": 0,
Expand All @@ -236,14 +240,14 @@
"public_dns_name": "########",
"public_ip": "########",
"request_id": "########",
"reservation_id": "##id-7##",
"reservation_id": "##id-8##",
"root_device_name": "/dev/sda1",
"root_device_type": "ebs",
"security_group_ids": null,
"security_group_names": null,
"security_groups": [
{
"security_group_id": "##id-8##",
"security_group_id": "##id-9##",
"security_group_name": "default"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "outscale_flexible_gpu" "fGPU-2" {
}

resource "outscale_flexible_gpu_link" "link_fGPU" {
flexible_gpu_id = outscale_flexible_gpu.fGPU-1.flexible_gpu_id
flexible_gpu_ids = [outscale_flexible_gpu.fGPU-1.flexible_gpu_id]
vm_id = outscale_vm.MaVM.vm_id
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-4##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-4##"
}
],
"device_name": "/dev/sda1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-7##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-7##"
}
],
"device_name": "/dev/sda1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-5##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-5##"
}
],
"device_name": "/dev/sda1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-4##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-4##"
}
],
"device_name": "/dev/sda1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,12 +726,14 @@
"block_device_mappings": [],
"block_device_mappings_created": [
{
"bsu": {
"delete_on_vm_deletion": "true",
"link_date": "########",
"state": "attached",
"volume_id": "##id-11##"
},
"bsu": [
{
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-11##"
}
],
"device_name": "/dev/sda1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@
{
"schema_version": 0,
"attributes": {
"access_log": {
"is_enabled": "false",
"osu_bucket_name": "",
"osu_bucket_prefix": "",
"publication_interval": "60"
},
"access_log": [
{
"is_enabled": false,
"osu_bucket_name": "",
"osu_bucket_prefix": "",
"publication_interval": 60
}
],
"application_sticky_cookie_policies": [],
"backend_vm_ids": [],
"dns_name": "########",
"health_check": {
"check_interval": "30",
"healthy_threshold": "10",
"path": "",
"port": "8080",
"protocol": "TCP",
"timeout": "5",
"unhealthy_threshold": "2"
},
"health_check": [
{
"check_interval": 30,
"healthy_threshold": 10,
"path": "",
"port": 8080,
"protocol": "TCP",
"timeout": 5,
"unhealthy_threshold": 2
}
],
"id": "##id-0##",
"listeners": [
{
Expand Down Expand Up @@ -59,10 +63,12 @@
"request_id": "########",
"secured_cookies": false,
"security_groups": [],
"source_security_group": {
"security_group_account_id": "##id-1##",
"security_group_name": "outscale-elb-sg"
},
"source_security_group": [
{
"security_group_account_id": "##id-1##",
"security_group_name": "outscale-elb-sg"
}
],
"subnets": [],
"subregion_names": [
"eu-west-2a"
Expand Down
Loading

0 comments on commit e1448b0

Please sign in to comment.