This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
Change-Id: Iee6ee8ba5c5fa8ea84194d3a24f5166779ba3421
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
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I7b1d194adc808927867c3344f496247db73a7a1d
stable/victoria is in EM state and Tempest is pinned
there so we do not need to test the stable/victoria
jobs on master gate.
Change-Id: I5acf940826d481c380bb24d429ffd24a73b28004
We have stable/yoga released so we should add
their job on master gate to keep branchless tempest
plugins compatible to stable branch.
This also removes the stable/ussuri job as that is in EM
state now.
Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html
Change-Id: Icf87c821f1dcccf301cc1f68024b3bde2621a46b
We have stable/ussuri to stavle/xena stable branch jobs
are running in master gate. This removes the stable/train
job as that is in EM state now.
Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html
Change-Id: Ia53eab84be9a000a843370551ce1bee1778e5b27
The bug https://bugs.launchpad.net/freezer/+bug/1896648 is fixed.
Once nodeset is removed form here then devstack-tempest job
will automatically run this job on Ubuntu Focal nodeset from
Victoria gate onwards.
Change-Id: I1df7562dd0ffcd8570b51ca238559ee9e2a2e654
We have stable/victoria and stable/wallaby released so we
should add their job on master gate to keep branchless
tempest plugins compatible to those branch.
This also removes the stable/stein job as that is in EM
state now.
Ref: Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html
Change-Id: I315dc315049583e7f3bb4c8716f59b57a3229b52
- use tempest_plugins to define the list of plugins;
- remove devstack-gate, not needed;
- do not set PYTHONUNBUFFERED, a leftover from the old jenkins days;
- make freezer-tempest-basic-sql inherit from freezer-tempest-basic -
they are basically the same, apart from an additional definition
and the removal of the explicit swift from freezer-tempest-basic-sql,
which is inherited from devstack-tempest anyway.
Change-Id: I6bafe75e602c76037d3859c8c7829773740199c6
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.
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
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: Ia7f902cce276b8e9bbc62a6f75e123521e471289
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Ib119207db682d20c01be673c5bc91227c80709e1
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:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html
[1] e8f1876aa6/.zuul.yaml (L646)
Change-Id: I7d1db17f492d873ee7408286f8b83c325576012f
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
python 3, create doc/requirements.txt, switch to openstackdocstheme
from obsolete oslosphinx
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Move constraints into deps, use TOX_CONSTRAINTS instead of obsolete
UPPER_CONSTRAINTS
* Switch to hacking 3.0, fix problems found
Change-Id: I44d09a65349a1d9b564e69a7fc32eb435446245c
We don't support python2 anymore so we don't need this compatibility
library.
This patch remove six useage.
Change-Id: I6521eebed209c976728bc189876f2406c1feea4c
Src_file option was changed to path_to_backup in freezer git repository
below, but tests were never changed, this patch is fixing this behaviour.
Freezer's change :
c7f71ff70b
Doc changes in freezer:
https://review.opendev.org/#/c/705003/
Changes in freezer-api:
https://review.opendev.org/#/c/705012/
Change-Id: I64a3e36ac68de5c45a93b56be83b017ce9f1221c
1.TypeError: a bytes-like object is required, not 'str'
Python3.X need use decode() to change "bytes" -> "str"
ft1.2: freezer_tempest_plugin.tests.freezerclient.test_freezer_cmd_action.TestFreezerCmdAction.test_freezer_cmd_actiondelete[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezerclient/test_freezer_cmd_action.py", line 79, in test_freezer_cmd_actiondelete
action_id = err.split(' ')[1]
TypeError: a bytes-like object is required, not 'str'
2.AttributeError: module 'urllib' has no attribute 'urlencode'
ft1.2: freezer_tempest_plugin.tests.freezer_api.api.test_api_actions.TestFreezerApiActions.test_api_actions_get_limit[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezer_api/api/test_api_actions.py", line 46, in test_api_actions_get_limit
resp, body = self.freezer_api_client.get_actions(limit=valid_limit)
File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/services/freezer_api_client.py", line 136, in get_actions
uri += '?%s' % urllib.urlencode(params)
AttributeError: module 'urllib' has no attribute 'urlencode'
Change-Id: Ice774245605fe3549c7dacb9a2891d8177777f66