Fix of client tests in tempest

python-saharaclient tests in tempest were fixed
and documentation updated

Change-Id: I6a5964b8ecd1e343c427ae7aefdadac5cfa26ad9
Closes-bug: #1501347
This commit is contained in:
Andrey Pavlov 2015-09-30 16:56:32 +03:00
parent 5240195f4b
commit 8ad5858052
2 changed files with 19 additions and 5 deletions

View File

@ -18,6 +18,20 @@ Install sahara, in order to register the tempest plugin interface:
$ pip install $SAHARA_ROOT_DIR
..
Get the latest python-saharaclient resources from the appropriate mirror:
.. sourcecode:: console
$ git clone https://github.com/openstack/python-saharaclient.git
..
Install python-saharaclient:
.. sourcecode:: console
$ pip install $SAHARACLIENT_ROOT_DIR
..
Get the latest tempest resources from the appropriate mirror:
.. sourcecode:: console
@ -25,12 +39,13 @@ Get the latest tempest resources from the appropriate mirror:
$ git clone https://github.com/openstack/tempest.git
..
Create a configuration file ``tempest/etc/tempest.conf`` for tempest using the sample file
from ``tempest/etc/tempest.conf.sample``:
Create a configuration file ``tempest/etc/tempest.conf`` for tempest.
The sample file can be generated and used for this purpose:
.. sourcecode:: console
$ cd $TEMPEST_ROOT_DIR
$ tox -e genconfig
$ cp etc/tempest.conf.sample etc/tempest.conf
..
@ -38,8 +53,6 @@ Some configuration options are required for running tests. Here is the list:
.. sourcecode:: ini
[DEFAULT]
[identity]
uri=
uri_v3=
@ -56,6 +69,7 @@ Some configuration options are required for running tests. Here is the list:
[network]
floating_network_name=
public_network_id=
[data_processing]
fake_image_id=

View File

@ -133,7 +133,7 @@ class BaseDataProcessingTest(manager.ScenarioTest):
@classmethod
def _find_network_by_name(cls, network_name):
for network in cls.networks_client.list_networks():
for network in cls.networks_client.list_networks()['networks']:
if network['label'] == network_name:
return network['id']
return None