diff --git a/builtin/providers/openstack/provider_test.go b/builtin/providers/openstack/provider_test.go index 16009d04d..7e4b6d99f 100644 --- a/builtin/providers/openstack/provider_test.go +++ b/builtin/providers/openstack/provider_test.go @@ -64,8 +64,8 @@ func testAccPreCheck(t *testing.T) { t.Fatal("OS_FLAVOR_ID or OS_FLAVOR_NAME must be set for acceptance tests") } - v = os.Getenv("OS_NETWORK_NAME") + v = os.Getenv("OS_NETWORK_ID") if v == "" { - t.Fatal("OS_NETWORK_NAME must be set for acceptance tests") + t.Fatal("OS_NETWORK_ID must be set for acceptance tests") } } diff --git a/builtin/providers/openstack/resource_openstack_compute_instance_v2_test.go b/builtin/providers/openstack/resource_openstack_compute_instance_v2_test.go index 5c528e906..79bef7296 100644 --- a/builtin/providers/openstack/resource_openstack_compute_instance_v2_test.go +++ b/builtin/providers/openstack/resource_openstack_compute_instance_v2_test.go @@ -67,10 +67,10 @@ func TestAccComputeV2Instance_floatingIPAttach(t *testing.T) { floating_ip = "${openstack_compute_floatingip_v2.myip.address}" network { - name = "%s" + uuid = "%s" } }`, - os.Getenv("OS_NETWORK_NAME")) + os.Getenv("OS_NETWORK_ID")) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) },