sahara/sahara/tests/tempest/scenario/data_processing
Nam Nguyen Hoai 36c7b3de74 TrivialFix: Remove logging import usused
This patch removes logging import unused.

Change-Id: Ia609f2a569828089a24811d55af80eda56bffa7e
2016-08-26 14:03:06 +07:00
..
client_tests TrivialFix: Remove logging import usused 2016-08-26 14:03:06 +07:00
etc Saharaclient tests for tempest 2014-12-12 15:38:08 +03:00
README.rst update options mentioned in tempest readme 2016-04-18 22:38:33 +08:00
__init__.py Saharaclient tests for tempest 2014-12-12 15:38:08 +03:00
config.py Adapt python client tests to use Tempest plugin interface 2015-09-18 14:13:04 +02:00
plugin.py Fix tempest tests 2015-10-16 11:57:04 +03:00

README.rst

Tests for Sahara Client in Tempest

How to run

Get the latest sahara resources from the appropriate mirror:

$ git clone https://github.com/openstack/sahara.git

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:

$ git clone https://github.com/openstack/python-saharaclient.git

Install python-saharaclient:

$ pip install $SAHARACLIENT_ROOT_DIR

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. The sample file can be generated and used for this purpose:

$ cd $TEMPEST_ROOT_DIR
$ tox -e genconfig
$ cp etc/tempest.conf.sample etc/tempest.conf

Some configuration options are required for running tests. Here is the list:

[auth]
admin_username=
admin_project_name=
admin_password=

[identity]
uri=
uri_v3=

[compute]
fixed_network_name=
flavor_ref=

[network]
floating_network_name=
public_network_id=

[data-processing]
fake_image_id=

[validation]
image_ssh_user=

[service_available]
sahara=true
neutron=true

All the parameters above are defined by tempest, with the exception of data_processing.fake_image_id, which is defined by the scenario python client tests here.

Other relevant parameters (all defined by scenario python client tests):

[data-processing]
...
endpoint_type=
catalog_type=
saharaclient_version=1.1
sahara_url=
cluster_timeout=1800
request_timeout=10

When configuration is finished, you can launch the tests from tempest with:

$ tox -e all-plugin -- tempest.scenario.data_processing.client_tests

If you want to launch all Sahara tests in Tempest, you can do this with data_processing tag:

$ tox -e all-plugin -- data_processing