Commit Graph

14 Commits

Author SHA1 Message Date
Zuul 901c9b9d7d Merge "Use unittest.mock instead of mock" 2021-12-15 09:35:05 +00:00
Alex Kavanagh 2c22d0194d Fully migrate unit tests from testr to stestr
Change-Id: I123134a19b3a6aca7c3574e39b319eeebe163a6a
2021-02-10 11:07:50 +00:00
Hervé Beraud 714ef09e17 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: Ic1a687f95e5fd16ffa7f63102d6f8f2de383780e
2020-06-09 17:47:50 +02:00
inspurericzhang 7896d6766f Switch to Ussuri jobs
Change-Id: I22a7d488efb8dba8bfe837464a3bca9934f624de
2019-10-31 18:09:13 +08:00
Camille Rodriguez d3d612c7da 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: Ia9fe2170634183f10a70016d809742a36d1f15ff
2019-08-27 09:19:02 -04:00
Corey Bryant 677529348d 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: I479e0a82505b5dd3870239b67cea3356175a43ae
Story: #2005924
Task: #34228
2019-07-30 10:16:52 -04:00
OpenDev Sysadmins 1655a2c9ee 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:42:00 +00:00
Paul Goins 6fcd1ce820 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: Id408922ad90c9accd800691510f0b01ff56b9573
2019-03-01 14:40:53 +01:00
zhulingjie a8e52b1d08 Change openstack-dev to openstack-discuss
Change-Id: I9a99d0611364d09bd05bb9f42931ab3966b6b639
Closes-Bug: #1811179
2019-01-10 10:39:39 +08:00
Frode Nordahl 323c1c3b14
Fixup repo config
Change-Id: I91d545198a8570d7cacf06576c71f18b06c14df4
2019-01-09 07:53:26 +01:00
Liam Young 606c17de4b More RWADME updates 2016-08-31 11:05:30 +00:00
Liam Young bf401a2a27 Update README 2016-08-31 11:00:53 +00:00
Liam Young f3ae147a7d Switch to service-control 2016-08-31 10:42:05 +00:00
Liam Young bfd4279546 Initial commit 2016-08-31 07:25:48 +00:00