Commit Graph

37 Commits

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

Change-Id: I83c0ff8af444c1fd807855077d0b4d9997ab9b16
2024-02-24 20:11:18 +00:00
Corey Bryant 558a95df94 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: Ibceaa9d30d3d4a9a4e67fe5e45446b94f1d2e064
2023-03-08 13:22:36 +00:00
Liam Young 795b91ed29 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I5555e7d3fd49ed3440a11c632f34323bd820b302
2023-01-16 18:05:06 +00:00
Corey Bryant 0eeb90b755 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: I782ea5c502b7bc0eb9941c7eb8d4b830f07b218a
2022-08-26 18:40:31 +00:00
Alex Kavanagh a8cfbe21f7 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

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/751
Change-Id: Ia285c2d834cd0b9ab97fc944370172631995b83f
2022-04-13 15:14:56 +01:00
Alex Kavanagh 5f86b1cb19 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: I8a57a9ae84668d67dd29dd819152716b366461a4
2022-02-17 12:30:07 -05:00
Corey Bryant 85b46bb1b6 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: I315a7941cd6c5eaea698657af122adb221f5647f
2021-11-17 13:49:42 -05:00
Alex Kavanagh 12dc316716 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy bundlest
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ie1c6883cd66e128a10866d9b83975b2d7ecc343b
2021-09-30 13:29:08 +00:00
Aurelien Lourot c1835063b5 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: I8073fcd19b850a66e8a855b86614773e089fd017
2021-07-22 14:53:30 +02:00
Aurelien Lourot 5d49a71fab 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: I8b4cc2a642d2c11e9d04073a7f380a56ad3daa99
2020-12-11 13:55:27 +01:00
Alex Kavanagh fd20c1eb70 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: Ibd20dd33b17a348a7a8aeae93f119fc47a56eb9e
2020-09-26 18:31:49 +01:00
Pedro Guimaraes 9f02453256 Add support for Erasure Coded pools
Enable support for use of Erasure Coded (EC) pools for
Cinder volumes.

Add the standard set of EC based configuration options to the
charm.

Update Ceph broker request to create a replicated pool, an erasure
coding profile and an erasure coded pool (using the profile) when
pool-type == erasure-coded is specified.

Resync charm-helpers to pick changes to the standard ceph.conf
template and associated contexts for rbd default data pool mangle
due to lack for explicit support in OpenStack Services.

Update context to use metadata pool name in cinder configuration
when erasure-coding is enabled.

Change-Id: Iae0b9ba2e57a0dcc4ba1074ebeba4c644f1d830c
Co-Authored-By: James Page <james.page@ubuntu.com>
Depends-On: Iec4de19f7b39f0b08158d96c5cc1561b40aefa10
2020-08-07 14:52:55 +01:00
Ryan Beisner c0f870c4ff Move charm tests to zaza
Use the same assertions as the cinder charm. Also port the 499 original
test, which is in the associated depends in zaza-openstack-tests.

Change-Id: I86f2ab205d0f082dd6b185ccbfa314bccf4e5bfb
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/246
Closes-Bug: #1828424
2020-05-20 09:47:32 +01:00
Sahid Orentino Ferdjaoui b8201a09ee Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I8f3a4b38571ab560564d135f69664c294820158e
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-31 08:32:12 +00:00
Ryan Beisner bb0c9725a7
Sync charm/ceph helpers, tox, and requirements
Change-Id: I76d6a3b018dba414667bc585b67bece1e1f54d6f
2019-09-30 22:41:38 -05:00
Camille Rodriguez cc86a05bd6 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: I306adef1efe667966ad502177c3efc317b16e911
2019-08-26 17:12:40 -04:00
Zuul 2760de7b60 Merge "Add Python 3 Train unit tests" 2019-08-13 18:12:16 +00:00
Corey Bryant b9677733bc 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: I97e18d9623d1d59281f1c6c669a723edee788672
Story: #2005924
Task: #34228
2019-07-30 10:18:14 -04:00
Chris MacNaughton 90c8df4e3c Sync charm-helpers
Change-Id: I4f397c620be9f545ed0b6d0ccf3b6949544e4b51
2019-07-16 07:06:06 +00:00
Pete Vander Giessen 62ef2303ca Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I54762881d7356e3ded38a11f00600e3ded6acf7a
2019-03-07 17:10:57 -05:00
Paul Goins f80cadabb1 Excluding unit_tests from coverage
Unit tests generally will all be executed, and measuring them will
skew the overall coverage numbers.  Thus, I'm excluding the unit_tests
folder.

Change-Id: Iec5e57b305615d4d3fe87cb46b771d92d14a5195
2019-03-01 15:03:10 +01:00
Paul Goins af19e67961 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: I2a14d3a3b0215aa637bc18e780d1ad765c796daa
2019-03-01 11:11:06 +01:00
Alex Kavanagh 9802731e58 Migrate charm to python3 only runtime
Change-Id: I921f3e2fc8250ca7250ca7dfc47e12644ce4ef98
2019-01-31 22:05:20 +00:00
Doug Hellmann 764804a1be 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: I2068cc2748021157c6d5e4f4b6cbd85790dd11b7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 00:55:46 +00:00
James Page 3f3eb45777 py3: Enable Python 3 at Rocky
Misc updates for rocky:

  - Switch default smoke test to bionic-rocky
  - Resync charm helpers

The change for this charm is minimal as it directly uses
ceph-common.  The cinder charm actually deals with installation
of the required python-rados/rbd libraries for the ceph
integration.

Change-Id: Ic2ee4b845ab604d80b7e27492f522d57f9463af1
2018-09-18 15:08:48 +02:00
Nguyen Van Duc e5ff9faf68 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: I36cfee00be360654937cfd6f5b0cd630c84e103d
2018-07-12 17:52:13 +07:00
David Ames 65a188172f Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I808c6451583d66c8b8a17ed1bffc8a37660f6022
2018-05-16 13:28:02 -07:00
Ryan Beisner 1abf731e37 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: I9516fa288f9b04c8822c707e8649916a3f8e0fc6
2018-04-03 16:38:46 +00:00
Ryan Beisner 1a956ebf73 Sync charm-helpers
Change-Id: Iac5794aec967ffc85a42659d469769a63b2cf428
2018-02-21 14:08:15 -06:00
Ryan Beisner 34f39329c0 Update amulet test definitions
Also sync charm-helpers

This change requires the following charm-helpers change
to land first:

 - https://github.com/juju/charm-helpers/pull/32

Change-Id: I2c33e25e14ad49d65f5fc7eb000830086cf829c1
2017-12-06 15:39:54 -08:00
David Ames 6287e25ce5 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I4ddc4d75eb86210abb073a92d8ed217a3f39fa55
2017-04-28 08:42:11 -07:00
David Ames ff9136ae5a 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.

Change-Id: Idf45ef0e0587e6874e29145c7ce1109be7cc4e50
2017-03-28 17:38:14 +01:00
Ryan Beisner d9e0ba7a7f 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: I671077fbafb38bd4d2005fb2236bec416f79593f
2016-09-09 19:22:05 +00:00
Ryan Beisner 695848f0ba 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.

Also remove brittle auth conf checks which are failing at
cinder-ceph master. Even without those explicit checks, if auth
fails, functional tests will still fail and block.

Change-Id: I91e638f98f70c7098f089c7e60c1181632b39222
2016-07-20 03:34:22 +00:00
James Page 92f69b1444 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: I9ffc23d111d35833dc44fc33a27111bed55b6577
2016-03-23 09:30:16 +00:00
James Page cc49cfa67c Tidy tox targets 2016-02-16 07:01:31 +00:00
James Page 2fb135098d Add tox support 2015-11-03 14:16:36 +00:00