Commit Graph

8 Commits

Author SHA1 Message Date
Corey Bryant ff426e8ea3 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I05dd97424675cc31ef4e637c5d157c69d6906e54
2023-03-08 13:51:52 +00:00
Corey Bryant a68761b7ef 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: I2cb698f719106e54b06009f24ea47259419e9cad
Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/850215
2022-10-05 07:47:55 -04:00
Alex Kavanagh 75b0a960ab Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

Change-Id: I44232d2e3e98a759ff6a92cbf28e6cd68c2d10aa
2022-04-04 16:20:06 +01:00
Hervé Beraud 388f8c2f47 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: I661477f9d0bdbebc90041a3eaff4ea92ef8c2b12
2021-12-15 14:31:17 +00:00
xuanyandong 21907510a2 Switch to Ussuri jobs
Change-Id: I63ddf39922daa35a9b23f3a406640752bba88ade
2019-10-25 10:19:55 +08:00
Corey Bryant 321a5a2f76 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: Ic7d63d16cec69ffcbd8fa826007998d92385d16d
Story: #2005924
Task: #34228
2019-07-30 10:15:09 -04:00
Paul Goins b49d419f4a 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: I6e574ad480d3164b408cd14cf15a645c9663c0d8
2019-03-01 14:43:01 +01:00
Frode Nordahl 18aeee9a65 Add repo config
Change-Id: I95ec383ef262bfe41189544a19ef5f947e7ea774
Depends-On: 112b161c26
2018-11-17 23:56:16 +00:00