Commit Graph

37 Commits

Author SHA1 Message Date
Alex Kavanagh 16f8bc201e 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: Icdefacaadb7f03d7241a0e0d88c09fcbac668530
2024-02-24 19:53:45 +00:00
Gabriel Cocenza 19cf71dc79 Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default). It also enables /healthcheck
endpoint for heat-api and heat-cfn-api on openstack releases >= queens.

Closes-Bug: #1880610
Change-Id: I94c9418c82cdddd5a5d9ed400ab47889bfb225b1
2023-02-17 12:05:27 -03:00
Liam Young 2a10ff296f Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I626a4bff6a04efcb150f19ca9dee628292ed3008
2023-01-17 09:33:12 +00:00
Corey Bryant ef5f2f417e 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: I68434d15a68d087a4fd704d9dde6e5a878d5cdca
2022-08-26 18:40:35 +00:00
Alex Kavanagh 906218c1d3 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
- charm-helpers-sync

Change-Id: I27bba777156f162331b0be992d2eec4259b4d23f
2022-04-07 16:10:36 -04:00
Alex Kavanagh acb1842832 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: I563a3af2895ddf2eb5d8e61006eb8eb2cb8d8d37
2022-02-17 12:30:08 -05:00
Corey Bryant 49a3720ebe Additional test updates
* drop trusty/xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: Ib6109d01bcbff405d025e1ace671debef0ae7c59
2021-11-17 14:47:22 -05:00
Alex Kavanagh 32d9fff926 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: I35ec110170c213f17f9d998a77e2ad4fdaf2dc4c
2021-09-23 14:39:44 +01:00
Aurelien Lourot b506eb3e64 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: Icccb6d52e02a22c0bc2c8ceca577ed190b2f5466
2021-07-22 14:54:45 +02:00
Aurelien Lourot bda02d7cd5 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: I15f2121db1b79aea8b8345de7244a674acd4a108
2020-12-11 13:56:29 +01:00
Alex Kavanagh 84f636c9d0 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

Func test pr is needed for py35 compatibility - test to ensure that zaza
change works.

func-test-pr: https://github.com/openstack-charmers/zaza/pull/390

Change-Id: Id729d01b6f2e41ccb3f605638a1837fc2b3c626d
2020-10-06 18:51:21 +01:00
James Page 3cde0a90a5 Switch to using openstack-python3-charm-jobs
Change-Id: Ia5e17a750135060b16ffb5d5d5d8dcac8264272f
Depends-On: Ib9ed240aef6680be7c972088ca5337b5740b9c36
2020-07-13 08:31:48 +01:00
Jose Delarosa 4e29bc37d7 Implement zaza tests for heat charm
This patchset removes the amulet tests and ports them to use the zaza
framework.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/105

Code improvements and fixes

* Used correct templates for test-requirements.txt and tox.ini
* Fixed functional_test field in Makefile
* Removed admin passwords and tokens from bundle files
* Added source and openstack-origin for all bundles that need it
* Added placement charm to bionic-train bundle

Add configuration entries to tests.yaml

Change-Id: I53201690ce844daa9445cad3491f594b673b23fe
Closes-Bug: #1828424
2019-10-30 11:44:20 -05:00
Ryan Beisner 83bd9aa5ad
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1ed7854fe42faa2090c085735eea0c4cac2f0acc
2019-09-30 22:41:48 -05:00
Camille Rodriguez 096e85badd 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: I6596739f10292d3953834d56c24de380d405b90b
2019-08-30 16:32:49 -04:00
Zuul 1c04133dd3 Merge "Add Python 3 Train unit tests" 2019-08-13 18:02:50 +00:00
Corey Bryant 1047c700de 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: If56eca2b47210dbf329eecd181ebfbf94c657808
Story: #2005924
Task: #34228
2019-07-30 10:19:46 -04:00
Chris MacNaughton dc5359eee5 Sync charm-helpers
Change-Id: Id94675deac977d88d8fe258aa04bafe372a7a8f2
2019-07-16 07:06:03 +00:00
Pete Vander Giessen 82e0d60f78 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I1f86a9508eee74f9f38e0b93e24c0114dbe038b5
2019-03-07 17:11:38 -05:00
Paul Goins eccdf2a3b7 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: Id18c5c0121def3dbd55435cb085dd949e207e25a
2019-03-01 14:39:51 +01:00
Doug Hellmann e0f74a4fd4 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: I31c80fdb4865f754330047e8c7d97698cf29f94f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:03:26 +00:00
Corey Bryant 711693ac47 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: Iaac7c48041200a21a2fdb86dbeadefcad5e8b579
2018-09-20 08:31:30 +00:00
Vu Cong Tuan b195300b9b 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: Ieb60e0bd8ac56ee4bcf4c8cebe6341518ee40745
2018-06-28 08:32:47 +07:00
David Ames 7f55ac4aa9 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ifecb6855712b705cd70d848a5df7f265ead587af
2018-05-09 09:33:50 -07:00
Ryan Beisner fa18841919 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: Ia254c2a0d12c236d595337aa1f7a9ded7d4ba158
2018-04-03 16:35:05 +00:00
Ryan Beisner 78bbbf93d3 Sync charm-helpers
Change-Id: Id21a23cc369d7800bbdae9039724b51f712a3fe4
2018-02-21 14:08:46 -06:00
Zuul 9c98c40d96 Merge "Enable xenial-pike amulet test" 2017-11-28 16:13:27 +00:00
David Ames c7fea4af07 Update for Python 3 execution
Charm helpers sync

Change-Id: I6cfa96b23354f68521a3179eb690340e1c9f23bf
2017-11-20 15:11:08 -08:00
Andrew McLeod 600a4fd0c4 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: If59ca2cdc42100b34a4806d54cf9229ccb2fc2ef
2017-11-18 13:13:22 +13:00
David Ames 1b3808c223 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I4d33424517edbe40e0cfec74cac2860b3b2e11a4
2017-04-30 13:09:12 -07:00
Alex Kavanagh fbb64d3550 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I18092ff85e9526b97f27bde83289802e4fd3d872
Related-Bug: #1659575
2017-03-29 18:34:54 +01:00
Ryan Beisner 86fd1cfe16 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: Icfdf2b2c568ccbb3886278d1825801f4f8cd003c
2016-09-09 19:42:39 +00:00
Ryan Beisner 67f1f41917 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: I4f1059ffda8545574cc4211daff59aa7437c0724
2016-09-06 22:08:37 +00:00
Ryan Beisner 8e977d1d31 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: I6a985551034bafc93db43fdfa76667167844feb9
2016-07-21 17:56:09 +00:00
James Page 18d2bc9de0 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: I006777879e42745a8ec1373cbf20843b6c28677d
2016-03-23 09:30:17 +00:00
James Page 00ab4bfada Tidy tox targets 2016-02-16 07:03:28 +00:00
James Page 855aa2e698 Add tox support 2015-11-02 11:18:46 +00:00