From 26a7e5aaec1e4f138378a132d682cc8cda41866d Mon Sep 17 00:00:00 2001 From: lkuchlan Date: Sun, 24 Dec 2017 10:18:53 +0200 Subject: [PATCH] Use create_test_server wrapper for server creation Since this wrapper responsible for server deletion we can remove this action from the testcase. Change-Id: I9878bd623f5ecefb0551136e41af2a4e15d1d5f6 --- tempest/api/compute/admin/test_auto_allocate_network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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']