Commit Graph

9 Commits

Author SHA1 Message Date
Hervé Beraud 232bf9bad4 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I5ed229b2c5abd08c464225ce17b571aecc642849
2021-12-15 09:55:40 +00:00
Alex Kavanagh 94897d4743 Fully migrate from testr to stestr for unit tests/coverage
Change-Id: Id734e99c9a24242b07d592adfd5a7f24a36b2b09
2021-02-10 11:38:31 +00:00
inspurericzhang 980f971e71 Switch to Ussuri jobs
Change-Id: I857dfa363553780d0cb5c29e136f08962a08f560
2019-10-31 17:58:29 +08:00
Camille Rodriguez 6bc01be80c Avoid pollution and false positives with tox.ini
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: Ife2c5b1e4bc3502b5bdb2f865c2cddbfcc4a554f
2019-08-27 09:05:29 -04:00
Corey Bryant 59da94a3f3 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I21ca21dcc4cc8f7377e8a23d480c0b4b3913e765
Story: #2005924
Task: #34228
2019-07-30 10:19:32 -04:00
OpenDev Sysadmins 44fd0826e0 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:36:12 +00:00
Paul Goins a1756bb209 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: Ia7a2f203013df9d82236818de3a48615c2892825
2019-03-01 14:40:36 +01:00
Frode Nordahl 28635fd193 Add repo config
Change-Id: Iffe2eea68e75586d6026f5fd1327a8ad0542203c
2018-11-14 15:43:09 +01:00
Frode Nordahl 9ad976d118
Add Neutron Load Balancer interface code and unit tests 2018-10-28 00:37:53 +02:00