Commit Graph

36 Commits

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

Change-Id: I24bfd1286978ffee084f9488062340a44cce4b2c
2024-02-24 20:11:10 +00:00
Corey Bryant 9af7effd2b 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: I59238c9a3933756755903d0e6718699e6960cc5c
2023-03-07 20:33:02 +00:00
Liam Young 065e1509a3 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I09fc4c7e30fd4cb41e441adb84420f3bc3dd42ab
2023-01-16 16:12:12 +00:00
Corey Bryant ae164bf542 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: I34ae94970fc5cfd242df5184fba09b611874ee71
2022-08-26 18:40:27 +00:00
Felipe Reyes 7195f3cda2 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.

Change-Id: Ia9a713625aa933fe99722df36f42a800af19c790
2022-05-17 14:18:35 -04:00
Alex Kavanagh 4df5c728c5 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: I76cc7c4c782d60f3558df6b9f96c513eff16331b
2022-02-17 12:30:03 -05:00
Corey Bryant 69e183990a 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: If4892692cda73dacc3b9b430cdaf9c82f814b64a
2021-11-18 09:45:01 -05:00
Alex Kavanagh 28c15ca67f 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: Ia5368ff6ffb96cfa169df6e05b5e3d9e8a2ecbd4
2021-09-21 14:07:19 +01:00
Aurelien Lourot e7302d9a7c 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: I3b7b6cd8e1eae24c3eb0b8308b82630138434e83
2021-07-22 14:51:56 +02:00
Aurelien Lourot bb1094e7eb 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: Ie294d559e06f356a9a58c4bdc65d14e1a7c07580
2020-12-11 13:53:40 +01:00
Alex Kavanagh a924a071fd 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: I602a2a9c241de5898f737aacec6f85390d0be4f7
2020-09-27 15:31:34 +01:00
Aurelien Lourot b66f1bbb4a Sync helpers for 20.05
Change-Id: I05439966556978d44eb72f695152e50548f77496
2020-05-18 14:38:20 +02:00
Corey Bryant 72107bc963 Port tests from Amulet to Zaza
Zaza tests can be found here:
https://github.com/openstack-charmers/zaza-openstack-tests/pull/68

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/163
Closes-Bug: #1828424
Change-Id: I1cfebeb15485dd6d92638323d2c9e6bb85f568cb
2020-01-31 18:16:34 +00:00
Sahid Orentino Ferdjaoui a4a7488f67 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I39938b2cd0f08536ff98314cfda256675f17cdc4
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-21 09:09:41 +02:00
Ryan Beisner b7526d1b6c
Sync charm/ceph helpers, tox, and requirements
Change-Id: I37e8e54738c66afe66505514ac460d6a7a7c5997
2019-09-30 22:41:30 -05:00
Camille Rodriguez 9027a7b894 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: Ica4bead71d054ae5912e7e66ff9a0666e131637a
2019-09-04 14:48:19 -04:00
Zuul 252bd800b0 Merge "Add Python 3 Train unit tests" 2019-08-13 17:45:36 +00:00
Corey Bryant 89980b6461 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: Ifa6d402df7f8678f10258ee4940428ca55b42e9f
Story: #2005924
Task: #34228
2019-07-30 10:17:20 -04:00
Chris MacNaughton 6a5c75ea20 Sync charm-helpers
Change-Id: I0f1cfa1352f742b878aba96bd847117d8bfc76b6
2019-07-16 07:06:03 +00:00
Alex Kavanagh 7ea0be57de Convert the charm to Python 3
Change-Id: I8c8df27be189098be363d0ea125f86e59fdbb020
2019-03-13 12:29:49 +00:00
Pete Vander Giessen 07163a4b0d Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I09a498dc742f5986f16b838d245e23c245bcb0ac
2019-03-07 17:10:15 -05:00
Doug Hellmann 0d3a3f2060 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: Ia31853931322d3a60f543e4aa16ef1351ab61d49
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 00:56:07 +00:00
Corey Bryant fde3d76e3e 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: If189859cbc98f326adb5b1da8d31e9a20da95af9
2018-09-19 11:13:53 +00:00
Nguyen Van Duc 10d02fb770 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: Iea1e40134537dfe19a75dbe85d8fc84cbc211f66
2018-07-12 16:19:10 +07:00
David Ames 5060f7b9c2 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I77b578bec509ddbf99b10067ba9509f501f34470
2018-05-15 13:39:39 -07:00
Ryan Beisner 132552a625 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: I6a2bad0d6511a6403fbb80a80588dc7fb9e96f54
2018-04-03 16:36:55 +00:00
Ryan Beisner a38b758a46 Sync charm-helpers
Change-Id: I51e661cc54b10e05d3bff9c3b303f521351a0eee
2018-02-21 14:07:08 -06:00
Andrew McLeod c744a97fb4 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I58bd0b7d6c92a784b38b2abc17f6c739c067c8c9
2017-11-21 11:59:21 +13:00
David Ames 12bd55a008 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I412918c21c8de1afd998c6745ef0ad7b2e057250
2017-05-02 09:01:50 -07:00
David Ames 8b34c8fb53 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.

Change-Id: I1d7e78598b21f2dafa6a74a4dd455989d9bf1291
2017-03-24 13:30:51 +00:00
Ryan Beisner 64d18965fd 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: I208f612c3924faaec0836c6d56367b2ca1202aa6
2016-09-09 19:42:50 +00:00
Ryan Beisner 27c7888ee4 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: I56da049ddeb3f6d7b51afa4e88a7e1fce9a2cf9c
2016-09-06 22:07:05 +00:00
Ryan Beisner a222562cd2 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: Ife820a20179d2cad5a8511f23420b38224e61e25
2016-07-19 03:37:59 +00:00
James Page 650dd513a6 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: I986c499d34cbb2dd3362f982f2bae5a05e491ac1
2016-03-23 09:30:16 +00:00
James Page 2899332ed5 Tidy tox targets 2016-02-16 06:58:51 +00:00
James Page 861de65957 Add tox support 2015-11-02 09:52:06 +00:00