157 Commits

Author SHA1 Message Date
likui
6e1a7edeff Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I4ad4c5cc59800bc187a0ac0722c487726f7e18b3
2022-05-23 10:26:10 +01:00
Ghanshyam Mann
1d198ab481 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I92cc78df6245774c2038d35fb6e353cb2fa83cda
2021-12-14 02:46:30 +00:00
wu.shiming
6b0ed2b828 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:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I17ce1b72e7e9acb64b342a149b68ad31b79a2dff
2021-06-10 09:31:46 +08:00
Zuul
2b39a61ecf Merge "Update hacking for Python3" 2020-10-28 22:18:55 +00:00
Andreas Jaeger
9dbeefb55e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks for new flake8, remove
test B314 since that tests difference between Python 2 and 3,
there's no need to advise using six anymore.
Use oslotest.base directly, this fixes the hacking tests.

Remove ddt usage in testsuite, it does not work with current hacking
version anymore.

Change-Id: Iee4584c6fde08728c017468d9de1db73f2c79d8d
2020-10-12 21:20:06 +02:00
maaoyu
49de1a9d34 Bump py37 to py38 in tox.ini
Change-Id: Idd812802c0fdf1892e670873bf7ef33991d918fb
2020-10-12 16:29:09 +08:00
Andreas Jaeger
e2f37f5e63 Remove install_cmd,lower-constraints
Move constraints into deps, remove install_cmd.

The default install_cmd is just fine to use.

Increase constraints since they are now finally tested, see
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html
showed that they are broken. The lower-constraints job is optional,
remove it.

Change-Id: Ieda45ef624e0cd4e60216b740cc04aff0783e863
2020-04-30 15:22:29 +02:00
Andreas Jaeger
02b82e5a4c Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- 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
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Sync docs deps in tox.ini

Change-Id: Ie1fccdc777be978075e4689eda6c62578bd463e4
2020-04-29 19:10:48 +02:00
Douglas Mendizábal
b8266ef402 Use Zuulv3 devstack jobs
This patch updates the gate jobs to stop using legacy
jobs and use the new Zuul v3 jobs instead.

The tempest tests will be re-enabled in a future patch.

Depends-On: I5d2bda5e653ee5d7c17cb7697247802916bdc5f7
Change-Id: Id91f44e8053cf4f40224959021d43736d5525107
2020-04-27 16:41:20 -05:00
Ghanshyam Mann
ab6898aa7f [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Barbican is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I77bf25fedb45433c7dbe655b4fd0c24dcf030549
2020-01-10 17:22:04 +00:00
Zuul
1c380f5b1d Merge "Modify the url of upper_constraints_file" 2019-11-01 11:20:50 +00:00
pengyuesheng
9241a4308e Modify the url of upper_constraints_file
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I4d1612d3a552986709a54f2a3bdd833832699df5
2019-10-03 14:50:31 +00:00
Alexandra Settle
3db28fb81a PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:

  https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.

Also, due to the opposing graphic format, the .gif file
had to be converted (not renamed) to .png so the LaTeX
builder would accept and read the images.

Change-Id: I6384e56222991d39f4fd1bc99e82be6c89fb16a3
Story: 2006072
2019-09-25 08:59:22 +00:00
Zuul
db7e9cbc65 Merge "Fix barbican B105 issues" 2019-08-06 08:28:26 +00:00
Zuul
6cb66f640a Merge "Update api-ref location" 2019-08-05 23:31:04 +00:00
Corey Bryant
6982e9707f 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:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: If8e7d6fbb7730705432fb9cc0d5d7a8b06bbe6c1
Story: #2005924
Task: #34198
2019-08-05 16:04:50 +00:00
Andreas Jaeger
6e193a308e Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

Fix api-guide building: Use docs requirements.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: I16af26b25e36ab1281f109cd5765db1ead9f3df6
2019-08-05 17:58:16 +02:00
Andreas Jaeger
a10ccf6cf3 Fix barbican B105 issues
Those are all false positives, add "nosec" to them and
enable the test again.

Change-Id: I88ae4f77be18146b31d5f2b935896b593f9a40c0
2019-08-05 16:36:38 +02:00
pengyuesheng
bf95c37b84 Fix the bug of pep8 and building api-guide
`sphinx-build` command is not found in test-env.

To fix pep8, also blacklist the new bandit warning B105, this will
be fixed in a followup.

Change-Id: Ic1b8c3a4bfd67fff082297b881df66ffb9ca2c50
2019-08-05 16:36:02 +02:00
Zuul
4156d61820 Merge "Dropping the py35 testing" 2019-05-13 20:56:44 +00:00
Zuul
cad2596cad Merge "Delete api-ref" 2019-05-13 20:56:42 +00:00
Andreas Jaeger
fa4dbd524e Delete api-ref
This is empty and unused, instead there's a in-doc api-ref that is used.
Let's drop this separate copy.

Related-Bug: #1827243
Depends-On: https://review.opendev.org/656671
Change-Id: I0b37ea0fdf15e30244d86a36026e8c9ebc2f7e70
2019-05-01 21:29:52 +02:00
Le Hou
28405cb046 Update to opendev
Change-Id: I0d079752c19cba21be6f02caa1aed9b917999495
2019-04-23 15:35:42 +08:00
Ghanshyam Mann
f8bf36efa2 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I00d4b8a6f5687811af58960d5538c50ebe9fac4c
2019-04-14 18:56:48 +00:00
Douglas Mendizábal
34faa76587 Run functional tests serially
The tests are not written to be run in parallel.
All Quota tests fail itermittenly when run in parallel.

Change-Id: If1b19ffe56d553c500a454731195db455941ed9f
2019-02-04 13:48:03 -06:00
Nguyen Hai Truong
d8acdbaaf6 Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id5b845289c53e012833a38e44598c49335d2c809
2018-11-07 18:48:50 -08:00
Zuul
91e9d7853e Merge "Fix tox -e releasenotes" 2018-11-06 15:02:44 +00:00
Douglas Mendizábal
0e54c0082a Fix tox -e releasenotes
The releasenotes tox target fails without this patch because it
can't find sphinx-build.

This patch fixes the releasenotes tox target to use the documentation
requirements file to make sure sphinx is installed in the tox venv.

Change-Id: I55f69e1aa1b3f426cc732cc38947d70bdb0634a5
2018-11-05 15:07:44 -06:00
Andreas Jaeger
b8dc70046c tox: Stop building *all* docs in 'docs'
The 'docs' target currently builds the documentation trees in 'api-ref' and
'api-guide', in addition to 'doc'. This massively increases the amount of
time docs take to build both locally and in the gate. It's not necessary for
gate, since separate jobs take care of the other documents for barbican.
As such, we should stop doing it.

For users that *do* care about this (for whatever reason) a new 'all-docs'
target is included.

Change-Id: I8b65c16d7bf574f045b702de853ad81389f140d5
2018-10-27 16:43:08 +02:00
Nguyen Van Trung
2543342a4d Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: Iec4de0522bcf2a7a81ce6f5ee5aa96ec917588b1
2018-10-09 09:59:51 +07:00
Ade Lee
df8c62aab3 Refactor PKCS#11 to allow configurable mechanisms
Allow for setting the PKCS#11 encryption and hmac algorithms
in the config file.

This patch also implements CKM_AES_CBC encryption and
decryption.

Change-Id: I847b4b17df51bc4846c37a1e19e6adec76f46b38
Co-Authored-By: Ade Lee <alee@redhat.com>
2018-08-10 22:24:34 -05:00
Zuul
fbff8cdfc3 Merge "Skip some tests for vault plugin" 2018-07-31 04:54:22 +00:00
Nguyen Van Trung
727ffb14d3 Add doc8 to pep8 check for project
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Change-Id: If9c6fbf51033cd420c605443dbb3049535024697
2018-07-30 01:56:14 +00:00
Lingxian Kong
809ae5c5d0 Skip some tests for vault plugin
Vault secretstore plugin doesn't support asymmetric key generation for
now, so disable the related functional tests.

With this patch, the following functional tests sould be skipped:

api.v1.functional.test_orders.OrdersTestCase.test_encryption_using_generated_key
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_certificate_from_ordered_container
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_certificate_from_ordered_container_with_pass
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_container
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_container_with_passphrase

Change-Id: If416f38cb87bdb279a05263b99b5f2af916c1229
2018-07-27 22:01:11 +12:00
Vu Cong Tuan
1f8a317ace Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Iee69eae0043a401eb355a1fcb957879904882e85
2018-07-17 09:48:31 +07:00
Doug Hellmann
0477799ea7 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0db7cdc38ed8392ec4358467115b6d715c71bb29
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-13 14:43:08 -04:00
Zuul
dfa2d6e153 Merge "Follow the new PTI for document build" 2018-06-11 14:44:33 +00:00
Nguyen Van Trung
baec7f5490 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I31f34904335fa889c05153bf899067dba7453fbe
2018-06-07 12:33:15 +07:00
Nam Nguyen Hoai
ef9a6f3867 Initial OVO for Barbican
Creating a initial patch set for OVO
in Barbican.

Partial Implements: blueprint rolling-upgrade

Change-Id: I13ae209bdafd8ed857925650fbe13b3b9ca78847
2018-06-05 13:21:18 +07:00
huangshan
89cdc72aaf Fix docs build in tox.ini
This patch is to ensure the old files are not left over
when running these document builds.

Change-Id: I1234a6be4c7f33522c4ad803be9bc4f4777ed102
2018-05-14 16:15:55 +08:00
Vu Cong Tuan
a20315a1bb Apply pep8 check to app.wsgi
Because app.wsgi should meet pep8 standards,
this patch apply pep8 check to app.wsgi.

Change-Id: I570ebbe97dbd0d4cabb75c30e950e391b1276cf8
2018-04-11 14:38:06 +07:00
Zuul
b33fed4e5f Merge "Indicating the location tests directory in oslo_debug_helper" 2018-03-26 04:12:01 +00:00
Doug Hellmann
199381ea5e add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ib098a5cd8e4d119bea61d9b6c28d8274902fe4fd
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 09:01:01 -04:00
Nguyen Van Trung
29d51fc493 Indicating the location tests directory in oslo_debug_helper
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.

[1] https://docs.openstack.org/developer/oslotest/features.html

Change-Id: I843af321242161d4febf8bbf4e22bd2aa0addeda
2018-03-21 07:52:06 +00:00
Zuul
5b525f6b0a Merge "Update virtual_environment for genconfig and genpolicy" 2018-02-12 17:31:51 +00:00
Jeremy Liu
c93fc17317 Fix coverage job
diff-cover compares HEAD with origin/master branch by default.
Zuul uses git operations to mirror the local prepared git repos
to the remote nodes. And all branch names are without 'origin',
so need to specify the branch name for coverage job.

Change-Id: Iaba21de10f6cf705e110cd60cb004502bb37515d
2018-02-09 08:15:22 +00:00
Nam Nguyen Hoai
d6b25aeb1a Update virtual_environment for genconfig and genpolicy
It is not necessary to create two new virtual environments
when run tox with genconfig and genpolicy. We can use pep8
virtual_environment for those tox., it will reduce time to
run tox.

Change-Id: Ia07d325ed9550c8a201039754d96341f051c63f0
2018-01-24 10:05:05 +07:00
zhuzeyu
622df49a2c Delete python bytecode including pyo
TrivialFix

Change-Id: Id05035c791c8ce10e0db3ed3eef059c61a059b2b
2017-09-27 17:14:51 +08:00
yushangbin
94bf667f46 Put "rm" command to whitelist_externals to avoid warning
Change-Id: Id79a2a1dd35118d6c5ecaa4ae2c74948a4102d5e
2017-08-24 11:56:52 +08:00
yushangbin
961ee0e668 Remove install-guide env which is no longer effective
The install-guide directory has been moved to doc/source directory
when migrating docs.

Change-Id: I64a5631a44161cdfaf58476810c56c82436eea7b
2017-07-31 16:49:21 +08:00