Commit Graph

11 Commits

Author SHA1 Message Date
Hervé Beraud 5fe099ee30 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: Id1cb42a412de130a85ec48695ecdbbadc9df7a6c
2021-12-15 09:56:41 +00:00
Alex Kavanagh 06031deac8 Migrate unit tests from testr to stestr
Change-Id: Ia113b6cc410f4140f7b49a0afe9b3520b7b58143
2021-02-10 12:41:01 +00:00
Alex Kavanagh 91c271b120 Add package information to the dashboard-plugin relation
Add 'conflicting-packages' and 'install-packages' keys to the
relation so that a plugin can notify the openstack-dashboard charm that
it needs packages installed and what original packages will conflict
with them.

Change-Id: I962ec558b8dd1f765c6104d5ae61edd41c03affe
Related-Bug: #1853851
2020-01-27 18:21:12 +00:00
inspurericzhang bb8a1ae343 Switch to Ussuri jobs
Change-Id: Ia84b60903b6c517faadddb99402ee8359d6af17b
2019-10-31 17:49:35 +08:00
Camille Rodriguez 544ea1f865 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: If749a61d82836d214eda97c5172b7677e76365d9
2019-08-27 08:48:47 -04:00
Corey Bryant bd1c14eb39 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: Ibc2def246bf2a96213b0e1429e4d97a5eb0f4406
Story: #2005924
Task: #34228
2019-07-30 10:19:54 -04:00
OpenDev Sysadmins 1a437a37eb 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 3dd814ef13 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: I78170741219749d8bfb5eb7eb247877814fb9824
2019-03-01 14:40:08 +01:00
Frode Nordahl 15a4e6c8ee
Add 'connected' state to please charms_openstack state check
Change-Id: Ia821c381853202ddda6c5ed9e5f17414a8899174
2018-11-18 00:23:53 +01:00
Frode Nordahl ebdb590db7 Add repo config
Change-Id: I9bfa2c568abef147ffee113d933fadb448f305a1
2018-11-14 15:41:14 +01:00
Frode Nordahl 2a1d5d445e
Add ``dashboard-plugin`` interface code and unit tests 2018-11-06 10:53:09 +01:00