Skip to content

Commit

Permalink
Update integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Feb 28, 2024
1 parent ed46fd1 commit 0d44979
Show file tree
Hide file tree
Showing 44 changed files with 257 additions and 147 deletions.
10 changes: 5 additions & 5 deletions outscale/data_source_outscale_net_peerings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const testAccDataSourceOutscaleOAPILinPeeringsConnectionConfig = `
}
resource "outscale_net_peering" "outscale_net_peering" {
accepter_net_id = "${outscale_net.outscale_net.net_id}"
source_net_id = "${outscale_net.outscale_net2.net_id}"
accepter_net_id = outscale_net.outscale_net.net_id
source_net_id = outscale_net.outscale_net2.net_id
tags {
key = "okht"
value = "testacc-peerings-ds"
Expand All @@ -50,14 +50,14 @@ const testAccDataSourceOutscaleOAPILinPeeringsConnectionConfig = `
}
resource "outscale_net_peering" "outscale_net_peering2" {
accepter_net_id = "${outscale_net.outscale_net.net_id}"
source_net_id = "${outscale_net.outscale_net2.net_id}"
accepter_net_id = outscale_net.outscale_net.net_id
source_net_id = outscale_net.outscale_net2.net_id
}
data "outscale_net_peerings" "outscale_net_peerings" {
filter {
name = "net_peering_ids"
values = ["${outscale_net_peering.outscale_net_peering.net_peering_id}"]
values = [outscale_net_peering.outscale_net_peering.net_peering_id]
}
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-6##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"generation": "v5",
"model_name": "nvidia-p6",
"state": "allocated",
"subregion_name": "eu-west-2a",
"subregion_name": "###region###a",
"vm_id": ""
},
{
Expand All @@ -79,7 +79,7 @@
"generation": "v5",
"model_name": "nvidia-p6",
"state": "attached",
"subregion_name": "eu-west-2a",
"subregion_name": "###region###a",
"vm_id": "##id-1##"
}
],
Expand Down Expand Up @@ -234,6 +234,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-6##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-5##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-7##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-6##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-5##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-12##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-13##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-14##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-14##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
"listener_rules": [
{
"action": "forward",
"host_name_pattern": "*.abc.-.abc.*.com",
"host_name_pattern": "",
"listener_id": "##id-1##",
"listener_rule_id": "##id-2##",
"listener_rule_name": "listener-rule-2",
"path_pattern": "",
"priority": 1,
"listener_rule_name": "listener-rule-1",
"path_pattern": "*.abc.*.abc.*.com",
"priority": 10,
"vm_ids": [
"##id-3##"
]
},
{
"action": "forward",
"host_name_pattern": "",
"host_name_pattern": "*.abc.-.abc.*.com",
"listener_id": "##id-1##",
"listener_rule_id": "##id-4##",
"listener_rule_name": "listener-rule-1",
"path_pattern": "*.abc.*.abc.*.com",
"priority": 10,
"listener_rule_name": "listener-rule-2",
"path_pattern": "",
"priority": 1,
"vm_ids": [
"##id-3##"
]
Expand Down Expand Up @@ -163,7 +163,7 @@
"action": "forward",
"host_name_pattern": "",
"listener_id": "##id-1##",
"listener_rule_id": "##id-4##",
"listener_rule_id": "##id-2##",
"listener_rule_name": "listener-rule-1",
"path_pattern": "*.abc.*.abc.*.com",
"priority": 10
Expand Down Expand Up @@ -206,7 +206,7 @@
"action": "forward",
"host_name_pattern": "*.abc.-.abc.*.com",
"listener_id": "##id-1##",
"listener_rule_id": "##id-2##",
"listener_rule_id": "##id-4##",
"listener_rule_name": "listener-rule-2",
"path_pattern": "",
"priority": 1
Expand Down Expand Up @@ -301,7 +301,8 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-13##"
"tags": [],
"volume_id": "##id-14##"
}
],
"device_name": "/dev/sda1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-8##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"volume_id": "##id-8##"
"tags": [],
"volume_id": "##id-6##"
}
],
"device_name": "/dev/sda1"
Expand Down Expand Up @@ -265,6 +266,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-11##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-8##"
}
],
Expand Down Expand Up @@ -267,6 +268,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-11##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-15##"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
"delete_on_vm_deletion": true,
"link_date": "########",
"state": "attached",
"tags": [],
"volume_id": "##id-9##"
}
],
Expand Down
Loading

0 comments on commit 0d44979

Please sign in to comment.