From cc5fc354ceb03adc5031eba089ef6896fb0d1dd8 Mon Sep 17 00:00:00 2001 From: Kyrylo Romanenko Date: Mon, 20 Mar 2017 16:01:33 +0000 Subject: [PATCH] Fix docstrings for creating methods in baremetal api tests Change-Id: Iec39fbf4ceac9e7b697ddacc3eb9a4f1defb699e --- ironic_tempest_plugin/tests/api/admin/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ironic_tempest_plugin/tests/api/admin/base.py b/ironic_tempest_plugin/tests/api/admin/base.py index e1d4e867f8..81b712c7e6 100644 --- a/ironic_tempest_plugin/tests/api/admin/base.py +++ b/ironic_tempest_plugin/tests/api/admin/base.py @@ -152,7 +152,7 @@ class BaseBaremetalTest(api_version_utils.BaseMicroversionTest, :param description: A description of the chassis. If not supplied, a random value will be generated. - :return: Created chassis. + :return: A tuple with the server response and the created chassis. """ description = description or data_utils.rand_name('test-chassis') @@ -171,7 +171,7 @@ class BaseBaremetalTest(api_version_utils.BaseMicroversionTest, :param cpus: Number of CPUs. Default: 8. :param local_gb: Disk size. Default: 10. :param memory_mb: Available RAM. Default: 4096. - :return: Created node. + :return: A tuple with the server response and the created node. """ resp, body = cls.client.create_node(chassis_id, cpu_arch=cpu_arch, @@ -191,7 +191,7 @@ class BaseBaremetalTest(api_version_utils.BaseMicroversionTest, :param extra: Meta data of the port. If not supplied, an empty dictionary will be created. :param uuid: UUID of the port. - :return: Created port. + :return: A tuple with the server response and the created port. """ extra = extra or {} @@ -206,7 +206,7 @@ class BaseBaremetalTest(api_version_utils.BaseMicroversionTest, """Wrapper utility for creating test port groups. :param node_uuid: The unique identifier of the node. - :return: Created port group. + :return: A tuple with the server response and the created port group. """ resp, body = cls.client.create_portgroup(node_uuid=node_uuid, **kwargs)