Commit Graph

21 Commits

Author SHA1 Message Date
Liam Young 843fab27bd Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I10a781c3c88cea6f07f56bad90fbeae0a02a1b0d
2023-01-18 12:57:17 +00:00
Corey Bryant 745a89a7c1 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
* add domain/project to auth section of yoga proxy-server.conf

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
Closes-Bug: #1988491
2022-09-06 16:23:07 +00:00
Alex Kavanagh fa61a4e59b Pin tempest for different python versions
Change-Id: I2d0d6ee83aacc4e0ab109384496fa23211a31cda
2022-07-11 12:27:39 +01:00
Hervé Beraud 50417cdb32 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: I8757d430ab233f4a21d1d599f1a7a9a0dc68d7ef
2021-12-15 11:45:01 +00:00
Corey Bryant 13fef16326 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
* add focal-ussuri-gr bundles

Change-Id: I1fbab001a381fe2c3015915ee0d4bc417cb04fef
2021-11-19 14:48:28 -05:00
Alex Kavanagh f6cd0d6bf3 Fix yaml safe_load and allow unittests on py35
* Change yaml.load() -> yaml.safe_load()
 * Pin cffi to 1.14.6 for py35

Change-Id: I623ce5f636e36a121d22763e591d618d26db4b07
2021-10-14 14:32:00 +01:00
Aurelien Lourot cc6bac5758 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

Also remove unused applications from bundles for focal-ussuri+ as zaza
is now more aggressive at checking for applications that have no units
during deployment.

Change-Id: I0b30a731751960782569f4f2a443a07f3fc07d91
2021-07-27 10:50:24 +01:00
Alex Kavanagh a8d77d22fe 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: Ifad219bd1826fcd7129f687bf2739e217b960930
2021-05-03 16:11:00 +01:00
Alex Kavanagh be941c5270 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: Id08d92c4d80284c290747cb68da06a0fadd1dca6
2021-04-03 20:34:15 +01:00
Alex Kavanagh dbd9f6fe88 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: I838600e41e6c4216551ccd51019e3a0a959a3e2c
2021-01-12 15:44:11 +00:00
Aurelien Lourot eb59c6095c 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: I1dbe6e5cc1300bbf0ec49b645dc5bb69bfe9bb5a
2020-12-11 14:04:12 +01:00
Alex Kavanagh e869f021cb 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: I452af2fa5a833c435b913571fd059282bbe0a1a6
2020-09-27 19:26:04 +01:00
Ryan Beisner e83d266034
Sync charm/ceph helpers, tox, and requirements
Change-Id: If3bff319915e6ddf33811a37a0a41ecbff75db3f
2019-10-01 14:38:02 -05:00
Liam Young ff7dbb6c98 Switch functional tests over to use zaza
Switch functional tests over from amulet to zaza.

Change-Id: Iaca8462feb0d5a8ac3d839248a91dd17cbd19438
2019-09-28 06:36:01 +00:00
Pete Vander Giessen d2aed067d8 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ic14787c7fa9ee4936cc8e098511b87a53b93c731
2019-03-08 10:19:56 -05:00
Ryan Beisner a5c2f0818b Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I03998bcb16d3f7ce79fad5727d0018c7875959bd
2018-10-03 13:11:58 -05:00
Alex Kavanagh 4336b8d644 Convert charm to Python 3 only
* Needed to add a swift_manager/manager.py file which uses the payload
  software python modules to perform certain functions on behalf of the
  charm.  These were part of the main charm, which couldn't be retained
  in the charm due to the charm changing to Py3.
* Changed to absolute imports using the charm root as the root for all
  charm modules.
* The py2 target in tox.ini is used to test the swift_manager/manager.py
  file only.
* The .testr.conf file has been migrated to .stestr.conf

Change-Id: If37a393aa6ed27651b04810aa0bbf69eda37d7b4
2017-12-06 14:20:25 +00:00
David Ames ddb50888c1 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I45a91284e5ec262ae4fe38055caf00e8fbfa74a5
2017-04-28 07:50:58 -07:00
James Page 42b5ac1600 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-* and dfs-* naming standards.

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

Change-Id: I218411054a00ef80ef56da72ef20785e31f1b69c
2016-07-19 11:10:36 +01:00
James Page 14d86d2a0a 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: I70f4b413b7f610e839da1bb73941a5de2a685047
2016-03-23 09:30:17 +00:00
James Page dbdfbb0964 Add tox support, tidy unit tests 2015-11-03 13:52:37 +00:00