Commit Graph

35 Commits

Author SHA1 Message Date
Alex Kavanagh 9ea1a00bca Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: I41641bebf78705ca3f5a3e09b8ac918a44a863aa
2024-02-24 19:53:10 +00:00
Corey Bryant 35a347d69e 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: I35b051fb5a86081380abe9d73b88b797b91febac
2023-03-07 20:32:46 +00:00
Liam Young 42d520d4e3 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I957d1e86bc59351404becaca64c8766d687cb1e0
2023-01-16 16:12:09 +00:00
Corey Bryant 118f10a707 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: I785cad8d470af5560ba2eb0616622d454e9d1c1b
2022-08-26 18:40:27 +00:00
Alex Kavanagh 9be9a1ab58 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

Change-Id: Ibcb6a078314c0bd92a0d45d31cd2adaf60b8b68d
2022-04-05 15:11:01 +01:00
Alex Kavanagh 26dd49b79d 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: I9560c8801640e3629dc21716f2e0e4534f5a330e
2022-02-17 12:30:02 -05:00
Corey Bryant 4043379eab 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: Ib1856e48daa51fe9abeefc7f2899051968329893
2021-11-17 13:45:38 -05:00
Alex Kavanagh 8e6c6f1f8f 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: Ide4746558d5be4b2a68b37320a1b601447686c2c
2021-09-28 14:54:10 +01:00
Aurelien Lourot 32cb42625d 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: I3e5f7928a45235fb9182fa3e766c55cbe1767950
2021-07-22 14:51:46 +02:00
Aurelien Lourot a282ce6b09 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: Ia7ca2af7c00c1ca55042b9e7f12558307da42d77
2020-12-11 13:53:06 +01:00
Alex Kavanagh 361eee97f5 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: I824d11bea90e2db8ffba9bfeb22137f150da1c63
2020-09-27 15:27:11 +01:00
Eduardo Sousa bbf4ad60dd Porting tests from Amulet to Zaza and support for Python 3.8
Zaza tests can be found here:
https://github.com/openstack-charmers/zaza-openstack-tests/pull/59
https://github.com/openstack-charmers/zaza-openstack-tests/pull/185

Support Python 3.8 by pulling a version of charm-helpers containing https://github.com/juju/charm-helpers/pull/423

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/185
Closes-Bug: #1828424

Change-Id: I844836b0c2f7556da0b73a7917b8ec18052ba841
2020-03-05 12:08:25 +01:00
Sahid Orentino Ferdjaoui 9cb5185253 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I6cf2fb970bd47a93033a95100720bc4c87529aed
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-21 09:11:38 +02:00
Ryan Beisner 47f2c27993
Sync charm/ceph helpers, tox, and requirements
Change-Id: If80125036375ebd526dd26c3922a12e98859ba64
2019-09-30 22:41:27 -05:00
Camille Rodriguez 95688f064e 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: If15188c82c21c24d404b9b7620fc042b8be70143
2019-09-04 14:47:36 -04:00
Zuul 63763b59e4 Merge "Add Python 3 Train unit tests" 2019-08-13 18:14:23 +00:00
Corey Bryant 10227d51be 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: Ice9db9398dbc1cfec7afbdfd0a1fd4234be4c1b1
Story: #2005924
Task: #34228
2019-07-30 10:17:44 -04:00
Chris MacNaughton 6fca362f08 Sync charm-helpers
Change-Id: I8691fa05d9a30d17a5f643505e1f31ae59242ff9
2019-07-16 07:06:04 +00:00
Alex Kavanagh 7cc006d262 Convert charm to Python 3
Change-Id: Id2a87f639619ecbdc9e02960e9530133c6816f78
2019-04-24 13:53:55 +01:00
Pete Vander Giessen a6fa24941e Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I8a47c6d9615c3e85d72bbcba8941619512c2da72
2019-03-07 17:10:08 -05:00
Doug Hellmann cb55fa6133 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: Iaf0db51532f8397529cb603815baecff90cb0e88
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:02:57 +00:00
Corey Bryant 7cee61a193 py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that where explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Change-Id: I120ed44988f9e86a27f464dc879acdc1b8926dd8
2018-09-19 12:54:22 +00:00
Nguyen Van Duc 8b5a6ed52b Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: I219e5015ebddb56e2f1c38d6ba83bc1057e56f86
2018-07-12 16:17:37 +07:00
David Ames c82d7ca193 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I62ce9734a406f97b8199255d722577a23cc68cab
2018-05-09 10:04:36 -07:00
Ryan Beisner 9dc9ce6e09 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: I4d7cb93e41256ef6b75be3a8acd83303b32ac6bd
2018-04-03 16:39:23 +00:00
Ryan Beisner 9f1229e3f7 Sync charm-helpers
Change-Id: Ia846fe377366315d93fc08b8382d01631b25ecc0
2018-02-21 14:06:55 -06:00
David Ames 0671a5523e Enable xenial-pike amulet test
Make xenial-pike the func27-smoke test

Change-Id: Ia5d12cff44cd29dc7b96fd41d155cfc94dd26abd
2017-12-06 11:15:06 -08:00
David Ames 088f87956c Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I8dc595e95ef57f971b59e0b278374e5823827ff6
2017-04-28 08:41:42 -07:00
Shane Peters f36d6e5cb1 Set os-network relation data on cluster join
By providing openstack network relation data during cluster join we
allow haproxy backends to be configured in the corresponding os networks
should a 'public-address' not be available.

Change-Id: Ie370552410fffb859d236a011844427d8b3aff45
Closes-Bug: #1669044
2017-03-16 17:53:32 +00:00
Ryan Beisner 550efdfad5 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: I028ddd9bb3676d7d1f0aedbd79473fbafc64f17e
2016-09-09 19:42:22 +00:00
Ryan Beisner 9018e73071 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: Iec087d2a25bb0cc1804fae31375a57c2e3d1ea47
2016-09-06 21:53:16 +00:00
Ryan Beisner 48ad1dbba7 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: Id617a634f7d12e8acab07ee121f9fd38b8380c17
2016-07-19 03:31:58 +00:00
James Page 0254587408 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: I0431192e165353aa2fd414f06afaf6ce132f9970
2016-03-23 09:30:16 +00:00
James Page a648274dbc Tidy tox targets 2016-02-16 06:58:31 +00:00
James Page 04f98a687a Add tox support 2015-11-02 09:42:43 +00:00