Commit Graph

10 Commits

Author SHA1 Message Date
Alex Kavanagh fe49d91046 Revert "Add Kinetic and Zed support"
This reverts commit c0beec6fa2.

Reason for revert: I think this should be reverted as it removes focal support from the rabbitmq-server master, and thus this won't cherry-pick cleanly to the stable/jammy channel for the 3.9 track.

Change-Id: Iebab77fcc0cee31af66980c2d3be334fffe06222
2022-08-31 11:42:29 +00:00
Corey Bryant c0beec6fa2 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: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
2022-08-26 18:40:43 +00:00
James Page b2136a150e 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

Change-Id: Ib9e5c7718ffaf28070fd9439f46453d7cf2333b5
2022-04-05 14:13:01 +01:00
Hervé Beraud ff45f3ae4b 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: I98f432a771b5f6c966328d30629410a0a180dbee
2021-12-15 11:54:45 +00:00
Martin Kalcok 7acad5fdaa NRPE: Allow excluding queues from queue-size checks
Option '-e <vhost>  <queue>' was added to the 'check_rabbitmq_queues.py'
nrpe script to allow excluding selected queues when checking queue
sizes. Corresponding option 'exclude_queues' was added to the
charm config.
By default, following queues are excluded:
 * event.sample
 * notifications_designate.info
 * notifications_designate.error
 * versioned_notifications.info
 * versioned_notifications.error

Closes-Bug: #1811433
Change-Id: I57e297bb4323a3ab98da020bfcb1630889aac6d7
2021-01-14 11:35:31 +01:00
ShangXiao 626f29a74f Switch to Ussuri jobs
Change-Id: Idc83578ad3f53715bd1076f94961845579d07466
2019-12-26 18:29:33 +08:00
Corey Bryant 601e6078fb 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: Icb35953f195fbeb58936e14d43d59cac79d0a85d
Story: #2005924
Task: #34228
2019-07-30 10:20:48 -04:00
Paul Goins bb953d9524 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: Iebf7091f3cf4df91e0f23eb39c3b7c317d1c0264
2019-03-01 14:43:28 +01:00
Frode Nordahl bca4f805e1
Make py3 gate job voting
Change-Id: I7199cfa658992362782552fe63d9bf0701f48a6f
2018-11-02 09:32:26 +01:00
Doug Hellmann 8d77d5aa23 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: Ibea41cfb046fa0aff72216b26a93dfbb78cf5644
Story: #2002586
Task: #24317
2018-09-11 13:19:41 -04:00