Commit Graph

275 Commits (master)

Author SHA1 Message Date
Zuul 92ca984a8d Merge "Remove Glance v1 APIs tests code" 2023-08-16 01:11:14 +00:00
Zuul a05bb9845b Merge "Add stable/2023.1 jobs on master gate" 2023-08-15 04:03:12 +00:00
chenker 8d909cfade fix hacking error
Change-Id: I11efc5b65485bdf1f227471d6fed72888686b228
2023-08-13 05:46:49 +00:00
Ghanshyam Mann 768d009b91 Remove Glance v1 APIs tests code
Glance v1 APIs were removed in Rocky and tempest master
does not support the Rocky release. If glance v1 APIs
needs to be tested for older release then older Tempest
can be used.

Tempest is removing the Glance v1 APIs tests, config option,
and its service clients and this change is needed for that.

Change-Id: I3f285c025bdf0c3b08b51efd157de77dcfd057c6
2023-08-06 12:14:58 -07:00
Ghanshyam Mann bc876896a7 Add stable/2023.1 jobs on master gate
As 2023.1 is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Ref: Tempest plugins guide for stable branch testing:

Change-Id: Ia44a2a9f4765e897e3788037ad2db86a0f58a28b
2023-06-09 05:06:06 +00:00
Ghanshyam Mann 01ab036562 Add stable/zed jobs on master gate
As zed is released, we should add its job on master
gate to keep branchless tempest plugins compatible
to stable branch.

Also fixing the zuul config error.

Ref: Tempest plugins guide for stable branch testing:

Change-Id: I6e71dbd45ec97e65d51c26de092af0da7dd1dea0
2022-10-15 22:42:50 -05:00
Zuul 4dfcd276d5 Merge "Add WebTest as dependency for testing" 2022-08-31 03:57:53 +00:00
chenker 997d172590 Add WebTest as dependency for testing
Latest pecan release dropped this dependency. This is why now it is
needed to explicitly install it during testing.

Change-Id: I88e0f564b19fc30b06daab02a24eb7990bba9712
2022-08-31 01:57:24 +00:00
Ghanshyam Mann 2be53fff37 Update stable branches jobs on master gate
we have stable/xena and stable/yoga also present
and supported so we should add their job on master
gate to keep branchless tempest plugins compatible
to stable branch.

This also removes the old EM stable branches which are
stein, train, ussuri, and victoria jobs.

Ref: Tempest plugins guide for stable branch testing:

Change-Id: Ifebd2506a199dbf606ce253e020556caab93c05e
2022-05-31 19:00:02 -05:00
Zuul d97f4b3c36 Merge "Add temptest tests for victoria and wallaby" 2021-07-07 17:00:26 +00:00
Dantali0n 869e107bb9 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:

Change-Id: Ibcec688515a595b016f2832e49343b9053821304
2021-07-06 12:53:45 +02:00
Zuul a2e2b36086 Merge "Manage constraints with testenv install_command" 2021-07-06 07:24:59 +00:00
Zuul c56683ef19 Merge "setup.cfg: Replace dashes with underscores" 2021-07-02 10:16:00 +00:00
Dantali0n 93ce2f356e Add temptest tests for victoria and wallaby
Both victoria and wallaby should be currently maintained
and as a result they should also be tested.

Change-Id: Ibff5a92d8cbd88c63ad5d6c71be24f7c57cf0050
2021-07-02 12:03:00 +02:00
Dantali0n f50fe604ac Manage constraints with testenv install_command
This prevents having to duplicate the -c{} deps argument
across all environments in tox.ini

In addition this switches to stestr instead of testing

Change-Id: I3d0b6ca81be88660dcbbbeed0c3705771b258cb2
2021-07-02 12:03:00 +02:00
maaoyu 163ce471d6 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead


Change-Id: Ic8793866bfde33c7ad634a76d263aa71fa4d42c6
2021-06-30 17:10:08 +00:00
liyou01 1346d3e237 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported.

Change-Id: Ia5ab41670c8f341126a730af54f7ece9b6b79f73
2021-06-30 17:09:38 +00:00
Dantali0n f66397a3cc Fix zuul builds with dependencies and pep8 rules
This updates hacking to 3.2 thereby removing the pyflakes
dependency. In addition pep8 rules W503 is disabled in
favor of the more recent W504.

Co-authored-by: <>
Change-Id: Id274b1b577b12a7dc1e659949b08b05ddfc661e8
2021-06-30 17:08:40 +00:00
root f5913409a5 Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.iterkeys
- six.moves
- six.metaclass

Change-Id: I2409f52daf24be1aab42a6d1f77db1c1bf1dc075
2020-10-19 03:47:26 +00:00
root 95a6f9568c Bump py37 to py38 in tox.ini
In 'victoria' cycle, we should test py38 by default.


Change-Id: I6daf6b8ec46baf0a0a87d20df29cf29f57d3d086
2020-10-12 07:32:09 +00:00
Ghanshyam Mann 7fbabcafa3 [goal] Migrate watcher-tempest-plugin jobs to focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Most of the Tempest jobs will be migrate automatically once devstack
base job start running on Focal(Depends-On).

Stable jobs testing stable branch needs to keep running on their supported
distro version which is bionic from stein till ussuri.


Change-Id: I175b41351f4f34ee2a4916dda2f610bc7716d9c3
Story: #2007865
Task: #40227
2020-07-31 22:16:03 +00:00
Hervé Beraud 2e097b62b8 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]


Change-Id: Ifa2e16df273a2d272a6631a70ee94c76f8e3716e
2020-06-02 21:07:21 +02:00
Andreas Jaeger 25d06aa08a Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also

Change-Id: I5cdda37a7312c05b62e7468200486c6a7f6e1397
2020-05-30 15:58:42 +02:00
Ghanshyam Mann 819b94b96b Add stable branch jobs on the plugins master gate
Supported stable branches in maintenance state
(stein, train, ussuri) use the Tempest and plugins master
version for their testing. To make sure master version (new
tests or any changes) is compatible with stable branch testing,
we need to add the stable branches job on the plugins master gate.
Tempest and many other plugins are already testing the stable
branches in same way[1].

Ussuri onwards, Tempest or plugins are py3 only, so we are
running only python3 version of stable jobs

Tempest plugins guide for stable branch testing:

 [1] e8f1876aa6/.zuul.yaml (L646)

Change-Id: I21a4d1f8dc4cc5b58cb03f5c3109a14c9a470716
2020-05-14 01:56:36 +00:00
licanwei e15055d34a check microversion before create EVENT audit
Change-Id: I1384a776ecb1035822481af8ffdd833da1ed5871
2020-05-13 17:10:17 +08:00
Zuul caa50e4c7a Merge "Remove duplicate tempest items" 2020-04-20 02:25:29 +00:00
licanwei befba294f0 Remove duplicate tempest items
Change-Id: I509b9f2aa1f390f632fbfd90a66a5ec3c57b274a
2020-04-18 10:23:59 +08:00
licanwei 30e5842473 Add audit test for microversion 1.2
Change-Id: Ia856c26e9ee8181909367e9f299c6e78e7c4d7ff
2020-04-14 02:34:19 +00:00
licanwei ce99c1ffe4 Add watcherclient tempest
Change-Id: Ia42c61579ff8244cc8a0355aa9ca761bc939125a
2020-04-13 10:30:05 +08:00
zhangbailin 4ebf571aad Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use modern sphinx-build for docs building, update openstackdocstheme

Change-Id: I627fdb0db6a673f382916097a47cad7066ccd10a
2020-04-05 14:56:26 +08:00
Zuul 3e4cb2fa77 Merge "Add create EVENT audit functional test" 2020-02-21 02:31:45 +00:00
licanwei baa59e75f8 Add create EVENT audit functional test
Change-Id: Iab3b667912278fc2b693dbccf980d102d85d8ea5
2020-02-19 10:01:05 +08:00
Zuul ff4da99bcd Merge "Fix skipping of tests" 2020-02-05 09:15:59 +00:00
Zuul e1219f1872 Merge "Drop python 2.7 support and testing" 2020-02-04 00:59:39 +00:00
Ghanshyam Mann 2758cfd305 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

watcher-tempest-plugin is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal -

Change-Id: I9673003311450847c2ba2321cda93353898e6469
2020-01-22 22:20:22 +00:00
Xing Zhang 85df1a6d7a
Fix skipping of tests
The plugin defines a 'watcher' option in the '[service_available]' group
but does not respect it, so if the plugin is installed but
[service_available]/watcher=false, the tests will still run unless
blacklisted. This patch corrects the issue by defining the tempest
skip_checks class method.

Change-Id: Iba29ac0d05f56c83b3be4856ae671f9ae2d31486
2020-01-15 14:37:45 +08:00
Ghanshyam Mann 55a829626f Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: I04d3e8c2ac9c252e4212e504496d6c8dd4a03bda
2019-12-12 17:10:11 +00:00
licanwei d1517415db Set volume default value to 1
In python3, the function max(None, int)
 raise a typeError exception.

Change-Id: I8f0b8bf4fcfc3371e9249ec6460874c5382f8cbe
2019-10-31 10:33:09 +08:00
licanwei 569bf8541b Build pdf docs
Add a new pdf-docs environment to enable PDF build.

Change-Id: I8de5b3eb32532cd95b9ee50b982030147efad107
2019-09-17 01:25:32 -07:00
licanwei 6560602ff5 Add Node Resource Consolidation tempest
Partially Implements: blueprint node-resource-consolidation
Depends-on: Ia979781b32202c1821aa1cb91d24253fe6d7bd2d
Depends-on: I104c864d532c2092f5dc6f0c8f756ebeae12f09e

Change-Id: Ie9963aeef564f63a5cd88e94e94f2652660cccbd
2019-09-05 00:06:21 -07:00
licanwei 447fc7b7d2 Check node trait before creating server
Placement may fail to update trait because of Conflict
the trait may be updated by the Nova compute
update_available_resource periodic task.
We need node status is enabled, so we check the node
trait and delay if it is not the correct status.
the max delay time is 10 minutes.

Depends-on: Ie98e2c000568ecac63e8981a8b7087029c0d3705

Change-Id: I3e45d4a66a6e1bf55499def8550da38ddf01b638
2019-08-22 23:51:52 -07:00
licanwei 4d6b4b3b49 replace disable/enable_service with update_service
The Nova version Watcher neede is at least 2.56
Starting with microversion 2.53 disable/enable API
is superseded by PUT /os-services/{service_id}[1]

Depends-on: If21b0df50e2f2cc2884f531cb40084e95a688026

Change-Id: If3366db5cc49ced522e30f75e7f85b8671b947bd
2019-08-22 03:01:32 +00:00
Zuul 9f7d7812bc Merge "remove redundant code" 2019-08-17 10:02:57 +00:00
Zuul e946d47e52 Merge "ignore editor temporary files" 2019-08-17 08:26:51 +00:00
Zuul 907c96c364 Merge "rollback node status" 2019-08-17 07:47:25 +00:00
licanwei 84d78fefd6 ignore editor temporary files
Change-Id: I9991d614fe570a2ad30af06ac8b3bfb933a3dbac
2019-08-16 17:09:46 +08:00
Vieri ecd3714bcf Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:

Co-Authored-By: qingszhao <>

Change-Id: I2b447c801291c78a70a6c9e362c7e63a2890986b
2019-08-14 09:12:07 +00:00
licanwei 786383ac4d remove redundant code
Depends-on: I41abde48e53969753cc9beb9f1ea581e128901cc

Change-Id: I3a0c96dd721db14c795d5dec66ad56fd34ec1847
2019-07-16 10:43:52 +00:00
licanwei 54e746bdbe rollback node status
Change-Id: I41abde48e53969753cc9beb9f1ea581e128901cc
2019-07-16 13:47:57 +08:00
Zuul ac21f40a9b Merge "Refactor strategy tempest" 2019-07-01 06:20:59 +00:00