Skip to content

Commit

Permalink
ip failover tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin Mihalache committed Jun 10, 2021
1 parent 84a94ae commit c73be50
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ionoscloud/resource_firewall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down Expand Up @@ -185,7 +185,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "test1234"
volume {
name = "system"
Expand Down
8 changes: 6 additions & 2 deletions ionoscloud/resource_ipfailover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func TestAccLanIPFailover_Basic(t *testing.T) {
testDeleted("ionoscloud_ipfailover.failovertest"),
),
},
{
Config: `/* */`,
},
},
})
}
Expand Down Expand Up @@ -159,7 +162,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand All @@ -174,6 +177,7 @@ resource "ionoscloud_server" "webserver" {
}
}
resource "ionoscloud_ipfailover" "failovertest" {
depends_on = [ ionoscloud_lan.webserver_lan1 ]
datacenter_id = "${ionoscloud_datacenter.foobar.id}"
lan_id="${ionoscloud_lan.webserver_lan1.id}"
ip ="${ionoscloud_ipblock.webserver_ip.ips[0]}"
Expand Down Expand Up @@ -206,7 +210,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down
4 changes: 2 additions & 2 deletions ionoscloud/resource_nic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down Expand Up @@ -173,7 +173,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down
4 changes: 2 additions & 2 deletions ionoscloud/resource_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down Expand Up @@ -157,7 +157,7 @@ resource "ionoscloud_server" "webserver" {
ram = 1024
availability_zone = "ZONE_1"
cpu_family = "AMD_OPTERON"
image = "Ubuntu-20.04-LTS-server-2021-06-01"
image_name = "Ubuntu-20.04-LTS-server-2021-06-01"
image_password = "K3tTj8G14a3EgKyNeeiY"
volume {
name = "system"
Expand Down

0 comments on commit c73be50

Please sign in to comment.