Commit Graph

14 Commits

Author SHA1 Message Date
Corey Bryant d2e6c1fcad 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: I0776bad299d133b61dc8e2941c40eeb572f5af78
2022-08-31 20:08:18 +01:00
Alex Kavanagh b688766a50 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: If7fb628e65be3398e7ecb808d564b585fd41fb82
2022-02-01 20:11:21 +00:00
Hervé Beraud f721b78c22 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: I107cabe4608950da02ef2b89e811791ad912cf7e
2021-12-15 09:47:59 +00:00
Corey Bryant 58fa3cf59d 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

Change-Id: I749b089783627ccbca648c65649cb22e9f471b05
2021-11-17 13:50:57 -05:00
Aurelien Lourot 15f85f4ec4 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: I6cc20b2ff83886a8878ba0a2972999e5a7b51412
2021-07-22 14:55:32 +02:00
Alex Kavanagh 467f9dc029 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: I770babbc0ea9e6568695b30eab1644ceed3f7e82
2021-05-03 16:05:57 +01:00
Alex Kavanagh 0d4bf2d224 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: I72b4edfd23f386af964698e32f7f3aa2db4d8dac
2021-04-03 20:26:40 +01:00
Alex Kavanagh 603a2fae61 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: I458d9236227ad948d9406434a1a48d52f35fb7a4
2021-01-12 15:36:44 +00:00
Aurelien Lourot f023fdabfa 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: I568f40bcc0dec34e28b31145d42a1ce401aeb563
2020-12-11 13:57:05 +01:00
Alex Kavanagh 174687b7e2 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: I4414348e78930fa9562c6adab058ada8ae57a958
2020-09-26 18:34:05 +01:00
Alex Kavanagh 6ac9ddf3d7 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: Icce2e9b80970bd8987bec1c0f68efd3ed22599bd
2020-07-30 12:05:52 +01:00
Pete Vander Giessen 76e9fc4da9 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I1ef9e8dd7da8ffafc672f98d6a70f2e66c1639dc
2019-03-07 17:11:44 -05:00
Ryan Beisner 2eefce0f51 Update requirements
Fixup existing lint.

Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Iab32fd02667ae96dc5cc929b52e12c27d01d10c1
2018-10-04 14:00:32 -05:00
James Page e83c2f07e5 Initial baseline of charm 2017-01-27 14:31:20 +00:00