Commit Graph

31 Commits

Author SHA1 Message Date
James Page 6603a7f323 Retire master branch of nova-lxd
Drop content and replace with retirement notice.

Change-Id: I2de2eff7694d60597a6413a0a64124fbbede69bb
2019-07-23 13:56:57 +01:00
Alex Kavanagh c4c16bcf49 Fix bug in scenario/manager and cover it with pep8
manager.py had a syntax error which caused the module to be not
installable.  This wasn't picked up in testing.  This fixes the bug
and adds pep8 coverage to the nova_lxd_tempest_plugin so that the module
always remains installable.

Also, this fixes the tempest concurrency at 1.  See the related bugs.

Closes-bug: #1790956
Related-Bug: #1790943
Change-Id: Ie542b062a9f0997f6363877ff03f0f9bfc8f3d43
2018-09-05 20:16:02 +00:00
Zuul bc8d540c95 Merge "Switch to using stestr" 2018-07-26 14:23:19 +00:00
Chuck Short 8f65d1af8f 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: Ic4eae5a383616e93f154b99208817ca9f20548cc
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-24 20:12:07 -04:00
huang.zhiping a6da038b8c fix tox python3 overrides
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: I9f7df241e90aa2b82813a41f330e3890e08b5869
2018-06-09 18:42:00 +08:00
Doug Hellmann 2a17b6674d add lower-constraints job
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.

Also: fix up test due to changes in requirements/make it work with
Python 3.6

Change-Id: Iedb7fe7e5bbb8935a5a958a301ed3c5540005bbc
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-04 16:27:33 +01:00
James Page 6c66bd1f46 Tidy tox targets, fix coverage reporting
Misc fixes to bring tox targets back inline with general OpenStack
standards (py27 and py35 targets executed by default).

Deal with running 27 and 35 tests in succession.

This change also includes some fixes for coverage reporting; however
they are still currently broken due to mismatching module names
between nova-lxd and nova.virt.lxd.

Change-Id: If0079309a4c4b6b57fc6b5e6f0e947926b010f09
2017-06-26 12:55:58 +01:00
James Page 6f8a5711bb Switch nova and upper-constraints back to master branches.
Change-Id: If4d7d0a198c63ed1374a9273716f5a36ba3bef32
2017-03-16 11:19:22 +00:00
James Page f9522ee51b Update constraints to use stable/ocata
Also use stable/ocata branch for nova dependency.

Change-Id: I681b704da55648523d63b6e64b7cbf166958201a
2017-02-23 10:54:21 -05:00
Tony Breeds 4d5161dd2c Use constratints when installing requirements
Change-Id: I9cea14812c1beb1491ec20587e1cfdec199a564e
2016-11-08 15:18:17 +11:00
Paul Hummer af591d8482 Fix devstack plugin to be smarter about the work it does
Don't configure glance if glance isn't enabled (in my specific case,
multi-host nova compute node). Download the cirros image if it doesn't
already exist and download the Ubuntu image if tempest is used.
Don't have a file with a single function call that is used once.

Change-Id: Ie04db90e755776d025aab16795e2f91e94cf33c0
2016-11-02 20:20:59 +00:00
Michael Gugino 7162c21686 Re-add pylxd to requirements.txt
pylxd was removed from requirements.txt in
a previous commit:  f07d597e1e

The previous removal looks like it may have been unintentional.

This commit adds pylxd to requirements.txt

Change-Id: I3aa3579e0eece16b55754d126fdec86540760a40
2016-09-25 14:19:17 -04:00
Paul Hummer 6283816360 Narrow down the flake8 call
Some recent tempest additions seemed to be confusing my tox flake8
run. Upon investigating, I learned that we're running flake8 on much
more than the needed scope that we care about/have control over.

Change-Id: I4ac42b53fb2f9ab9286d82beb6a61042ef57c481
2016-09-21 14:24:16 -06:00
Paul Hummer 4581f377e7 No python 3.4 on xenial
A generic python 3 will suffice.
2016-05-12 11:09:43 -06:00
Chuck Short 2d3d37e0b7 Fix tox.ini
Fix tox.ini typo

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 14:26:02 -04:00
Chuck Short 7c4d949f6f Fid unit tests to build with py34
Update tox.ini to work with py34.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 13:30:10 -04:00
Chuck Short 88e7fdd568 Fix unit tests with py27
Fix building unit tests with py27.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-05-11 12:57:49 -04:00
Chuck Short 2e2cb6f526 Move test-requirements to tox.ini
It was preventing devstack from installing correctly.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-04-19 14:02:22 -04:00
Chuck Short 2b1bbc45a3 Fix failing pep8 and unit tests
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-02-08 10:20:52 -05:00
Chuck Short bd563b8c54 Fix coverage
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-01-19 20:30:51 -05:00
Chuck Short 2fc158e5e8 Fix coverage usage
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-01-19 12:33:18 -05:00
Chuck Short 9cbd98e10f Add H404 to tox.ini
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-12-08 11:38:43 -05:00
Chuck Short d95e35ab92 Ignore H405
It makes things for legible.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-12-08 11:35:06 -05:00
Paul Hummer 62076b717a Don't write pyc files when running tox. 2015-12-07 12:47:12 -07:00
Paul Hummer 424978ecf0 Fix a bug in the envlist for tox.
Python 3 tests must be run first.
2015-12-07 12:17:23 -07:00
Chuck Short eae4fe3b41 Fix LXDTestDriver
Fix LXDTestDriver unit tests.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-09-26 16:31:38 -04:00
Chuck Short b399015b3f Use os-testr
Use os-testr, its more user friendly compared to testr.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-09-23 09:43:14 -04:00
Chuck Short 2ce8b1898d Update test-requirements.
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-08-16 03:49:44 -04:00
Michał Sawicz aaa5ca3f46 Fix PEP8 errors 2015-07-06 12:16:29 +02:00
Chuck Short d1bf6e2e81 Add missing tox.ini
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-01-18 20:35:15 -05:00
Chuck Short ce54272ad4 Frist commit
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2015-01-09 11:33:42 -05:00