Commit Graph

20 Commits

Author SHA1 Message Date
Corey Bryant f7fb2c3693 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: I78b0720e75891a41364ba0ddb82add89c3b77ca1
2022-08-26 18:40:28 +00:00
Alex Kavanagh 0ff8707cba 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: I17cb0cfe88be075d79d94edcdd2cea845bf78b8f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-17 12:30:04 -05:00
Hervé Beraud 7cd8f7c31a 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.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I33cd69aca44f48af2766c92ede46ff12367160c5
2021-12-15 10:02:04 +00:00
Corey Bryant 05da8ca6ae 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
* charms.ceph sync

Change-Id: I2dda45edafeee8173a9fcb174f3dc18718d664e3
2021-11-18 09:39:34 -05:00
Aurelien Lourot e05668674c 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: Ie7f197c3d3ce821a2272844029d071dc5a715de4
2021-07-22 14:52:34 +02:00
Alex Kavanagh e21e0dc4ea 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: I191a4ac0c66f2e5d36cc941d5eb2809408a89320
2021-05-03 16:03:06 +01:00
Alex Kavanagh 7c01180ba8 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: I493cb80145fe91163d011bc78f30e84f317142de
2021-04-03 20:30:36 -07:00
Alex Kavanagh 7697199615 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: I73cdbc4f9a444cb3bc5e9daa4d1cc038b5ed26c5
2021-01-14 11:11:30 +00:00
Aurelien Lourot 500d942ed6 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: I12b3c45b45e0b1d6db16902c81663cbe2ef84d17
2020-12-11 13:54:29 +01:00
Alex Kavanagh 5e80697a56 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: I512ef8bbb52c08e782c66450b435a40a76b8a532
2020-09-28 13:51:24 +01:00
Ryan Beisner 63c0ebbcd7 Sync charm/ceph helpers, tox, and requirements
Also clean up pre-existing pep8 violations in the
files/* dir which was previously not covered by lint testing.

Also clean-up mocking issues around apt-pkg replacements in the
unit tests.

Also fix py35 issue with enabled_manager_modules() function in the
charmhelpers library (see
https://github.com/juju/charm-helpers/pull/387).

Also fix the functional tests bundles so they actually test the
version of OpenStack that the bundle indicates.

Change-Id: I2c8d84fadc11311c622dd308c4694496872dc157
2019-10-14 18:23:31 +01:00
Liam Young 18254cf81f Fix zaza source
The charm was incorrectly pulling in an old branch of zaza, this
change points it back at master.

Change-Id: I2a98f843c54f883782e4911412b45185996ce038
2019-09-24 07:11:21 +00:00
Ramon Grullon 8e08a9c22a Migrate charm-ceph-proxy testing to Zaza
Change-Id: If9e79b22a919997961a23929435450af0883b882
Closes-Bug: #1828424
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/5
2019-05-28 13:42:30 +00:00
Pete Vander Giessen b53207d2fd Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I238730d47f05ec18cc1efd7ab20b88a8c29a2858
2019-03-07 17:10:33 -05:00
Ryan Beisner 9f40a59d14 Update requirements
Change-Id: If2ac287dcf43a85531320e5e91970375aae94885
2018-10-03 16:26:42 -05:00
David Ames 435b3a186b Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I1f161137ef00fe835bce8944285341713c2eadfa
2017-05-01 08:42:37 -07:00
Ryan Beisner 5384e2fa27 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.

Manually fix up test names, Makefile and other legacy
artifacts remaining from basic ceph-proxy on an old copy
of ceph-mon.

Change-Id: I54eb35d0e449f203237bdc9f065551a1fbc887a0
2016-09-09 19:21:57 +00:00
James Page 5904a7aa04 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: I29210e210b90aa81bf6ee9a020bd6de656750a77
2016-03-23 09:30:16 +00:00
James Page 23c54210bb Resync tox integration 2015-10-30 15:04:43 +09:00
James Page 89398bd217 Make things alot simpler 2015-10-30 12:30:49 +09:00