Commit Graph

21 Commits

Author SHA1 Message Date
Corey Bryant 7bf6281b92 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Id40cf30dcbd7467c3dc39ae0d7fbcc3a7a2899bb
2023-03-07 22:17:35 +00:00
Liam Young 25711a290b Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I32a1ee9fc60c1089d367619f386bdbfeee060918
2023-01-16 13:42:01 +00:00
Corey Bryant e9f077c28b 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: I5b04cd5a9d1dd8d62b129592bf8ae1339e9af58b
2022-08-26 18:40:39 +00:00
Hervé Beraud 48cdd1a86c 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: I25d6d26f2a4169ddc30d8eeac193d768aa345058
2021-12-15 14:05:35 +00:00
Corey Bryant 15b3a72786 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: I97d4131670ae024b8bc84d5a13b1034e47d39445
2021-11-22 10:55:20 -05:00
Aurelien Lourot b189536ff9 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: I09ec4bef59ea95f833093220e41ddd728daa347b
2021-07-22 14:57:35 +02:00
Alex Kavanagh 5a7dfeac7f 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: I4c38f3db7c7bcdbb993ffb27b8bf1473f8f0f3a6
2021-05-03 16:07:58 +01:00
Alex Kavanagh ab2d2152b0 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: Ice0f02ee3724b1cf9f59efb59ef8b33e1bf54968
2021-04-03 20:29:30 +01:00
Aurelien Lourot c6613aa969 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
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I76103104b926a35f57513687b38ffe62c65c48d5
2020-12-15 11:10:36 +01:00
Alex Kavanagh 8f45645505 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: I7c3e0a7e77e16b9bf318ca22c39f8220c5144ac7
2020-09-28 09:52:17 +01:00
Aurelien Lourot e495768b4a Sync helpers for 20.05
Change-Id: I3a7ce840746074328010cbc20eef319e04fc3882
2020-05-18 14:45:53 +02:00
Frode Nordahl 38117ba022 Conditional default of ``manage-neutron-plugin-legacy-mode``
The new default will take effect on newly deployed units when
openstack-origin is set to 'ussuri' or newer.

Any existing units or newly deployed units with openstack-origin
set to prior versions will retain the existing default.

Change-Id: Ia38dd7882105c3adad1afbf754ba2ed047dd05e2
2020-02-24 16:44:54 +01:00
Ryan Beisner f2c9168d9a
Sync charm/ceph helpers, tox, and requirements
Change-Id: I08d3837f2c25e62e6c0fa801e9bcd84c2596ccf3
2019-09-30 22:10:12 -05:00
Chris MacNaughton 05f373a27b Migrate functional tests from Amulet to Zaza
Change-Id: I936aedf51b2021bf5a09dc4dceb98235aebc0a86
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/17
Closes-Bug: #1828424
2019-06-21 07:08:48 +00:00
Pete Vander Giessen 734738c070 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

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

Change-Id: Ic9f06360bdd40e20fa04948f2da407b6392b7cff
2018-10-03 13:10:12 -05:00
James Page 5f22e621c2 Update charm to use Python 3
Updates across the charm and unit tests to switch to
execution under Python 3.

Note that the changes are not backwards compatible
with Python 2.

Refactor use of neutronclient python module to simply
wrap the neutron binary, using the yaml output format
to avoid the requirement for a Python 3 module on
older OpenStack release versions.

Change-Id: Ic26b0dd19a76552481939325963a6c21585dee3c
2017-11-07 13:53:40 +11:00
David Ames 50b656c5fa Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I9ceda024bbf467a03a0cb6b99c84f60155baf01c
2017-04-28 08:42:38 -07:00
James Page f4bcae8b6b 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: I77d4e53c792be5a9d101584568677f3ab6e3af8e
2016-07-18 17:57:18 +01:00
James Page 2a70eaf0f5 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: Ie6afdd93709b9fa3b4d8c53356b6a7fb4b4e467a
2016-03-23 09:30:17 +00:00
James Page 0379ccb303 Add tox support 2015-11-02 09:28:57 +00:00