Commit Graph

16 Commits

Author SHA1 Message Date
Corey Bryant 13211f092c 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: I2c98ab0f82aa6d6d0a43365cee04d6da34a39ce4
2022-08-31 19:57:31 +01:00
Alex Kavanagh dc2b12cc33 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: I8768cf21899108de80aa9f6cb7da9a91b91cdf9f
2022-02-01 19:55:42 +00:00
Hervé Beraud f6121b5691 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: I7b12f467e329e2693e4c7349f328133a1ec3cb00
2021-12-15 10:28:37 +00:00
Corey Bryant a0b16b9058 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: Ia5771347736c27f3ebde2b08eec94252800dd91a
2021-11-09 10:27:03 -05:00
Aurelien Lourot 3f1ae3b8cc 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: Iae88c66fcb21f82bdce127f8cb405d8bb9ebc2e1
2021-07-22 14:53:49 +02:00
Alex Kavanagh 334cd15ee6 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: I03364083cf79a0c2d0dabb7eca1f28ac9bde4063
2021-05-03 16:04:20 +01:00
Alex Kavanagh 68c99e78d5 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: I3cd7f19cfcaa23b46b2a064490ead713ed587789
2021-04-03 20:24:13 +01:00
Alex Kavanagh bac83ecdcc 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: Ia7e43a6706de655fd06841799d514b046158fe07
2021-01-12 15:32:25 +00:00
Aurelien Lourot c63467772c 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: I5b1431991524d329aeef6af5cbd4b436a23a67fa
2020-12-11 13:55:42 +01:00
Alex Kavanagh c88adb9dd1 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: I5b232af01089555cbb80869ceee1e4bab90a79ea
2020-09-26 18:32:14 +01:00
Alex Kavanagh 0d8cdb3597 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: I195b4aece426c7dfd6cd112b9bfbd765eecfc8eb
2020-07-27 20:51:48 +01:00
David Ames 21db962b16 Use default_update_peers
Use default_update_peers which will publish admin, internal and public
addresses to peers. Remove duplicate update_peers from handlers.

Includes fixes for pep8 failures.

Change-Id: I89f2448b4deb71271f7ef0560d9a2607f21ae6c7
Closes-Bug: #1858132
2020-03-30 10:37:05 +01:00
Pete Vander Giessen fdc13811b0 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

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

Change-Id: I5926a6f63e6308a75771ac6319abd576f453d20a
2018-10-04 10:51:40 -05:00
Ryan Beisner 3fd2b6a0a4 Add .gitreview and clean up repo
Add src/README.md placeholder to prevent inheritence of the
base layer's readme file in the built charm.

Use the official charms.openstack repo in test-requirements.txt.

Use official designate-bind charm location in the Amulet tests.

Remove upload-and-publish so as not to encourage out-of-band
pushing and publishing.  That is handled by CI.

Fix a test filename typo.

Add tests readme.

Update tox.ini for Amulet environment variables.

Update metadata.yaml, removing EOL release and adding tags.

Fix unit tests

Change-Id: If842a5409c2d284bc118d70d6e8caba7cb6205c3
2016-07-22 12:01:10 +00:00
Liam Young be8cee7db2 Unit tests and lint fixes 2016-07-07 09:36:22 +01:00