Commit Graph

21 Commits

Author SHA1 Message Date
Liam Young 2a10ff296f Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I626a4bff6a04efcb150f19ca9dee628292ed3008
2023-01-17 09:33:12 +00:00
Corey Bryant ef5f2f417e 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: I68434d15a68d087a4fd704d9dde6e5a878d5cdca
2022-08-26 18:40:35 +00:00
Alex Kavanagh acb1842832 Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I563a3af2895ddf2eb5d8e61006eb8eb2cb8d8d37
2022-02-17 12:30:08 -05:00
Corey Bryant 33a3898114 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: Ie8a5fe3f3dd10de1b4f180ce05b542896f594393
2021-11-09 10:27:03 -05:00
Aurelien Lourot b506eb3e64 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: Icccb6d52e02a22c0bc2c8ceca577ed190b2f5466
2021-07-22 14:54:45 +02:00
Alex Kavanagh 0c480b198f 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: I94ca1393e0a565e4595022564660194d9fd44ce2
2021-05-03 16:05:07 +01:00
Alex Kavanagh c93b67b11e 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: Iffe53a0a9feb59e0d94f08ee152e6f5d7107192c
2021-04-03 20:25:34 +01:00
Alex Kavanagh c81858c248 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* 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
* Fix unit tests due to changes in core subordinate context lib.

Change-Id: I61d51dc65ba29390df1c057535a2065e205d32b2
2021-01-18 20:14:48 +00:00
Aurelien Lourot bda02d7cd5 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: I15f2121db1b79aea8b8345de7244a674acd4a108
2020-12-11 13:56:29 +01:00
Alex Kavanagh 84f636c9d0 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

Func test pr is needed for py35 compatibility - test to ensure that zaza
change works.

func-test-pr: https://github.com/openstack-charmers/zaza/pull/390

Change-Id: Id729d01b6f2e41ccb3f605638a1837fc2b3c626d
2020-10-06 18:51:21 +01:00
James Page 3cde0a90a5 Switch to using openstack-python3-charm-jobs
Change-Id: Ia5e17a750135060b16ffb5d5d5d8dcac8264272f
Depends-On: Ib9ed240aef6680be7c972088ca5337b5740b9c36
2020-07-13 08:31:48 +01:00
Hervé Beraud a53c5b244a 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: Ic61aac57ab757e555be0eef818052c58b8cf03dd
2020-06-09 16:36:35 +02:00
Jose Delarosa 4e29bc37d7 Implement zaza tests for heat charm
This patchset removes the amulet tests and ports them to use the zaza
framework.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/105

Code improvements and fixes

* Used correct templates for test-requirements.txt and tox.ini
* Fixed functional_test field in Makefile
* Removed admin passwords and tokens from bundle files
* Added source and openstack-origin for all bundles that need it
* Added placement charm to bionic-train bundle

Add configuration entries to tests.yaml

Change-Id: I53201690ce844daa9445cad3491f594b673b23fe
Closes-Bug: #1828424
2019-10-30 11:44:20 -05:00
Ryan Beisner 83bd9aa5ad
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1ed7854fe42faa2090c085735eea0c4cac2f0acc
2019-09-30 22:41:48 -05:00
Pete Vander Giessen 82e0d60f78 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

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

Change-Id: Id143b48d67b86ee3e8b90a2916c69f41d21d0c08
2018-10-03 11:41:27 -05:00
David Ames c7fea4af07 Update for Python 3 execution
Charm helpers sync

Change-Id: I6cfa96b23354f68521a3179eb690340e1c9f23bf
2017-11-20 15:11:08 -08:00
David Ames 1b3808c223 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I4d33424517edbe40e0cfec74cac2860b3b2e11a4
2017-04-30 13:09:12 -07:00
Ryan Beisner 8e977d1d31 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-*, dev-* and dfs-*
naming standards.

Update README to refer to functional testing section of the charm
guide.

Change-Id: I6a985551034bafc93db43fdfa76667167844feb9
2016-07-21 17:56:09 +00:00
James Page 18d2bc9de0 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I006777879e42745a8ec1373cbf20843b6c28677d
2016-03-23 09:30:17 +00:00
James Page 855aa2e698 Add tox support 2015-11-02 11:18:46 +00:00