From c73be508ea32b7f1a74f59e62910cdb63efd1668 Mon Sep 17 00:00:00 2001 From: Florin Mihalache Date: Thu, 10 Jun 2021 19:37:29 +0300 Subject: [PATCH] ip failover tests fixed --- ionoscloud/resource_firewall_test.go | 4 ++-- ionoscloud/resource_ipfailover_test.go | 8 ++++++-- ionoscloud/resource_nic_test.go | 4 ++-- ionoscloud/resource_snapshot_test.go | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ionoscloud/resource_firewall_test.go b/ionoscloud/resource_firewall_test.go index 9c42ed2c8..3a5819a9d 100644 --- a/ionoscloud/resource_firewall_test.go +++ b/ionoscloud/resource_firewall_test.go @@ -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" @@ -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" diff --git a/ionoscloud/resource_ipfailover_test.go b/ionoscloud/resource_ipfailover_test.go index b647fe3c6..b4e0c6b6f 100644 --- a/ionoscloud/resource_ipfailover_test.go +++ b/ionoscloud/resource_ipfailover_test.go @@ -43,6 +43,9 @@ func TestAccLanIPFailover_Basic(t *testing.T) { testDeleted("ionoscloud_ipfailover.failovertest"), ), }, + { + Config: `/* */`, + }, }, }) } @@ -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" @@ -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]}" @@ -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" diff --git a/ionoscloud/resource_nic_test.go b/ionoscloud/resource_nic_test.go index 77dea3d1f..22b0fcc45 100644 --- a/ionoscloud/resource_nic_test.go +++ b/ionoscloud/resource_nic_test.go @@ -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" @@ -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" diff --git a/ionoscloud/resource_snapshot_test.go b/ionoscloud/resource_snapshot_test.go index 62599710a..0a02e09fe 100644 --- a/ionoscloud/resource_snapshot_test.go +++ b/ionoscloud/resource_snapshot_test.go @@ -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" @@ -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"