Update tox.ini to support the new TEST_CONSTRAINTS_FILE
Additionally pin netaddr in test-requirements.txt. The latest netaddr
1.2.1 release throws an error when passed None, which it previously
didn't. This causes MonContextTest.test_ctxt_missing_data to error out.
This should probably be fixed in charmhelpers later.
Change-Id: I5bf8900c426395421c73ec3d52ebd691cc5496f8
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include kinetic and lunar
- update snapcraft to allow run-on for kinetic and lunar
Change-Id: I05ce01c13efdd453c06e3c8d615d64bad6e27727
* 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: Ieb1ef7b7ab76775f5769621a6a7cbcfb18c40b7f
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: I56e04707036b994c52cc9cfcb19e6c37cd41309e
* 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: I13a2e11b53e290316919efca90aaa513a1f40975
We need to unpin flake8 to allow linting on Python 3.8 systems.
Sync charms.ceph.
Depends-On: Idf2fea27b19cec47ffed9891b518ac7b5b75e405
Change-Id: I91a2133b6d7dc7e59d62dd80779cdc6e77206a20
Drop amulet tests and create bundles for all target
Ubuntu/OpenStack series combinations inline with
current best practice.
Zaza tests are not a direct translation from the Amulet tests;
the new tests focus in Ceph RADOS Gateway and integration with
keystone rather than deploying compute, image and block
services (which do not make use of the ceph-radosgw charm).
Change-Id: I41914df024eb02e5a555bc0e44993e09d310933e
Update charm to execute hooks and actions under Python 3; this
includes dealing with upgrades (by switching the upgrade-charm
hook to be a bash script which installs the required charm runtime
dependencies).
This commit also drops code from ceph.py which was used across
other ceph charms in the past; only the functions required for this
charm have been retained.
Change-Id: I5e222d907bfa34ffacad16c51abd1278d7d82f56
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: I97f0eb421287a67964d4ada71c766113f334b89d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that
Change-Id: I151eb37008936358bd4108a2510c924c261dba8e
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: I0998532143995dd8ced64cdd5660f2d44cbbcbb9
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
Change-Id: Iacbb082b9db0cff48ddd595cc1eaa8440aa16892
Related-Bug: #1659575
- 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 resolving amulet full recheck failures.
Change-Id: I1864ee41be6815f9779669cab8ad8691bd78ffa5
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.
Change-Id: I23cfd47fcee90678b4ba818ddc1d9ace4edd54f3
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.
Rename amulet tests inline with gate-*, dev-* and dfs-*
naming standards.
Update README to refer to functional testing section of the charm
guide.
Change-Id: Id91a7281d98be3bb69d42257ea9213471bdefa69
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: I10271bfa64674a4789d1cc623a2a7250a154ec43