Commit Graph

16 Commits

Author SHA1 Message Date
Corey Bryant dd9f5e53d6 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: Ie43538cc39e2115275802b328c9145df5955beb8
2022-08-31 18:49:12 +01:00
Alex Kavanagh c3718862fe 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: Icf3da0aa6e1820b10f211eb5ab779ff5d3d3f394
2022-02-01 18:42:59 +00:00
Hervé Beraud b74404f536 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: I2570caf6f292b2dd152f7c229be6651978f80bff
2021-12-15 11:10:19 +00:00
Corey Bryant 2b7879152d 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: I4d6b684a1257cc6bbb703b4a98d90e9f71972d9f
2021-11-17 13:45:37 -05:00
Aurelien Lourot e0d0855d43 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: I2a2e4f9a5f3a13fa9a978078380fb419ef5d6704
2021-07-22 14:51:37 +02:00
Alex Kavanagh e467a174da 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: Ib7a6e24d74a8bb76eb20d101c5b621e05d0cc153
2021-05-03 16:02:17 +01:00
Alex Kavanagh 189d576062 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: I01d014e6e735bdf368df2b7254b563b961eaf226
2021-04-03 20:20:56 +01:00
Alex Kavanagh 34e3ca9ecf 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: I335b204f7ca8888a0fc5e2465580c2ebbe24d2b0
2021-01-12 15:27:24 +00:00
Aurelien Lourot 9a669fd1fe 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: Ia8c079306de072ef2ba1b2eb940038c0919da776
2020-12-11 13:52:48 +01:00
Alex Kavanagh 1ad15274f5 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: Ide5db8f0dd1658a36373c8ef481843836bf0f5c8
2020-09-26 18:29:23 +01:00
Alex Kavanagh 8c5766c51c 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
- Remove vault HA in functional tests as etcd/easyrsa were not included.
  In order to have a faster gate, the HA on vault is dropped and it will
  be tested in the vault gate test and other scenario tests.

Change-Id: I2eacde1d08734c32731df3dfa43da738871792a8
2020-08-05 19:00:55 +01:00
David Ames f6546dda33 More robust hvac.Client post response handling
Pin the version of hvac for a consistent response type. Use the adpater
to get response code and json data.

Closes Bug: #1871981
Change-Id: Ia8517a75e7bc20f751eca83aaa84728cc62edee6
2020-04-29 12:16:22 -07:00
Ryan Beisner c8b24309e2
Sync charm/ceph helpers, tox, and requirements
Change-Id: I396744698a7f246cb388c726290504cbf7245a4b
2019-09-30 20:59:12 -05:00
Pete Vander Giessen e607b14ebb Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ie6133ebbcf88e9350f3e808d21d2d70ddb5de5d4
2019-03-07 17:01:10 -05:00
Frode Nordahl dd1df7a42b
Retrieve secret-id from vault using one-shot token 2018-10-19 14:42:38 +02:00
Frode Nordahl 3c85a815a2
Initial commit of charm skeleton 2018-10-11 11:31:52 +02:00