Commit Graph

55 Commits

Author SHA1 Message Date
caihui 34641efcf5 Fix pylint error
Use pylint = 2.6.0 , fix some errors.

Change-Id: I1fdb40c7a8ac986332e10b642ab86799fc5ff78d
2021-01-24 17:55:32 -08:00
caihui 11dfa6a003 Use setstr to execute unittest test
The stestr[1] is parallel Python test runner designed to execute unittest test suites using multiple processes.
Test cases can be executed faster.

[1]https://github.com/mtreinish/stestr

Change-Id: Ic0b210685535f94a70a175385afdd9f399f4d690
2020-07-01 21:00:10 -07:00
Ghanshyam Mann fde440d1c7 Fix hacking min version to 3.0.1
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: Id3437e183fd4065d900f1b667a6599d5c2d9b987
2020-05-12 19:23:14 -05:00
jacky06 746c97b85b tox: Keeping going with docs
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: I582af8ad8f9a6b05f5a245a155b87be6e2d63874
2020-04-29 09:25:28 +08:00
Andreas Jaeger 11a19f2ea8 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: Ibc3b00aca7332f12b58893213acfc88749b74aa1
2020-04-14 20:09:03 +02:00
Andreas Jaeger f5332fd0d1 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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build. Remove extra build step
  from docs build - api-ref is build separate.
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine

Change-Id: I7bb95a8ebd7023046baae30595159254bac25690
2020-04-13 16:41:33 +02:00
jacky06 114f91f39c Use unittest.mock instead of third party mock
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: I749d6ebdef9163ffa3135778a4accbb8be5ba9e3
2020-04-10 22:03:44 +08:00
Michal Arbet 2a283bf34a Fix freezer-api's src_file to path_to_backup
Freezer-api is not working as it is expected, returning NULL value
for src_file option in freezer_action's json returned from API.

In other words when user define action via freezer client and define
valid and WORKING action JSON with option path_to_backup
(src_file is not supported by freezer-agent anymore).

In DB we can see backup_metadata is filled correctly,
freezer-scheduler/freezer-agent working correctly as they are reading
backup_metadata. Problem is that API is still returning json with
src_file set tu NULL because src_file is not present in backup_metada,
therefore is not filled in src_file column in action table.

Src_file option was changed to path_to_backup in freezer git repository
below, but API was never changed, this patch is fixing this behaviour.

Freezer's change :
c7f71ff70b

Doc changes in freezer:
https://review.opendev.org/#/c/705003/

Change-Id: I9e74910bd0ff4ad18b830c26ce90770b0dfa107b
2020-01-31 11:45:39 +01:00
Ghanshyam Mann 542dd206ac [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-api 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

Change-Id: I52a67f838e2e92540a9bf409199daa971018d911
2019-11-22 01:53:16 +00:00
caihui 99d4ece384 Upgrade pylint to a new version that works with python3.7
The pylint and astroid version should be specified for python3.7
pylint==2.3.1
astriod==2.1.0

Change-Id: I5aa7676b18beafc50d3f773f488e5dbe30e62035
2019-10-30 21:34:11 -04:00
pengyuesheng 984defe966 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I9a9da22aef5ff16f9a1ea462e7e1543d5099399b
2019-08-02 15:26:43 +08:00
Sean McGinnis d2768ec7a4 Switch to openstackdocstheme
oslosphinx theme is being retired as it is not compatible with the
recent Sphinx 2.0 release. This switches docs and release notes to use
the openstackdocstheme instead.

Change-Id: Ifc544d5d4ca9389a3a73d95397c6489fcab9d509
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-04 09:30:45 -05:00
Thomas Bechtold 6d37fa9940 Drop astroid requirement
It is not needed.

Change-Id: Ia1851f2e162c7bf024349c17629cbaf70ea925cd
2019-01-04 11:37:52 +01:00
gengchc2 976347c84a Add migrations unit test for sqlalchemy
Change-Id: Ia4e1117da8339fee1a6b2ea62068a104f4d82865
2018-12-11 00:32:56 +00:00
Doug Hellmann fc4fb5adc4 update pylint to 1.9.2
The older version of pylint being used does not work correctly under
python 3. In order to be able to update the pylint job to run under
python 3, we need to update the tool.

This patch updates to the latest version at this time. It also updates
and pins astroid, which was previously capped. Using a pin instead of
a cap should let us avoid issues with new releases while being
specific about which version to actually use.

This patch also fix lower-constraints.

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I6443247ab110dc9d5e71d23dc40ceabb439e23be
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-09 21:58:03 +09:00
OpenStack Proposal Bot ff77e58afd Updated from global requirements
Change-Id: Icd51b141bd514456e60a5a48ea90f75a64001719
2018-03-15 06:53:57 +00:00
OpenStack Proposal Bot 63bf999840 Updated from global requirements
Change-Id: I4e5067d48bda2c9320f2f4f486dfaeb533bb36fb
2018-03-13 06:51:22 +00:00
OpenStack Proposal Bot 90c1feb5b1 Updated from global requirements
Change-Id: I2e2df3663ede149caa8b07410565c5eb998ec668
2018-03-10 13:11:30 +00:00
OpenStack Proposal Bot 6942ff6d57 Updated from global requirements
Change-Id: Ib6bb4962e1a928ede1e6b66161ebb05ef19b30f2
2018-01-24 00:52:33 +00:00
OpenStack Proposal Bot b63c7f6953 Updated from global requirements
Change-Id: Ia8ba8be9d0899fe8c356edca0e19f935e5299140
2018-01-17 20:31:58 +00:00
Chandan Kumar f1812b89b1 Remove bundled intree freezer_api tempest plugin
* https://review.openstack.org/#/c/526905/ moves the intree bundled
  freezer_api tempest plugin to its new home freezer-tempest-plugin.

Depends-On: I66cc2507b0bbd9dda9d6279f9b8d74c546d1b0a6
Change-Id: I9703758c7bdb9250686dabb376f82174abf74b63
2017-12-10 16:44:22 +05:30
OpenStack Proposal Bot a32ed42fea Updated from global requirements
Change-Id: I9ab42df7bc9d6668c0ea2372ea8ef43ec50c418c
2017-11-29 08:54:23 +00:00
Jenkins 2a5fc3fd3e Merge "cleanup test-requirements" 2017-09-26 12:16:13 +00:00
caoyuan 5695a7f042 cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I1a6b2510c4bd0d3b0459951dce1c5ef78b2809d5
2017-09-25 22:00:31 +08:00
OpenStack Proposal Bot 51480352d7 Updated from global requirements
Change-Id: I5f971a28502cd6ae9555627e13327048c11da9b8
2017-09-13 12:49:52 +00:00
OpenStack Proposal Bot 99b9874402 Updated from global requirements
Change-Id: Iac022a4b07fa9c3de41be80a5dc7de7516374ec0
2017-09-11 21:36:01 +00:00
Eric Harney d14d9a98e5 Add fixtures to test-requirements
This is used by the unit tests.

Change-Id: I20b1eeb3c3150633845ef0af48c6894be6b38f13
2017-08-28 09:31:35 -04:00
OpenStack Proposal Bot 3d1768978d Updated from global requirements
Change-Id: I29331abc4eac9acc409ee5e216a0e0607ac46691
2017-08-24 05:48:49 +00:00
OpenStack Proposal Bot 4200c9aa5c Updated from global requirements
Change-Id: Id9435acb59e09d078b59d6526a24ab499dc0351e
2017-07-27 19:09:00 +00:00
OpenStack Proposal Bot cf0713bd3f Updated from global requirements
Change-Id: I902ffb1ed27b551899048debb34d8bcd2158c036
2017-07-13 14:13:07 +00:00
OpenStack Proposal Bot 7ff323baf0 Updated from global requirements
Change-Id: Id9c4e6e1318c0e930d2258bcdc8101a56adce248
2017-06-27 12:09:30 +00:00
OpenStack Proposal Bot 746dae2f7b Updated from global requirements
Change-Id: Ib23b67126fa336920820748d094d1321b7fca455
2017-06-08 05:59:14 +00:00
OpenStack Proposal Bot c4c572a6b4 Updated from global requirements
Change-Id: Id00293c331986ebf4aab85d1acfeb723c55e9fb8
2017-06-07 17:22:32 +00:00
Saad Zaher 7ec7d039bf Fix pylint checks
Change-Id: I8140a0b474d6a06e372683523cb5918059a03ae5
Partial-Bug: #1696455
2017-06-07 15:19:32 +00:00
OpenStack Proposal Bot bf08a04b20 Updated from global requirements
Change-Id: I24405b7017c5f573fa3d07536fcc4b9e4d0784bf
2017-06-02 21:54:51 +00:00
OpenStack Proposal Bot 69fd7b45af Updated from global requirements
Change-Id: I8959b6d7f54c66e56001844082525ea27d3ac72e
2017-05-17 03:47:19 +00:00
OpenStack Proposal Bot be0b69af62 Updated from global requirements
Change-Id: Ifa46eb8aabb4fff374739c590d76be740446f8e1
2017-05-15 00:43:11 +00:00
Andreas Jaeger 15233f9bf3 Docs: Various fixes
Treat warnings as errors when building documents to early spot problems.

Fix api-ref set up:
* Add openstackdocstheme for api-ref building instead of oslosphinx and
  configure it properly.
* Setup api-ref log-a-bug correctly for this project.
* Remove unneeded extra install command

Fix install-guide set up:
* Add tox environment

Fix releasenotes set up:
* Fix conf.py settings to build without errors, remove index, we don't
  need it.

fix docs set up:
* Use Sphinx 1.5 warning-is-error option for normal build_sphinx.
* use oslo sphinx
* Remove wrong static path setting

Change-Id: I07ce9db9fdb526ab4b083c65afa99c38bb508146
2017-03-08 21:02:46 +01:00
OpenStack Proposal Bot ae2bec600a Updated from global requirements
Change-Id: I01cf5858c0e5fa60a9b6ff356611ac9295669232
2017-03-02 11:44:04 +00:00
ricolin 84851c398d Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ib997953e973f1109aef516d646a8d3a76027766b
2017-03-02 17:17:11 +08:00
Luigi Toscano 6fee11bfeb Depends on tempest (tempest-lib is deprecated)
The code itself worked with tempest.lib from the start, so no
code changes are needed.

Change-Id: I5d792c0d26bba3cb03ca744e32ad57836436256b
2017-02-24 10:17:33 +01:00
OpenStack Proposal Bot 30040850f7 Updated from global requirements
Change-Id: I547c1b95b8059822a89f70b761696a3791728f68
2017-02-10 09:39:33 +00:00
OpenStack Proposal Bot 13e49dcaf2 Updated from global requirements
Change-Id: Iad2560372135603395d6dc6fb83f065ca74f6d29
2016-11-04 05:54:39 +00:00
Saad Zaher 191e7c9844 Added releasenotes for freezer-api
Change-Id: I264ba12975d525e899147fd20f0147ac832117b5
Implements: blueprint maintain-releasenote
2016-10-21 10:16:44 +00:00
OpenStack Proposal Bot 26b4e0c40f Updated from global requirements
Change-Id: I9cefc7db1294cfc8ab63c08201eeb6c39cb77117
2016-09-29 05:05:53 +00:00
OpenStack Proposal Bot 2ff22ec9d1 Updated from global requirements
Change-Id: I5e39ba576200cebaa2cd57a9c5409fa23defe10b
2016-09-08 17:17:07 +00:00
Saad Zaher 977ca7c548 Implemented: Installation documentation and API Ref
integrated freezer-api with openstackdoctheme lib and
os-api-ref lib to build the installation documentation
and api reference for freezer.

Change-Id: Ib5fc5f8227484525a13c3cfff9acb13d2b384e1a
Implements: blueprint implement-install-doc
Implements: blueprint implement-api-ref-doc
2016-09-07 13:20:34 +00:00
Swapnil Kulkarni (coolsvap) 5db9ce7961 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Iaac782c11a34fc07b34b4f5cbb12008ae4c60daa
2016-07-21 10:06:02 +00:00
OpenStack Proposal Bot 1d0ecea034 Updated from global requirements
Change-Id: I640aee8c9bb3610ad1c8368e9cbe0427b0f28153
2016-07-04 11:35:44 +00:00
Deklan Dieterly 541baee572 Introduce tempest tests
Start to introduce tempest tests.

See if gate job executes first test.

Change-Id: Id55daec07f6a99a08cb1433807b7b5c5ed2db3f8
2016-03-03 09:46:58 -07:00