Commit Graph

15 Commits

Author SHA1 Message Date
Gabriel Cocenza 5c64f4617d Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Iecd83b01980d3b9f25da1f5594a009990ef94307
2023-03-06 10:59:32 -03:00
Corey Bryant e117319dfb 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: I1a250a0591c15971840bbd6130c7cff3822eed4f
2022-09-06 17:15:36 +00:00
Alex Kavanagh dbfd1a6597 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: Ie6e4716482a1043d4936b1343b1050fc88e54403
2022-02-01 20:01:33 +00:00
Hervé Beraud 7d3ea76ca8 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: I991fa5afc63c09fcb3f0982c08c815d5561b7f07
2021-12-15 10:15:54 +00:00
Corey Bryant dbd399354d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: Ic43f7c55f6b71ca8835d89629284de313290a62f
2021-11-09 10:27:03 -05:00
Aurelien Lourot 9f4392cd5a 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: Icb581f11567d9fdc277d6cbaf5cd8ce73f469351
2021-07-22 14:54:26 +02:00
Alex Kavanagh 33fea30a1e 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: Icb27ed77798c9a4c1389143d6b61fb5205983b16
2021-05-03 16:04:48 +01:00
Alex Kavanagh 9fde55f92f 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: I3a9cafd1237777b4897badc8b0e00b598bcbc1e0
2021-04-08 14:38:39 +00:00
Alex Kavanagh d5163360f5 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: I11b97634ce279047658b399718b1f4b1cc51e548
2021-01-12 15:34:13 +00:00
Aurelien Lourot 06f6e7a0f7 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: Id3c612d5462b96f3ac19a48473649d6ad6d0aa98
2020-12-11 13:56:11 +01:00
Alex Kavanagh bedc0d7a8d 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: Icf6ef2ae4b845f4dc612a5d949144eb5c11030b1
2020-09-28 10:17:48 +01:00
Aurelien Lourot 54bfb99b8f Porting tests from Amulet to Zaza
Closes-Bug: #1828424

Change-Id: Iab72ea5d2bd06a99e0df1af1e419dc4b31e1a99e
2020-03-12 13:32:19 +01:00
Pete Vander Giessen 00adc4f2c8 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Iefa4a23d02aca71b6b1aba6c4369a11c054e92fa
2019-03-07 17:11:26 -05:00
Ryan Beisner d702f8458c Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: If4764838c6eb9ebc547932545daf9b2f339feb15
2018-10-04 10:51:46 -05:00
James Page 1a9a8da5bd Initial charm version 2017-07-03 14:50:32 +01:00