Commit Graph

37 Commits

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

Change-Id: Ifac3b28fd2773e802a83135e7ff32ca4e8befeaf
2024-02-24 20:12:12 +00:00
Corey Bryant a6de5f8d77 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: Id93b0ee0999c7a23ef34e68646b03d910816c655
2023-03-07 20:30:33 +00:00
Liam Young 35896561c7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I6ca5d9177be028ca24e84f455821560923fcad54
2023-01-16 14:28:16 +00:00
Corey Bryant 2604499010 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: Ida68ffdab34c3136f3acf98629e4be6fda3bcea2
2022-08-26 18:40:40 +00:00
Alex Kavanagh 08c823a9b4 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

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/747
Change-Id: I8bd5e6f5d002fbd1118f2c7fa54e50f1b31fc722
2022-04-11 20:28:05 -07:00
Alex Kavanagh 57a20ffb22 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: Iee7fb24e06d23b3fbf35f05e7931dbdc25b37d64
2022-02-22 05:13:41 +00:00
Corey Bryant 3b3c0ee32b 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: Id4a36b0f41d2644a94d266ca1990a270e4e7452f
2021-11-19 16:32:05 -05:00
Alex Kavanagh 7228648506 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
- disabled hirsute-wallaby due to
  https://bugs.launchpad.net/charm-neutron-gateway/+bug/1945746

Change-Id: I09f111993addbdaa87a1cd695dfebe78844ccd17
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-01 12:20:31 +01:00
Aurelien Lourot 6a22df54a7 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: Ia525250e139ea0fd86cc0f19919a7739eda1cb09
2021-07-22 14:58:21 +02:00
Aurelien Lourot 50d24d89c3 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: Ic09c2f26ff2176bde79fbbe877fc4c66bf92c19d
2020-12-11 14:01:12 +01:00
Alex Kavanagh 23ca487ae9 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: Ib702ce2d31f41cf779c2372b69c4d53f82e9e1eb
2020-09-26 18:36:44 +01:00
Frode Nordahl ed3a162d57
Unpin flake8, fix lint
Change-Id: I0c3a4b4f8291e0b19d131269554e09346754e120
2020-09-08 09:39:01 +02:00
Aurelien Lourot 70b67e0c84 Sync helpers for 20.05
Change-Id: Idb46b1a924314a126367bfada8c7851f0b4ea21f
2020-05-18 14:46:36 +02:00
Jose Guedez 6806db670b Port Charm Neutron-Gateway func tests from Amulet to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/142

Change-Id: Ib0b8fe5fe7273ce352c3771f4e59e310fff60f65
Closes-bug: #1828424
2019-12-11 15:42:07 +11:00
Sahid Orentino Ferdjaoui 836e701544 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: Ic7ed2a3c12df08dac2a056bb08c5ef87768f8e47
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-30 08:05:40 +00:00
Ryan Beisner 07865bd62c
Sync charm/ceph helpers, tox, and requirements
Also clean up pre-existing pep8 violations in the
files/* dir which was previously not covered by lint testing.

Change-Id: I443a084681d5788c89cdadf2ff999030f4b4d735
2019-10-01 09:11:03 -05:00
Camille Rodriguez c856c36839 Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718
Change-Id: I268df41f6f775560580b49fa60f717ba8da88def
2019-08-27 13:24:24 -04:00
Zuul 3dd83e1a77 Merge "Add Python 3 Train unit tests" 2019-08-13 18:18:20 +00:00
Corey Bryant 5477681799 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: I72638af28accb42482caf43e78d0418f1b722e89
Story: #2005924
Task: #34228
2019-07-30 10:18:50 -04:00
Chris MacNaughton f4bf629c63 Sync charm-helpers
Change-Id: I9029777c7cad92ffb5edba3f8acacac015efd663
2019-07-16 07:06:04 +00:00
Pete Vander Giessen 91fe7bd6a5 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ib4948bc555ec1c301039165703eefda33760e33c
2019-03-07 17:12:21 -05:00
Paul Goins be95971563 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: Ibb6306a45f35c1a22794e1a019bb357831442df4
2019-03-01 14:41:58 +01:00
Doug Hellmann 25f5fe7814 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: I2f4357b4168a1142950f12304932d8f559f380fb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:01:04 +00:00
James Page 73afa34c38 py3: Switch to Python 3 for OpenStack Rocky
Switch to using python3-{nova,neutron} at OpenStack Rocky; purge
previously installed Python 2 modules on upgrade.

Switch default test target to bionic-rocky.

Change-Id: I0a2b48bfc8c950efea3e83c74ec3eb6dd43796c4
2018-09-21 16:33:32 +02:00
David Ames aa5007332a Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Id71a674e9c12efc1c37bf8b616d5ed84d2d2be7c
2018-05-09 09:34:12 -07:00
James Page 2441950f44 Add support for use of bridges for data ports
Inline with neutron-openvswitch add support for use of existing
linuxbridge's when wiring openvswitch bridges to underlying
network devices.

Change-Id: I24281e8c31d9a140dfdaff308e6e99d3ce162fef
Closes-Bug: 1635067
2018-04-20 09:18:46 +01:00
Ryan Beisner 9d460582bf 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: I91129b9f1667116a20f14ae76994d90447e95317
2018-04-03 16:31:44 +00:00
Ryan Beisner b475a397e3 Sync charm-helpers
Change-Id: I01088b681a59a1343ec2f996c87d995a8ee9c13e
2018-02-21 14:09:22 -06:00
James Page b63f8687f9 Update for Python 3 execution
Refactor codebase and unit tests to default to execution
under Python 3.

Drop install shim as Python 3 is always present >= trusty.

Drop legacy dhcp and network reassignment code from charm as
a) this relies on a py3 neutronclient (not supported on older
releases) and b) this function was superceeded by the ha-legacy-mode
and then neutron router and network HA built in functionality.

Use charmhelper provided get_host_ip as this superceeds the in
charm version of this function.

Change-Id: I0b28bf0851d44e85b1e856cbd97b71099faa76ae
2017-11-16 11:19:58 -08:00
David Ames b9f1eb6101 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I13ec07348121ce9908079947f7779e09ea89c443
2017-11-14 13:17:40 -08:00
Alex Kavanagh 442ac04b4b 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: I9c0dae8a37ded6536dc2b0c53e06647f380c48b0
Related-Bug: #1659575
2017-04-04 18:56:56 +01:00
David Ames 1a2c2c74a4 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve amulet test failures.
- Update tests for ocata changes.

Change-Id: Iea2ee8a6a482c2eb12d695123a908ee4402722df
2017-03-23 11:14:51 +00:00
Ryan Beisner 76a20a615c 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: I95470bdd2d544e657ceccb240235e734a70987ee
2016-09-09 19:43:18 +00:00
Ryan Beisner fc7f4512e9 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: I02bb4fa2978c548d8d8df00ce3add2b98bb65593
2016-09-06 22:09:13 +00:00
James Page 34fbfcfb08 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: I9b36f8a6375da5cf5807d51e1d009c47d74dc1dd
2016-07-18 17:58:02 +01:00
James Page f4dfe12f48 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: Id04a1238b4460ba4c4de6549c6fe937cb90d9d9d
2016-03-23 09:30:17 +00:00
James Page f01229827f Add tox support 2016-02-23 17:55:02 +00:00