kingbird/kingbird/tests/tempest/scenario
Goutham Pratapa 3c2bc63a9f Modify Tempest tests of resource_management.
Currently, Kingbird uses curl requests to run Tempest tests
This commit replaces curl requests with kingbird python sdk
(python-kingbirdclient)for resource_management only.
Add kingbirdclient to the test-requriements.txt
Partially Implements: kingbirdclient-tempest
Change-Id: I7fbeec5376dc3a2333a7cc9ad51108feb79a7b03
2017-06-30 18:11:49 +05:30
..
quota_management Move existing kingbird to V1 directory. 2017-04-04 19:19:57 +05:30
resource_management Modify Tempest tests of resource_management. 2017-06-30 18:11:49 +05:30
README.rst Kingbird Refactor(Part 2/Final): 2016-06-02 05:24:40 +00:00
__init__.py Kingbird Refactor(Part 2/Final): 2016-06-02 05:24:40 +00:00
config.py Tempest testcases to support new bug fixes 2017-02-13 11:13:11 +00:00
consts.py Tempest testcases for Keypair_sync 2017-02-13 09:59:36 +05:30
plugin.py Enable loading of the tempest plugin configuration 2016-06-17 11:51:48 +08:00

README.rst

Tests for Kingbird in Tempest

How to run

Get the latest kingbird resources from the appropriate mirror:

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

Install kingbird, in order to register the tempest plugin interface:

$ cd kingbird
$ python setup.py install

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=
admin_domain_name=

[identity]
uri=
uri_v3=
auth_version=
username=
password=
region=
tenant_name=
domain_name=
alt_domain_name=
default_domain_id=

[compute]
image_ref=

All the parameters above are defined by tempest.

The parameters which are only specific to kingbird tempest plugin are configured in kingbird/tests/tempest/scenario/config.py by group name KBGroup.

When configuration is finished, you can list the testcases in Kingbird plugin:

$ testr list-tests | grep kingbird

If you want to launch the tests from tempest, you can do with:

$ tox -e all-plugin -- scenario.quota_management.client_tests

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

$ tox -e all-plugin -- quota_management

If you want to launch a single Kingbird testcase in Tempest, you can do this with:

$ tox -e all-plugin scenario.quota_management.client_tests.test_quota_management_api.KingbirdQMTestJSON.test_kingbird_delete_method