Commit Graph

37 Commits

Author SHA1 Message Date
Alex Kavanagh b86c056961 Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: Ib5d0b909970754dac7ea1b274fdf72fc9b257455
2024-02-24 20:12:04 +00:00
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
Alex Kavanagh 88c3c9d5a4 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- charmhelpers sync

Change-Id: I9e03f8032c4e66586feec2bbf5f07e93b89355cc
2022-04-07 12:20:45 +01:00
Alex Kavanagh 1c88770e9b 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: I0febbbf7da990026b9578a3512c99539eb03bbc0
2022-02-15 16:39:54 +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
Alex Kavanagh f7d248e6e6 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iace3419aa0cc1791d4642f15aa5e4826d3629c59
2021-09-30 16:35:36 +00: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
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
Ryan Beisner f2c9168d9a
Sync charm/ceph helpers, tox, and requirements
Change-Id: I08d3837f2c25e62e6c0fa801e9bcd84c2596ccf3
2019-09-30 22:10:12 -05:00
Corey Bryant abc90a3a30 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: Ie6f119451c282906da12059c14652d08dd5e3f20
Story: #2005924
Task: #34228
2019-07-30 10:18:44 -04:00
Chris MacNaughton 77cc148bd0 Add bundles to validate DVR and DVR-SNAT operation modes
Change-Id: Ic8577fcda3bb6a5ace793949de8052c71ae2c27e
2019-07-08 16:32:43 +02:00
Chris MacNaughton 7df5960132 Update tox.ini to remove py27 targets
Change-Id: I47d86a36949f56163d0c845437b102a918b4dd13
2019-06-26 15:03:10 +00: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
Paul Goins 5ade981919 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: Ibeb2ba6aaa868ff4087721b98eae7a54fa89beef
2019-03-01 14:41:30 +01:00
Doug Hellmann a66b9f021e fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ic278b3917272f3fdd9da366ff0d1c4c42988a350
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:02:28 +00:00
James Page 49d377bfea py3: Switch to Python 3 for OpenStack Rocky
Switch neutron installation to use Python 3 for OpenStack Rocky.

Purge python- packages on upgrade.

Fix duplicate keystone entry in api-paste.ini for Rocky.

Change-Id: I9ead4d0b637f3067e0aa9a20604b2738221860df
2018-09-21 16:17:57 +02:00
Zuul d4305b6a58 Merge "Enable Bionic as a gate test" 2018-05-14 11:10:09 +00:00
David Ames 524a41d45e Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I40453750781f1d38e24177fb32de274f503db736
2018-05-09 09:34:06 -07:00
James Page 786b9027f1 Drop notification based designate integration.
Deprecated 18.02, removal for 18.05; superceeded by extension
driver.

Change-Id: Ia7117dbe6d06e40a3fa4c6cb9c56a0d89217bfd9
2018-05-09 15:08:35 +01:00
Ryan Beisner 1e9e886667 Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: I0d668cfd27d3dad5a7c594247df8cc8d4a13d0da
2018-04-03 16:32:07 +00:00
Ryan Beisner cf46ca3cd6 Sync charm-helpers
Change-Id: I69e67d237a7e3e95c3b56256b25752b847969366
2018-02-21 14:09:13 -06:00
Zuul 59158c417f Merge "Update charm to use Python 3" 2017-11-16 21:15:04 +00:00
David Ames 1ee9f46543 Fix Ocata to Pike upgrade
When upgrading from Ocata to Pike the context was not recognizing
Pike until a subsequent hook run. Resetting os release fixes this.

Enable xenia-pike amulet test.

Closes-Bug: #1723981

Change-Id: I67ec257f0a91cf4108de54a2cd93ab0cc3663376
2017-11-14 10:12:01 -08: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
Alex Kavanagh 750a3e2c13 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
- fix tests which assumed mocks would just work on os_release()

Change-Id: I3d1a8993286f0e7a1037c03e6711015883f1b615
Related-Bug: #1659575
2017-03-28 17:30:14 +01:00
Ryan Beisner 9c3937f7a1 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: I8fe6aac394448a090e58957ed0ccbd37f8481efc
2016-09-09 19:42:45 +00:00
Ryan Beisner 7f21d22d1e Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Change-Id: Ic11e99b47971d8cebe4707acfc5d23991804aed4
2016-09-06 22:08:58 +00: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 0c7b925a9a Tidy tox targets 2016-02-16 07:04:15 +00:00
James Page 0379ccb303 Add tox support 2015-11-02 09:28:57 +00:00