Commit Graph

38 Commits

Author SHA1 Message Date
Alex Kavanagh 28bb2047f2 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: Icff1cd3f9176ffeacc2b96338662d08b51d8553b
2024-02-24 19:58:12 +00:00
Corey Bryant 545dfc167a Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I940bf81b4dfaa57df6bf194d40d8a28b01aeb7e5
2023-03-07 21:49:27 +00:00
Liam Young da0f33c95b Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: If35466d52fe4f3301699a29ba14bc10d58adb345
2023-01-18 12:57:20 +00:00
Corey Bryant db60b2c03d 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
Depends-On: https://review.opendev.org/c/openstack/charm-swift-proxy/+/847513
2022-09-26 21:08:53 +00:00
Alex Kavanagh c40f1d531b Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- charmhelpers sync

Change-Id: Ie37826e7803659f2f40eaac5f8d539cce5ef145b
2022-04-07 12:31:59 +01:00
Alex Kavanagh 26e45baa26 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: I3559219e8d723dcf23fe107e7585b6f005053224
2022-02-17 12:11:47 -05:00
Corey Bryant 3b62cfde31 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
* add focal-ussuri-gr bundles

Change-Id: I9b34612cbdbbafa5eff8ab3df9e41a97b481c7e2
2021-11-19 07:59:54 -05:00
Alex Kavanagh 44d15b3fe2 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ie59e35b3c4c9b80ac3579717f54db7017a0efff3
2021-09-29 21:04:42 +00:00
Aurelien Lourot 2adc1dcdef 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

Also remove unused applications from bundles for focal-ussuri+ as zaza
is now more aggressive at checking for applications that have no units
during deployment.

Change-Id: Ia16e1d4dc68783577858815c86ae0cb2ffcc9134
2021-07-27 10:17:10 +01:00
Aurelien Lourot 1e287bdd51 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: If5dcba453316a8d67fe4287288b928008005e1e9
2020-12-11 14:04:54 +01:00
Alex Kavanagh 494908cee7 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: I28bc6125b817c2f1608157509c27d54dab9541a5
2020-09-27 19:20:00 +01:00
Aurelien Lourot 5601e7181d Sync helpers for 20.05
Change-Id: I162ac637ed9c0143da82cb6ab4d96e5a4c43e3d0
2020-05-18 14:50:38 +02:00
Liam Young 9a67dc3d2d Switch tests to zaza
Change-Id: I1fe800a6805b572cbac18efff92165fd82c03223
2019-11-04 10:27:36 +00:00
Corey Bryant e2b4b064d5 Enable functional tests for train
This patch also updates the smoke test to run train.

Depends-On: https://review.opendev.org/#/c/680227
Change-Id: Ibdcda179528f6fb807289bd8ee8e644844f99dd6
2019-10-18 21:24:50 +00:00
Corey Bryant fb6e21b51f py3: Switch packages to Python 3 for train and later
Switch package install to Python 3 for OpenStack Train and later.

When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

This patch also includes the following related changes:
  * Use the common files package, swift, rather than python-swift
    when using a package name to determine release.

Also add OS_* to tox.ini to allow functional tests to execute.

Change-Id: I121af845bf11c22052479a497b196a4670021256
2019-10-14 08:29:59 +00:00
Ryan Beisner 2fc678dcee
Sync charm/ceph helpers, tox, and requirements
Change-Id: I60b1c5949a0e03e1effd4fb2d229a2c7b13fb656
2019-09-30 22:42:05 -05:00
Zuul 0e981f9eb8 Merge "Add Python 3 Train unit tests" 2019-08-13 18:14:16 +00:00
Corey Bryant 4385355b69 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: Ie6cde45d7f45d9b72d38227fc4db69d19a467446
Story: #2005924
Task: #34228
2019-07-30 10:18:23 -04:00
Chris MacNaughton e62a646a4f Sync charm-helpers
Change-Id: I2bc8e741519b9ebbeacc790d19db8f8eea903781
2019-07-16 07:06:03 +00:00
Pete Vander Giessen df39cd66d7 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Iaa340623e414929cfa10897972bdb40d8bb39724
2019-03-07 17:13:16 -05:00
Paul Goins b7c4897438 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: I8f4885575187bedf580f3e1963382a18b197638b
2019-03-01 14:43:49 +01:00
Doug Hellmann 2adf0f13fe 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: Iaf7fb5beb77f47056255c2a7a46dc927060e2c7c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:18:10 +00:00
Alex Kavanagh fc81200315 Upgrade the charm to py3 runtime
Change-Id: I98f4e6664080407a045ca5e76db59d46ffa9c38a
2018-10-24 14:57:05 +01:00
Zuul b03a8bc5bd Merge "Add support for block device encryption" 2018-05-15 09:56:23 +00:00
David Ames d68abf602d Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I19463ee5e0f555a2a5dda792e6148848b4c7c5f2
2018-05-09 09:34:59 -07:00
James Page 591c084532 Add support for block device encryption
Add new secrets-storage relation to vault, supporting the
use of block device encryption using dm-crypt/vaultlocker.

Prepared devices are now recorded in the local unit kv
store; this information is used to provide a list of
configured block devices to the swift-proxy charm,
rather than the previous best guess provided by
determine_block_devices.  This allows us to use the
dm-crypt device name, rather than the underlying
block device.

Encrypted block devices are unlocked on boot using
vaultlocker-decrypt systemd units (enabled by vaultlocker);
/etc/fstab entries for such devices make use of a
x-systemd.requires option to ensure that the block device
is unlocked prior to attempting to mount it.

Add new storage binding to allow charm to be used with
Juju storage.

Add new ephemeral-unmount configuration option to allow
cloud ephemeral storage to be used for testing purposes;
update functional testing to use this option.  The behaviour
of 'overwrite' was changed to accomodate the use of
encrypted block devices.

Change-Id: I9b3f8cd2de412ee96e0139dba4d4abdf998ecaf2
2018-05-08 12:52:37 +01:00
Ryan Beisner 1b4c69a065 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: Ic64fd362d8f69489e5389491235520a6d7905a68
2018-04-03 16:30:35 +00:00
Ryan Beisner 9baae6cb89 Sync charm-helpers
Change-Id: If9e905d409966034c6fa474bf7368747c2935f88
2018-02-22 09:40:46 +00:00
Andrew McLeod 1c47c4ec9c Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I27dde93ccd2cfadcfe05ad841abba777d11d7318
2017-11-16 11:32:58 +13:00
David Ames c8b14d75a6 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: If77915a305d130a2ecd06c667c4717f916a90b28
2017-04-28 11:50:14 -07:00
Alex Kavanagh d8199f07bb Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: If253c8a18886630fcc7de4cfc2a91a15c2563eb5
Related-Bug: #1659575
2017-04-28 14:02:41 +01:00
Ryan Beisner d62b421f34 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.

Change-Id: I86ccacb6f265dc94eb16e78f6dc773ece48cac9d
2016-09-09 19:42:33 +00:00
Ryan Beisner da282cc770 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.

Change-Id: I3b2ba7f8b4c52d13fdfa357086ffb7f64b302a0f
2016-09-06 22:02:21 +00:00
James Page efcdbae940 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.

Change-Id: I038797ce2ac891567707e1b9c0697ba31ba3baed
2016-07-20 11:48:59 +01:00
James Page 64394fa309 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: Idcdfdbbf8e42b2fb2e3f9a4278a7cf1e3c71615b
2016-03-23 09:30:17 +00:00
James Page 599bebcfb3 Refactor tox a bit 2016-02-16 07:24:51 +00:00
Corey Bryant 9b178924d7 [james-pages,r=corey.bryant] Add tox support for lint and unit tests. 2015-11-03 17:08:12 +00:00
James Page f3bebc3fc4 Add tox support 2015-11-03 14:03:25 +00:00