Tempest plugin for the Zun project.
749acf98d6
We need to specify doc requirements in doc/requirements.txt to avoid problems with the pip resolver [1] for the release team [2][3]. Removing specific doc requirements from test-requirements.txt. The problem here is that this repos haven't doc/requirements.txt file and by default in this case zuul will use the test-requirements.txt file to pull requirements [4]. This requirements file contains extra requirements like flake8 that collided with those allowed in our job environment and so the new pip resolver fails to install these requirements and the job exits in error. This project meet the conditions leading to the bug. [1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html [2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html [3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html [4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36 Change-Id: I813c8d5c20b576911baea15fe9ae106e74500f3b |
||
---|---|---|
doc | ||
releasenotes | ||
zun_tempest_plugin | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
.zuul.yaml | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Team and repository tags
Tempest Integration of Zun
This directory contains Tempest tests to cover the Zun project, as well as a plugin to automatically load these tests into tempest.
See the Tempest plugin docs for information on using it: https://docs.openstack.org/tempest/latest/#using-plugins
- Free software: Apache license
- Documentation: https://docs.openstack.org/zun-tempest-plugin/latest
- Source: https://opendev.org/openstack/zun-tempest-plugin
- Bugs: https://bugs.launchpad.net/zun
Running the tests
Edit /opt/stack/tempest/etc/tempest.conf
:
Add the
[container_service]
section, configuremin_microversion
andmax_microversion
:[container_service] min_microversion=1.32 max_microversion=1.32
Note
You might need to modify the min/max microversion based on your test environment.
To run all tests from this plugin, install Zun into your environment and navigate to tempest directory:
$ cd /opt/stack/tempest
Run this command:
$ tempest run --regex zun_tempest_plugin.tests.tempest.api
To run a single test case, run with the test case name, for example:
$ tempest run --regex zun_tempest_plugin.tests.tempest.api.test_containers.TestContainer.test_list_containers