Commit Graph

6 Commits

Author SHA1 Message Date
elajkat 611c44c5c6 test: Make py310 passing
Remove test-setup.sh as with zuul it is not necessary, and would like to
use mysqladmin which is not available on some nodesets.
Fix failing unit tests with a possible typo and change auto_spec to
autospec in calling mock.patch.object.

Change-Id: Idd7b6788152a336314d5b99ae89f5049182a269c
2022-04-26 16:15:07 +00:00
elajkat dd49e36bab Switch to hacking 3.0.1 and to testing on focal
Make the code compatible with hacking rules:
* import order problems
* line break before/after binary operator (for this added ignore for
W504, line break after binary operator
* indentation problems

I removed the rule N530 (Direct neutron imports not allowed), as that is
a longer story.

Fix mysql syntax in tools/test-setup.sh
Fix constraints files for testing on focal

Change-Id: Iacb12d5add773404468e2b755cf95c4e6e54ec99
Depends-On: https://review.opendev.org/#/c/708965/
Depends-On: https://review.opendev.org/752416
2020-09-18 07:54:33 +00:00
sunqingliang6 73da3e4c56 modify grammer mistake
Change-Id: I40a997c57a1a645784e143bbb588717873e1ea47
2018-06-11 19:22:31 +08:00
Andreas Jaeger b762ecf9e5 Avoid tox-install.sh
Instead of using tox-install.sh, we can install horizon and neutron
now directly from pypi - or use the current branch in CI system using
tox-siblings.

Update tox.ini for this change and add neutron to requirements file.

This commit includes the following unrelated changes
to pass the gate.
----------------------------------------
devstack: Use setup_develop to install

As this project is in the global requirements now,
we need to edit the constraints.

Change-Id: I44e05b4e7b6f1c15314799c4a1e8c22f79abb74a
----------------------------------------
Update after rpc create_connection removal

Recently neutron.common.rpc.create_connection has been removed. [1]

[1] I2f4b24ba732be47fc9911be1e24406fb1ffe821e

Closes-Bug: #1770851
Change-Id: Ie83299b7a280dab0d5dc9dc3304b5d6091b4a0cc
----------------------------------------

Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
Change-Id: Ifffca6361b1c3991481442053bf182bde3c2d44a
2018-05-13 18:15:17 +09:00
Andreas Jaeger 24f24f8745 Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Needed-By: I141f3a470ccb299ab60f68ec9cef30069d4f2303
Change-Id: I93abcf684b5be97a733cba9c378af721f2c4f557
2017-02-08 21:09:09 +01:00
YAMAMOTO Takashi 97460ae286 Use tox_install convention
Copied from networking-midonet.

Closes-Bug: #1646436
Change-Id: Ic66367eb797bddd3b7e0ffd2a65c0a3f719507f1
2016-12-01 19:28:19 +09:00