Add floating IP association in aceptance tests
This commit is contained in:
parent
c0b85d4939
commit
56aa764b94
|
@ -81,6 +81,11 @@ func testAccCheckComputeV2FloatingIPExists(t *testing.T, n string, kp *floatingi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var testAccComputeV2FloatingIP_basic = fmt.Sprintf(`
|
var testAccComputeV2FloatingIP_basic = `
|
||||||
resource "openstack_compute_floatingip_v2" "foo" {
|
resource "openstack_compute_floatingip_v2" "foo" {
|
||||||
}`)
|
}
|
||||||
|
|
||||||
|
resource "openstack_compute_instance_v2" "bar" {
|
||||||
|
name = "terraform-acc-floating-ip-test"
|
||||||
|
floating_ip = "${openstack_compute_floatingip_v2.foo.address}"
|
||||||
|
}`
|
||||||
|
|
|
@ -81,9 +81,11 @@ func testAccCheckNetworkingV2FloatingIPExists(t *testing.T, n string, kp *floati
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var testAccNetworkingV2FloatingIP_basic = fmt.Sprintf(`
|
var testAccNetworkingV2FloatingIP_basic = `
|
||||||
resource "openstack_networking_floatingip_v2" "foo" {
|
resource "openstack_networking_floatingip_v2" "foo" {
|
||||||
region = "%s"
|
}
|
||||||
pool = "%s"
|
|
||||||
}`,
|
resource "openstack_compute_instance_v2" "bar" {
|
||||||
OS_REGION_NAME, OS_POOL_NAME)
|
name = "terraform-acc-floating-ip-test"
|
||||||
|
floating_ip = "${openstack_networking_floatingip_v2.foo.address}"
|
||||||
|
}`
|
||||||
|
|
Loading…
Reference in New Issue