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
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
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
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
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
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
`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
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
The tests are not written to be run in parallel.
All Quota tests fail itermittenly when run in parallel.
Change-Id: If1b19ffe56d553c500a454731195db455941ed9f
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
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
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
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
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>
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
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
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
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>
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>
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
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
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