Commit Graph

40 Commits

Author SHA1 Message Date
Edward Hope-Morley 8c9f68e8aa Fix typo in configure ttl code
Also fixes tox.ini

Change-Id: Ic4c2d34ff248d5429eb604824e42dbaba6ca2678
Closes-Bug: #1939681
2023-04-11 12:14:53 +01:00
Liam Young 0ef5451292 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I31af9a4c1ea8beba1e5ad4311a80002c1174beed
2023-01-16 15:38:41 +00:00
Alex Kavanagh 09ade6b5ee Fix up the tox.ini to work with tox 4
* unpin the requires for pip, virtualenv and setuptools
* remove the pip.sh installer file.
* split the passenv to to have a var on each line (overcomes new ','
  requirement).
* switch charm-tools to 2.8.4 to remove ruamel requirement that doesn't
  work on Python 3.10

Change-Id: I44849aac8ead5e3e660ccd9d1305cc991461d02d
2023-01-04 11:34:35 +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
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
Alex Kavanagh b0b51cc6ea Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I3cb1f519e8f1d6765b41751994633be73e5bdea5
2022-02-15 17:06:59 +00:00
Corey Bryant 9e648f9b5d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: If003131e8a1bde58d90b1a3b1e47801bbb044335
2021-11-17 15:15:35 -05:00
Alex Kavanagh bfcc4693b9 Add xena bundles
- add non-voting focal-xena bundle (unused in gate)
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ic552eff1daa9739ad7fd46af4f7c143f0c9062ea
2021-09-27 20:08:29 +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
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
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
Zuul 43fe7f44d7 Merge "Enable focal ussuri with functional tests" 2020-04-17 15:05:38 +00:00
Alex Kavanagh 6a16f8a667 Enable focal ussuri with functional tests
The patchset adds ussuri to bionic and focal-ussuri tests.  This depends
on the linked patch below that adds initial focal support to the charm.

Depends-On: Ia239b7c2f0ed2383e220cf0fa4ade443149a3b32
Change-Id: Ib65896cd433a2108a154e18cae6f0089b5e3f44a
2020-04-02 14:38:41 +01:00
Aurelien Lourot e6338552ec Remove Amulet leftovers
Change-Id: I6fd6d7b6aab2ac162435f156e5cf358069cb96f2
Closes-Bug: #1828424
2020-04-01 14:01:03 +02:00
Alex Kavanagh 5f6b1830d0 Pre-focal-enablement for rabbitmq-server charm
This patch updates the rabbitmq charm to work on focal as part of other
test bundles, but does not update the charm for testing on focal. Hence
focal/ussuri bundles are not added and the metadata.yaml does NOT
include focal in this patchset.

A further patchset will be submitted that adds the focal testing to the
charm.  In particular, this patchset is required for the cinder focal
enablement.

Change-Id: Ia239b7c2f0ed2383e220cf0fa4ade443149a3b32
2020-03-24 18:12:08 +00: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 d07161c9a9
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1bd9db2cefcdefc6e04d0740967696552465d00f
2019-09-30 22:42:00 -05: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
Zuul 7992ed9758 Merge "Add Python 3 Train unit tests" 2019-08-13 17:59:56 +00: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
Chris MacNaughton 3d70d98bca Sync charm-helpers
Change-Id: I6ca0506f02cc399f983510313c2d0a712efd0ef7
2019-07-16 07:06:03 +00: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
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
Alex Kavanagh f30b4ac0c6 Fix incorrect syntax in scripts/check_rabbitmq.py
* This fixes the incorrect syntax in the scripts/check_rabbitmq.py
  file.  Unfortunately, there are no tests for these files.  To
  help with QA, added the 'scripts' directory to the pep8 test to
  validate that they are correct python syntax for future changes.

* Updated .gitigore to exclude __pycache__ directories for py3 and
  removed the __pycache__ directory files from the repo.

Change-Id: I406a70c3d04eb730e1c59189a83cc57495186105
Closes-Bug: #1804126
2018-11-20 08:38:51 +00:00
Doug Hellmann fb63798f0a fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I8a1fbe1cc6fd18856d729ffc49d6d4018edb8b09
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:24:58 +00:00
Alex Kavanagh 79a1ea26d6 Change charm to py3
The tests are still py2; they'll need an update to zaza at some point.

Change-Id: I2c4b1ba0212f96cf4a725c80d87b8b2bfed2186f
2018-10-24 14:50:35 +01:00
Vu Cong Tuan cf765c75b5 Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: Ie08a59019a8f1862ffd0b85f07168dd4dd28b943
2018-06-27 11:26:18 +07:00
David Ames e6ac62e5a0 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ic4b65961f31e89f0912c30128971f85df95d395f
2018-05-09 09:34:48 -07:00
Ryan Beisner 85904f1a08 Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: I41941cf3a7656c02e858d3814760fc174b826c37
2018-04-03 16:30:16 +00:00
Ryan Beisner 33e0d1d74b Sync charm-helpers
Change-Id: Ib71ddbcc39e32700bfb6b7b39bda03e2da42ef8f
2018-02-21 14:10:42 -06:00
Andrew McLeod 74d4a5cf53 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I7bf6e392d40280e13f2e4b88b64da54104bc013a
2017-11-16 15:37:26 +13: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
David Ames 8de2bae310 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve amulet test failures.
- Tweak functional tests for ocata changes.

Change-Id: I87e1759deba6877373c48a49e676e5b1766611d2
2017-03-22 10:25:55 +00:00
Ryan Beisner 5dee299c55 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Fix Amulet test connection check and resync charm-helpers
to pull in rabbitmq-server amulet test helper update.

Add osplatform to charm-helper sync yaml to meet new
import requirements in the c-h core and fetch modules.

Disable precise tests until removal of precise nrpe charm
is resolved in the charm-store.

Disable SSL tests for <= trusty targets from xenial hosts.

Related-Bug: 1625044

Change-Id: I7d9308d222928e64a1a34b1b209d9bfd25738446
2016-09-19 09:33:20 +01: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 d2004f5702 Add missing files 2016-02-16 07:52:08 +00:00