Pecan has made WebTest an optional dependency for testing only [1].
Since it is used for blazar unit testing, we need to add it to the
test-requirements.
The lower version bound is required by requirements-check.
It is (arbitrarily) taken from the Queens' upper-constraints.
[1] https://github.com/pecan/pecan/pull/140
Change-Id: I67b730a21676a8191756effec7e15ab1895e1c95
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: I9d22be39bec67fc17841367a0ef0ac439143af6c
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 docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
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: Ib2fc9304a6db9f01eb6d0eb82363906fd322612f
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: I585cc69cf4094f6ed37a6f2dc58fb9ad33417279
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I298819dbe890be4375c4ac47d8e6293e4b2fb9f1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build; fix build warnings
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Raise oslo.utils version, 3.36.5 introduced uuidsentinel.
Change-Id: I8c81e0c1944c239e460befbf886993270902ee04
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.
Move hacking tests to another subdir, import hacking failed since the
subdir was called hacking as well.
Change-Id: I684f0e4be28e529ae2c9d6f4bef5bd840adc8787
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: I84e64e1ba60341408c400bef7c351ec0ebab2ef1
Following recent changes to global requirements [1], we need
to update sphinx requirements locally. This should fix the
requirements-check job.
[1] If558f184c959e4b63b56dec3ca1571d1034cfe5c
Change-Id: I641a28790bf5df0cec09b5600e2fd83a513dd896
When updating reservation values, the reservation ID is a required
parameter. However, if the value of "reservation.id" is set to an empty
string, null, or an incorrect UUID, Blazar currently returns a 200 OK
response instead of a 400 Bad Request.
This patch fixes it by raising an InvalidInput exception if an invalid
value is passed for reservation.id.
APIImpact: The response code is changed from 200 OK to 400 Bad Request
if an invalid reservation ID is passed to the Update Lease API.
Change-Id: I83e7c3cc0b6ca79aab2b8bb23ba82fceb96646e2
Closes-Bug: #1793743
Remove the nose dependency since its not being used anywhere.
Change-Id: I35ec4ca6075230b4425c8419e2d022ef28f66421
Signed-off-by: Chuck Short <chucks@redhat.com>
pylint 2.0.0 and newer releases do not support Python 2, which breaks
Python 2 tests. This patch changes the requirement for pylint to use
version 1.9.1. The requirement is moved out of test-requirements.txt,
since pylint is not tracked in global requirements.
Change-Id: I2464ff2fc56b7fe7a92c40ec1555880f4e220479
A previous patch [1] changed tox environments to use python3 by default,
which makes the pylint test fail.
This patch updates the pylint package version and fixes pylint errors.
[1] https://review.openstack.org/#/c/572948/
Change-Id: I93c4a0c6060960552cc914963f410188eac7f3f4
Mox was listed in test-requirements, but it is not actually
being used anywhere. Since we want to remove this package
from OpenStack, removing from requirements so it does not
look like it is being used.
Change-Id: Ibe1b5a406ccbd33e058f5744b15a114685aba5da
As part of the docs migration work [1] we need to use the
openstackdocstheme Sphinx theme.
[1] https://review.openstack.org/#/c/472275/
Change-Id: I022a5811453ba2d11772b110117d127e04d77811
Partial-Bug: #1721489
Discover is only needed for python < 2.7 which is no longer supported.
The code using lockfile was removed when we switched to oslo.db.
Change-Id: Ib9a59fa280877a4bbe9d5106da49e0d02cab916f
This patch updates overview documents. It also adds settings required
for publishing documents under doc directory on the readthedocs.io.
Change-Id: I89fd24cc538d09cdcfbe9a1cfb9986a4bf724266
Closes-Bug: #1662739
This patch converts the Blazar code base from its oslo-incubator test
module to the oslotest module.
Change-Id: I22d56b1b80acfbe103253c2e505d892b30a064a0
Closes-Bug: #1660901
Currently the last item that blazar uses that isn't in g-r is lockfile
which means migrating to oslo.db.
Change-Id: If416bae3c0ee76cc5567ff460db150a7fb8c2262
We need to use the newer hacking library to avoid conflicts when we
enable constraints. This in turn needs a newer pbr.
Do this as a separate change to make backporting easier.
Change-Id: I17df901a6e154dda23bf8eb883ed5ef74bf8e556
Since Blazar was in Winter, lots of tech debt was added.
This big change is actually trying to provide a +1 from Jenkins voting jobs.
ie.
- fix calls to oslo_config
- correct unittests failing due to removed assert_called()
- remove pep8 check for verifying blazar.conf (can be readded later)
- fix oslo_messaging imports
Not sure it's fully functional, Tempest needs to be fixed too but I
hope the gate will allow that change to pass.
Change-Id: Ib70b5b48b47626fc2613ee894d1162219417994f
Manually update from global requirements.
Remove obsolete docutils pin.
Regenerate climate config file.
Fix testsuite for testtools change.
Workaround PYTHONHASHSEED setting in tox, disable for now so that tests
always pass.
Change-Id: I8c4a458371b28c91c5b848094e56038a16d6afc3
Added a new WSGI application to handle version discovery between Flask
and Pecan REST API implementations.
Added version discovery to V2 API.
Modified the version discovery of V1 API to be consistent with the one
implemented for the V2 API.
Adding testscenarios to test-requirements.txt
Change-Id: Ib69d6a1362cb10fb53bed92568db1a81a5924e51
Implements: bp/api-version-discovery
Routing either V1 or V2 using a Facade. By default, V1 is enabled
but can be deactivated by a confflag.
Pecan controller for Lease created using WSME i/o validation
Implements blueprint: pecan-wsme
Change-Id: I9047abece78632daa13fdebfea9fb8aaa3c60981