summaryrefslogtreecommitdiff
path: root/tempest/api/compute/base.py
diff options
context:
space:
mode:
authorDavid Kranz <dkranz@redhat.com>2015-02-11 15:55:20 -0500
committerDavid Kranz <dkranz@redhat.com>2015-02-12 12:40:33 -0500
commit0fb14292783e46dd0043321343259fae2c0aa240 (patch)
tree7dcf7eba36c9724c84c4bef0ffaba568144590dc /tempest/api/compute/base.py
parent8b1aaf74294fec4977efdbc2c8f4a28c4152a7e4 (diff)
downloadtempest-0fb14292783e46dd0043321343259fae2c0aa240.tar.gz
Change basic server client methods to return one value and update tests
This includes create_server, update_server, get_server, delete_server and also some helper methods such as create_test_server Partially implements: blueprint clients-return-one-value Change-Id: I8e1fba7a31a0ed27e683dacd9a8e763759552c11
Diffstat (limited to 'tempest/api/compute/base.py')
-rw-r--r--tempest/api/compute/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py
index 4ad6c1d84..21e342a81 100644
--- a/tempest/api/compute/base.py
+++ b/tempest/api/compute/base.py
@@ -199,7 +199,7 @@ class BaseComputeTest(tempest.test.BaseTestCase):
flavor = kwargs.get('flavor', cls.flavor_ref)
image_id = kwargs.get('image_id', cls.image_ref)
- resp, body = cls.servers_client.create_server(
+ body = cls.servers_client.create_server(
name, image_id, flavor, **kwargs)
# handle the case of multiple servers
@@ -227,7 +227,7 @@ class BaseComputeTest(tempest.test.BaseTestCase):
cls.servers.extend(servers)
- return resp, body
+ return body
@classmethod
def create_security_group(cls, name=None, description=None):
@@ -317,7 +317,7 @@ class BaseComputeTest(tempest.test.BaseTestCase):
cls.servers_client.wait_for_server_termination(server_id)
except Exception:
LOG.exception('Failed to delete server %s' % server_id)
- resp, server = cls.create_test_server(wait_until='ACTIVE', **kwargs)
+ server = cls.create_test_server(wait_until='ACTIVE', **kwargs)
cls.password = server['adminPass']
return server['id']