Name: mos-tempest-runner
Owner: Mirantis Inc.
Description: The repository with scripts which allow to run Tempest tests for OpenStack clouds
Created: 2015-03-02 09:35:44.0
Updated: 2017-07-16 16:36:40.0
Pushed: 2016-05-30 06:03:20.0
Homepage: null
Size: 152
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Toolkit to run Tempest against Mirantis OpenStack
The main goal of these scripts is to prepare the OpenStack cloud for Tempest and run the tests by executing a few commands.
WARNING: Use mos-tempest-runner to run Tempest against PRODUCTION OpenStack clouds at own risk! These scripts may break the OpenStack cloud! Pay attention that mos-tempest-runner was initially designed to run Tempest on CI and test OpenStack environments!
Requirements to Run Mos-Tempest-Runner “out of the box”
How Mos-Tempest-Runner Prepares OpenStack Cloud
In order to run Tempest against an OpenStack cloud we have to perform some actions on the cloud. For example, create a tenant, a user without admin role, some extra roles, etc. What mos-tempest-runner does:
How to Run All Tempest Tests
Log into the Fuel master node. Make sure the Fuel master node has Internet connection before you execute the further steps:
m -y install git
t clone https://github.com/Mirantis/mos-tempest-runner.git
mos-tempest-runner
setup_env.sh
rejoin.sh
n_tests
How to Run Some Group of Tempest Tests
If you want to run some group of test cases, you should use the following command:
n_tests <path.to.test.folder.or.path.to.test.file.or.path.to.test.class>
For example, you would like to run some group of tests for Keystone. In this case you can execute the following commands:
n_tests tempest.api.identity
n_tests tempest.api.identity.admin.test_roles
n_tests tempest.api.identity.admin.test_roles.RolesTestJSON
How to Run Single Tempest Test
If you want to run single test case, you should use the following command:
n_tests <path.to.test>
For example, you would like to run one of the tests for Keystone. In this case you can execute the following command:
n_tests tempest.api.identity.admin.test_roles.RolesTestJSON.test_list_roles