Commit Graph

22 Commits

Author SHA1 Message Date
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 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 90fa306577 Fix yaml.safe_load() and allow py35 tests to complete
Change-Id: Id1aa21f4b6de67a6e03ced2352b45d1080e7760c
2021-10-14 17:37:59 +01: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
Alex Kavanagh 4990afb937 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: Id214883525ba3db9001f367cea3379ee3ffbd003
2021-05-03 16:11:08 +01:00
Alex Kavanagh 9e0b2b4fb0 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: I4e72dafd2ab198846cb376097dd8a2b7438dedd9
2021-04-03 20:34:29 +01:00
Alex Kavanagh e329b52252 Updates for testing period for 20.01 release
* 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: Ic9c930a58afa9e1e849e61581b9cca588cc48529
2021-01-12 15:44:24 +00: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
Alex Kavanagh 3e9333712d 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: I78d8fb9892d27ace680f3a2654ea5183845066e5
2020-07-27 20:59:50 +01:00
Hervé Beraud 3dd824c5b9 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.

Change-Id: Id4029239c345655ea7ffc90b5969b29b47a84955
2020-06-09 00:02:15 +02:00
Liam Young 9a67dc3d2d Switch tests to zaza
Change-Id: I1fe800a6805b572cbac18efff92165fd82c03223
2019-11-04 10:27:36 +00:00
Ryan Beisner 2fc678dcee
Sync charm/ceph helpers, tox, and requirements
Change-Id: I60b1c5949a0e03e1effd4fb2d229a2c7b13fb656
2019-09-30 22:42:05 -05: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
Ryan Beisner a42a34720e Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I7ab789c09e68bb9e097653e5ca66fce9d74fbeee
2018-10-03 13:12:06 -05: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
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
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 f3bebc3fc4 Add tox support 2015-11-03 14:03:25 +00:00