This section includes the instruction on how to extend the predefined OpenStack high availability tests.
To add custom OpenStack high availability tests:
Clone the openstack/tempest Git repository to your local Gerrit repository.
Check out the tempest
repository from your local Gerrit.
If required, create a new directory.
Create a file for the new test or update the existing test file.
Add the test code. Refer to Tempest Test Writing Guide in the OpenStack official documentation.
Commit the changes to the local Gerrit.
To perform the newly added test, run the CVP - Functional tests
pipeline as described in Execute the CVP - HA tests pipeline, specifying the
TEMPEST_TEST_PATTERN parameter according to your test/test
class/suite
name.
Note
Verify, that the TEMPEST_REPO value matches your
local Gerrit copy of tempest
.