diff --git a/tempest/api/compute/admin/test_auto_allocate_network.py b/tempest/api/compute/admin/test_auto_allocate_network.py index c4d576818e..e8011a6386 100644 --- a/tempest/api/compute/admin/test_auto_allocate_network.py +++ b/tempest/api/compute/admin/test_auto_allocate_network.py @@ -148,9 +148,7 @@ class AutoAllocateNetworkTest(base.BaseV2ComputeTest): def test_server_create_no_allocate(self): """Tests that no networking is allocated for the server.""" # create the server with no networking - server, _ = compute.create_test_server( - self.os_primary, networks='none', wait_until='ACTIVE') - self.addCleanup(self.delete_server, server['id']) + server = self.create_test_server(networks='none', wait_until='ACTIVE') # get the server ips addresses = self.servers_client.list_addresses( server['id'])['addresses']