Commit Graph

14 Commits

Author SHA1 Message Date
Alex Kavanagh ea0721a6fa Migrate unit tests from testr to stestr
Change-Id: I5c0c74fc2e212144d4d98c8b230d9ce39f45fc64
2021-02-10 11:14:39 +00:00
Hervé Beraud ca95a73d6c 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: I547eb53c06106b5d328dba154fe5259278295d30
2020-06-09 17:45:41 +02:00
Ghanshyam Mann a56b09f79b [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I32d62e7721e8250c237cede6f284da3fe8367b33
2020-03-24 17:28:07 +00:00
inspurericzhang 9c2ac32428 Switch to Ussuri jobs
Change-Id: I2dd3decc71ca5fe8bf29330c0cadd8b5a148aae4
2019-10-31 18:03:05 +08:00
Camille Rodriguez fb519b0e80 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: I9092e15bdd9e1437767c7277d69249793db35484
2019-08-27 09:10:54 -04:00
Corey Bryant f499fe478d 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: I9092bd74106d5e133e9af1839b140ea256999d1f
Story: #2005924
Task: #34228
2019-07-30 10:16:30 -04:00
OpenDev Sysadmins 9b8f0adad2 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:49:01 +00:00
Paul Goins 874c08afde 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: Ibf0a0a4ad3e369f15011bce8f69466a8ee3cde7a
2019-03-01 14:40:44 +01:00
zhulingjie dd789af72d Change openstack-dev to openstack-discuss
Change-Id: I66a7752b709bbc2c1a89448f552b35719ca15cbc
2019-01-09 11:16:27 +01:00
Frode Nordahl 316f62ef4d
Fixup repoconfig
Also remove a previous unintended commit of compiled
binaries.

Change-Id: I3abde231eb8d66497717d4bef5ab65c1d27904f7
2019-01-09 11:16:09 +01:00
Liam Young edfff88fa1 Remove zuul config
To import the repo into openstack the zuul config seems to need to
be removed:

ERROR: Found .zuul.yaml on branch origin/master
  Remove any zuul config files before import.
2018-10-09 08:01:46 +00:00
Liam Young df915e1753 Add zuul config 2018-10-08 15:00:07 +00:00
Liam Young 7aff370e79 Add docstrings, unit tests etc 2018-07-26 12:45:29 +00:00
Liam Young 1be6b9b0d9 Initial commit 2018-06-26 09:49:21 +00:00