Commit Graph

25 Commits

Author SHA1 Message Date
Liam Young 0ef5451292 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I31af9a4c1ea8beba1e5ad4311a80002c1174beed
2023-01-16 15:38:41 +00:00
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
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
Alex Kavanagh af48cfe8ad Pin pyparsing for CI
Change-Id: I3ba18ba5e765993f61d892b6a2d34a74ba6d2d12
Note: this will be dropped when we change the CI runners.
2021-10-26 12:28:58 +01:00
Aurelien Lourot b13fbf761a Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Idbc1d8c3b1d12253c2bfc51bf4dfb0aa5b2b1538
2021-07-22 15:00:48 +02:00
Alex Kavanagh bb1146cba6 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I9fe87d8ab4d91bac8bb843e4582a3a38120bbcf4
2021-05-03 16:10:53 +01:00
Alex Kavanagh 19ee453fb7 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I7f026d08dd44990b121e195ac6817bf7825b71f1
2021-04-03 20:34:01 +01:00
Alex Kavanagh 3d006f6279 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: I32e88acb6bb0cd24aaad8dfa6af39e12e3d790f3
2021-01-15 16:34:48 +00:00
Aurelien Lourot 48b86fdb7a Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: Ied2955d993dd8db48992528059e4451ad4ed1d4c
2020-12-11 14:03:20 +01:00
Peter Sabaini 943f4f63ab Fix: nrpe queue check should check for freshness
Make the rabbitmq queue check also check if its input data file was
recently updated. This input data is created via cronjob; if that gets
stuck we might not actually be getting meaningful data.

The charm supports configuring the check interval via a full cron time
specification, so technically one could have that updated only once a
year even if this doesn't make much sense in a monitoring scenario.

Also fix a buglet in the nrpe update hook function: only deploy a
queue check if the cron job hasn't been deconfigured by setting it to
the empty string

Change-Id: I60141397f39e3b1b0274230db8d984934c98a08d
Closes-Bug: #1898523
2020-11-06 09:36:49 +01:00
Alex Kavanagh 407d952492 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I65a6b1a1e1170aebf00c240f48aa52658eefaa03
2020-09-27 19:30:27 +01:00
Alex Kavanagh 4bbb5a8cc0 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: Ib9324fe3e5829c172e853980fd599de9e97ca86c
2020-07-27 20:59:24 +01:00
David Ames 27b43f4bd6 Noop Flake8 update
Fix modern flake8 complaints with no functional changes.

Change-Id: I3eff9f9d8ee3952864ee0e78387b514c80c92bc4
2020-06-02 10:32:26 -07:00
Edin Sarajlic 466ab24557 Port Charm RabbitMQ func tests from Amulet to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/60

Change-Id: I876a90ce58c89e4a760dad88d5a2381d60171037
Closes-Bug: #1828424
2019-10-10 13:05:09 +11:00
Ryan Beisner 8cc2df51aa
Standardize auxiliary file location across os-charms
Change-Id: I644db5de7a5dc1f41d13f2aa13cc1fa5c00c8b83
Closes-Bug: #1843826
2019-09-12 15:50:58 -05:00
Pete Vander Giessen 8f99c28db5 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I2827028d843f9ba223bb32626c433f54a96f69ca
2019-03-07 17:13:04 -05:00
Ryan Beisner f4ed96ce54 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Iad38f8866195fde99121b40d54276b8de4397883
2018-10-03 13:11:49 -05:00
David Ames cd862f8b09 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I28ca1d46eb48ac92fa2efb0b58ae1381b7a1217d
2017-04-28 08:44:03 -07:00
James Page df8742dc74 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-* and dfs-* naming standards.

Update README to refer to functional testing section of the charm
guide.

Drop deprecated tests as no longer used in any automated way.

Change-Id: I5fbfb7484ae2fdc5ed10e5a992cedc94df071ee4
2016-07-21 17:58:15 +00:00
James Page 9cfdfac2b0 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I7cb58139e6cad26b855d0c0de7096d2a2fd05081
2016-03-23 09:30:17 +00:00
James Page 221f1c80f2 Refactor to use tox instead of managing venvs directly 2016-02-16 07:51:51 +00:00
James Page dd1bf26402 Run flake8 from venv as well 2015-01-23 09:01:50 +00:00
Felipe Reyes af862ae1a2 test-requirements.txt: add mock 2015-01-19 15:32:29 -03:00
Felipe Reyes 13c0356a79 Create virtualenv to run unit tests 2015-01-19 15:02:29 -03:00