Commit Graph

16 Commits

Author SHA1 Message Date
Corey Bryant c2c174f539 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:58:26 +01:00
Alex Kavanagh e7ada778b9 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: I1e798c9267085d50797b8988f50e99ac9184be33
2022-02-01 19:57:43 +00:00
Hervé Beraud 41d36e8b2e 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: Ie62d7878f7b952f35ca854cc36ee55b62af5f8c1
2021-12-15 10:26:53 +00:00
Corey Bryant b2f0dda387 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: Ibc20974155e5029047f753600f625567173744ec
2021-11-09 10:27:03 -05:00
Aurelien Lourot cfa81adfde 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: Ib0398e33f2c629208ccf7f3323ad92626d791942
2021-07-22 14:53:58 +02:00
Alex Kavanagh 6a625665b6 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: Ic5d0d994cc3cbf5247bfd355c41793ea0b90f6cd
2021-05-03 16:04:28 +01:00
Alex Kavanagh 2d0221fa60 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: Iec68b0bda37b2139a9c8a2acdd59b3725e11b4cd
2021-04-03 20:24:26 +01:00
Alex Kavanagh 6fe492f9c0 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: Ib9a01f611397ba6ba926cc8518e41f930b249fd7
2021-01-12 15:32:37 +00:00
Aurelien Lourot bada862189 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: I3b00072df35f88cccb8d558f06666a67d5e506f6
2020-12-11 13:55:49 +01:00
Alex Kavanagh 0670dc08fa 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: I6c087653ed08ce17add35829a8c2f05a7f6837c9
2020-09-26 18:32:26 +01:00
Alex Kavanagh c72f509c0c 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: Ia3edbe7fbf491218ecd3279179dd2c16ba390da0
2020-07-27 20:52:00 +01:00
James Page 5174ce1201 Misc tidy of lint
Remove upper bound on flake8 and tidy misc lint on codebase.

Note that one of the warning messages signalled that a parameter
was not used in a format call. This may or may not be correct
but this commit sticks with the existing behaviour.

Change-Id: Ifa178694a97997f992afa88f4a8f3bead09ced3b
2020-07-21 09:12:11 +01:00
Pete Vander Giessen 69226ac8cc Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

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

Change-Id: I141feafd571ea84dd0d871c0e401bac46e63b893
2018-10-04 10:51:43 -05:00
Ryan Beisner 021c2a609c 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 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.

Remove legacy Makefile.

Rename Amulet test files and drop Icehouse on the Trusty target.

Update tox.ini for Amulet environment variables.

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

Fix apt_pkg mock

Disable py27 unit tests

Change-Id: I5220b73eb41e42cb03e6dac27525140fb21ca449
2016-07-22 14:53:32 +00:00
Liam Young 51b9f62307 Add unit tests 2016-07-08 12:35:52 +01:00