sahara/sahara/tests/tempest/scenario/data_processing
luhuichun 3ada667eaf Replacing all hard coded cluster status using cluster_utils
Change-Id: I9550e98553da9f7bfc57923e44a789e07a912ff4
Closes-bug: 1517061
2015-12-11 00:52:03 +08:00
..
client_tests Replacing all hard coded cluster status using cluster_utils 2015-12-11 00:52:03 +08:00
etc Saharaclient tests for tempest 2014-12-12 15:38:08 +03:00
README.rst Fix of client tests in tempest 2015-09-30 16:56:32 +03: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:

[identity]
uri=
uri_v3=
username=
tenant_name=
password=
admin_username=
admin_tenant_name=
admin_password=

[compute]
fixed_network_name=
flavor_ref=

[network]
floating_network_name=
public_network_id=

[data_processing]
fake_image_id=

[scenario]
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