* 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
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
* 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
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
* 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
* 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
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
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
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
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
* 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
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>
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
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes
Change-Id: I28ca1d46eb48ac92fa2efb0b58ae1381b7a1217d
- 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
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
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
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