Commit Graph

8 Commits

Author SHA1 Message Date
Chris MacNaughton aa2ec8c861 Add support for interim Ubuntu releases
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include lunar
- update snapcraft to allow run-on for lunar

Change-Id: I16b9d724930eacca42b9410c73931caceca8cca8
2023-03-17 10:29:20 -04:00
Chris MacNaughton 88ecd7f6ec Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- ensure that the source is yoga

Change-Id: Ibb93704c6d66f522cf112ad115b3a294d7a1eb03
2022-03-30 17:03:00 +02:00
Hervé Beraud 4cbac58ba1 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: Ib658c7f61fe4aceafc1919e366d24ce81ec1dd63
2021-12-15 09:39:12 +00:00
James Page 5c084ba5da Switch to using openstack-python3-charm-jobs
Change-Id: Ibc09bc7951babe0bc18d1c377242b0dbdf32ab89
Depends-On: Ib9ed240aef6680be7c972088ca5337b5740b9c36
2020-07-13 08:31:31 +01:00
ShangXiao 5d92b4cb45 Switch to Ussuri jobs
Change-Id: I4bd9718c93d317fdc80651086fdff7476d8eb9c4
2019-12-26 18:21:13 +08:00
Corey Bryant d9704a3397 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: Id0e49e062f3a84841e2f115866aff31ab7fb0a09
Story: #2005924
Task: #34228
2019-07-30 10:16:34 -04:00
Paul Goins f5af15c87c 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: I8cc9dbd7b77a69155a4b9c4fdb373accb0d92e69
2019-03-01 11:10:02 +01:00
Doug Hellmann bcc7a2659a import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ide35150cd3575c4053445c8bcd4f67e44ae5dbd7
Story: #2002586
Task: #24317
2018-09-11 13:07:20 -04:00