Commit Graph

8 Commits

Author SHA1 Message Date
Chris MacNaughton 721df6ebf7 Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata
- Default source is yoga

Change-Id: I2aaa39d6f780c415db54b28eaf445732247d7d47
2022-04-13 16:17:03 +02:00
Hervé Beraud 0446879a1e 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: If34c7c237f705b7b78261ccd0fc4a1655663300a
2021-12-15 10:58:59 +00:00
inspurericzhang 3f8a194b6c Switch to Ussuri jobs
Change-Id: I0ee0de9048fae3e23aec52f896bf73b7c4f99102
2019-10-31 17:31:11 +08:00
Ryan Beisner ec4bdb67d5
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1be6d121b470729c150f060d4e970f58d28fc13d
2019-09-30 22:41:33 -05:00
Corey Bryant e8da8c3b6c 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 openstack-python35-jobs is added since this charm is supported
on Xenial.

Change-Id: Ie5a0ac7be4ecb95c109564368710c892f085a844
Story: #2005924
Task: #34228
2019-07-30 10:31:11 -04:00
Ghanshyam Mann c60affa980 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I940661f000d558539caf9264a9dab1e9f55307f7
2019-05-24 09:14:42 +00:00
Paul Goins 30c723e711 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: I0f85b328488743361b6070febef80008efab1358
2019-03-01 11:09:02 +01:00
Doug Hellmann 4c77d1e082 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: Id0fbfafd412f7428b84e620a9a0254db6dc4d1c6
Story: #2002586
Task: #24317
2018-09-11 13:06:56 -04:00