Commit Graph

31 Commits

Author SHA1 Message Date
suzhengwei 19bf506816 remove sqlalchemy-migrate requirement
We switch to alembic, and not support sqlalchemy-migrate.

Change-Id: Id8f1e3a880e8939e1c9f3234304d010de2819f2e
2023-12-26 09:17:34 +08:00
Stephen Finucane 94257be795 pre-commit: Update dependencies
We also bump the hacking version and remove some unnecessary notes from
the top of the requirements files: these don't apply with the dependency
resolver introduced in pip 20.3.

Change-Id: Ifebaec916264bfd10eec13040295719fd47ae107
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-21 09:13:09 +00:00
suzhengwei e6ab50131e fix ci broken
1.Add sqlalchemy-migrate dependence in test-requirements.txt.

It will remove the dependence after this project switchs to alembic.
Remove "check-requirements" temporarily.

2.Fix unit tests broken by olso.utils

Some of the object unit tests grub Mock object unintentionally, and
that results in failure during initializing an versioned object,
because the Mock object does not present its version correctly.

3.make functional jobs not voting

Fix functional jobs later.

Change-Id: Id3c952a54e77952cfd0d76d259f49a14edca1d8b
2023-12-21 13:36:46 +08:00
Radosław Piliszek 9e7d35b889 Use some better linting
Lints docs and yaml files in addition to Python.

Change-Id: I5255362cd6d2194600e149b118da4fbe102ffdb1
2020-09-11 17:24:25 +00:00
Radosław Piliszek c1d8b35661 Fix tox for api-ref
api-ref requires only doc requirements, not test.
Furthermore, some deps may not be installable due to lack of
binary deps in api-ref jobs, e.g. postgres [1].

[1] https://review.opendev.org/744343

Change-Id: Ie730a85ec2d05c3cdbab49da619f27982c14b9ce
Needed-By: https://review.opendev.org/744343
2020-09-11 17:24:05 +00:00
Ghanshyam Mann 233a61d1e0 [CI] Fix gate - multiple fixes (Focal/Py38 and policy)
Suppress of policy deprecation warnings. oslo.policy logs the
deprecated policy warnings while loading the
policy rules. Flag to suppress the warning was set after load_rule()
was called. We do not need to log warnings for unit test where
every test initializes the policy and logs a warning.

Also use yaml format of policy file in unit test to avoid
more warnings for json file.

Bump a few l-c for Py38 testing, squashing parts of
https://review.opendev.org/744343

Fix unit tests compatibility with Py38, squashing parts of
https://review.opendev.org/748874

Change-Id: Ia54d29975347392cbb93c07969d7e3b48eca5d23
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
2020-09-11 19:16:32 +02:00
Ghanshyam Mann 6812d8708e 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: Ie0dda286eda1d4c955839f10b598b15fb5d95f19
2020-05-12 19:28:44 -05:00
Andreas Jaeger 9350d8fb83 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 to work with current flake8.

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

Change-Id: I89695a03791c2de36ab015b3831c85887b27f3b8
2020-04-19 07:41:06 +02:00
tpatil d2635fd77b Fix the functional test devstack job
From last couple of months, the functional devstack job is broken.
Fixed the devstack job so that functional tests can run on multi-node
setup.

Note: Need to install SQLAlchemy-Utils explicitly as taskflow library
installs it using extra_requires which somehow is not working on the
devstack CI job setup.

Change-Id: I224b4a5615525862f73ced8ab9f5f396cb00ef0f
2020-04-17 04:46:54 +00:00
Sean McGinnis 75388fdd27
Fix constraints URL enforcement for lower-constraints
Due to the upper-constraints argument being hard coded in the
install_command, even jobs like lower-constraints will end up getting
the latest upper-constraints installed.

The correct way to handle the constraints is to separate it out into
deps. This allows the l-c job to properly set what constraints to use.

Also fixes constraints URL to the preferred static path.

Change-Id: I92b6ee8ea5afdb16367a5b6d939e65e2fa48190d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-12-16 11:24:10 -06:00
Sean McGinnis 0e100304a7
Switch from oslosphinx to openstackdocstheme
The oslosphinx package is not compatible with the current Sphinx 2.0
release. Migration has been happening to openstackdocstheme for some
time. To fix build failures for docs and releasenotes jobs, this
switches masakari jobs to use openstackdocstheme.

Uncapping jsonschema to pass requirements check so it matches global
requirements.

Change-Id: Ic74e8b075aa67d410617dac3346bf1c903995da7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-10 09:07:04 -05:00
shilpa.devharakar 7321ee32fd Add progress details for recovery workflows
This patch uses taskflow's persistence feature to store recovery
workflows details into database.

Added a new microversion to return progress_details of the
notification in `GET /notifications/<notification_uuid>` API.

APIImpact:
GET /notifications/<notification_uuid> API includes details
of recovery workflow

Change-Id: I93c1b7d88823e02d9a02855cabb8b22c9e40a7d5
Implements: bp progress-details-recovery-workflows
2019-03-08 10:52:51 +05:30
tpatil d471b824ea Update hacking version >1.1.0
Updated hacking version to >1.1.0 and <1.2.0.

Change-Id: I77ff4723fd420fc2f9afe0ca6c3d85d7ae1a28ba
2019-02-18 18:29:45 +09:00
Vu Cong Tuan b0785c6630 Remove testrepository
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

[1] https://review.openstack.org/578515

Change-Id: I79855f50754d0e33d779c0762220019cb8649ba3
2018-07-11 18:21:09 +07:00
Chuck Short 56e733f784 Switch to using stestr
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.

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

Change-Id: Ifb64df81f7684d5bf732afcbe594a38691a7286f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-03 12:02:08 -04:00
OpenStack Proposal Bot 11d4337c18 Updated from global requirements
Change-Id: I84daad538a5eea78a087cf760b88ff858fc2b68a
2018-03-23 20:25:03 +00:00
OpenStack Proposal Bot 38937a46f1 Updated from global requirements
Change-Id: Ia3bd9abe422c6ea83d295e992601e28a4801a438
2018-02-01 07:13:52 +00:00
Zuul 750029757b Merge "Masakari API Specifications" 2017-12-12 02:30:51 +00:00
OpenStack Proposal Bot c75a4d5bf4 Updated from global requirements
Change-Id: Idfaf27e09059eeefeafa6420cca067535e140909
2017-12-10 07:12:41 +00:00
Abhishek Kekane f5e074c9e4 Masakari API Specifications
Added api specifications for versions, segments, hosts and
notifications as per OpenStack standards.

Change-Id: Iefc83254e22fc31d1f0d13f52e71d42c63e82b7d
2017-11-27 05:29:45 +00:00
OpenStack Proposal Bot d6578d572e Updated from global requirements
Change-Id: Ibc65156c494b2132dcad2feff0fc2ec9e0634e7d
I1f879d0595b991ca6c06593bc33dc67689941155
2017-11-14 16:45:13 +09:00
Dinesh Bhor d4f982449e Use os-testr instead of testr
Masakari should use ostestr instead of testr. ostestr is more
powerful and provide much prettier output than testr. Other
projects like cinder, nova, glance, neutron etc already uses
the ostestr wrapper.

Using ostestr shows each tests execution separately because of
which it has shown errors related to "KeyError" in existing test
cases. The error looks like below:

"Exception in string format operation: KeyError: u'id'"

This happens if we don't pass keyword argument like "id" to
exception which we expect to be raised from test through
side_effect [1]. This doesn't lead to test failure but it
appears in test logs. This patch fixes such issues by passing
expected keyword arguments to exceptions.

[1] https://github.com/openstack/masakari/blob/master/masakari/tests/unit/api/openstack/ha/test_hosts.py#L364
Change-Id: I91603ea3dcf35fd20a00dcf477b93d612edca362
2017-07-05 17:37:52 +05:30
OpenStack Proposal Bot bf4d82bf99 Updated from global requirements
Change-Id: Ib61928aa9845060cc5c01960093d80051df547d8
2017-06-20 11:45:10 +00:00
hussainchachuliya 72e6d5596b Use DDT to reduce test code duplication
DDT can ease up error tracing and auto generates tests on
basis of different input data.
Reduce test code data by using DDT for segments, hosts, and
notifications.

Co-author: Dinesh Bhor <dinesh.bhor@nttdata.com>
Change-Id: Ie3ce3316c6e2fc3f98df3a51db59ca7f1f1625b8
2017-04-19 16:27:44 +05:30
OpenStack Proposal Bot 2007372aed Updated from global requirements
Change-Id: Icdc1a4cc8339af37a91e3eb7fc943c2c0a4be0a1
2017-04-02 01:04:58 +00:00
Yukinori Sagara a9e77d5404 Add license information in test-requirements.txt
In test-requirements.txt, some packages don't have license information.

This change add those information based on the following PyPI
information [1][2][3][4][5].

[1] https://pypi.python.org/pypi/coverage
[2] https://pypi.python.org/pypi/python-subunit
[3] https://pypi.python.org/pypi/Sphinx
[4] https://pypi.python.org/pypi/testrepository
[5] https://pypi.python.org/pypi/testtools

TrivialFix

Change-Id: Ic76225311350eb72ef51302b9731600058cbeefb
2017-03-05 13:25:08 +09:00
dineshbhor cc44a33f3d Update to a newer hacking library
The older hacking library has a cap on pbr <2.0, with the recent 2.0.0
release of PBR it's causing failures in the pep8 job. hacking isn't
kept in sync via the typical proposal-bot updates. Do it manually to
clear the gate issue.

Please see gate logs for reference:
http://logs.openstack.org/31/406931/1/check/gate-masakari-pep8-ubuntu-xenial/1e8b199/console.html

Related-Bug: #1668848
Change-Id: I5fd77ca87266034c42dae59fd28ede7f6b9dd382
2017-03-02 15:49:26 +05:30
avnish 53c1660166 Update to match latest global-requirements
Update requirements to the levels defined in OpenStack
global-requirements on 2016-1-10.

Change-Id: I1a33c62ba2b329e30d197906ce24c77a72d2fff4
2017-01-19 14:48:15 +05:30
hussainchachuliya 5e6e0c49be Add database related test cases
Added unit tests for migration scripts and host, failover_segment
and notification db api's.

Change-Id: Ifa0a421d0a708d90bf25726803a38cb432466fab
2016-12-09 18:30:55 +05:30
Dinesh Bhor 4eb1df2ec6 Add testing for WSGI Framework
Added unit test cases for the merged WSGI framework patch.

WSGI framework:
https://review.openstack.org/#/c/340752/

Change-Id: I213aa07e19f1a35a7b758711aa15677000c7f0f6
2016-08-26 14:07:20 +05:30
sampathP b59503d7aa Initial Cookiecutter Commit.
Change-Id: I42dea4c1d43a041cfd948703355ce7456c8850e1
2016-06-28 13:28:27 +09:00