Commit Graph

6 Commits

Author SHA1 Message Date
Corey Bryant 0b7d041279 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I577fff942606ded9885e9ba6f29040ba3fc7fb27
2022-08-26 18:40:45 +00:00
Hervé Beraud 1de27bc18f 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: I1d7de2bd4d704ffc331fdeacea725e903890f296
2021-12-15 11:38:28 +00:00
ShangXiao aea868e7da Switch to Ussuri jobs
Change-Id: If4b3302cb3e63a2540b96720361245a9c32d8d8d
2019-12-03 17:05:01 +08:00
Corey Bryant 8737386f34 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: I35a710ef22d2b1185179f0679a1e18c530da49b9
Story: #2005924
Task: #34228
2019-07-30 10:17:25 -04:00
George Kraft d42a530675 Add core snap resource, fix vault snap resource
Change-Id: I39a842dfe33f02a46337338c9161e958764a7926
2019-05-10 15:38:23 -05:00
Paul Goins def798490c 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: I42a5f115cce800e08afa68a43467fc323ce9c853
2019-03-01 14:44:08 +01:00