Commit Graph

34 Commits

Author SHA1 Message Date
Alex Kavanagh 3dadc053a4 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: I2dbb764d39c8fc95ec9bf4acb621d02f6174940a
2024-02-24 19:58:08 +00:00
Gabriel Cocenza c29a1c7b8e 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.

Closes-Bug: #1880610
Change-Id: Ie1f53d38c1c45ce3b2ddf5041eaa04a7f3139066
2023-02-23 21:07:47 -03:00
Liam Young 843fab27bd Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I10a781c3c88cea6f07f56bad90fbeae0a02a1b0d
2023-01-18 12:57:17 +00:00
Corey Bryant 745a89a7c1 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
* add domain/project to auth section of yoga proxy-server.conf

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
Closes-Bug: #1988491
2022-09-06 16:23:07 +00:00
Alex Kavanagh 913c50116a 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: I2bd113d92c603c429ba7323a713bb901ce0f4978
2022-04-06 10:15:20 +01:00
Alex Kavanagh 733f8d9791 Migrate charm to charmhub latest/edge track
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.

Bundle fix needed since z-o-t:
2bb4271530

Change-Id: I0067ff7941037b7e87dbfc1fb92b48bb380bb22d
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-24 10:26:12 +00:00
Corey Bryant 13fef16326 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
* add focal-ussuri-gr bundles

Change-Id: I1fbab001a381fe2c3015915ee0d4bc417cb04fef
2021-11-19 14:48:28 -05:00
Alex Kavanagh 4b08ed360a Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I9c9d72d83b9c14dafef98a3fe9bb84e2b6cfbe1f
2021-10-04 14:29:54 +01:00
Aurelien Lourot cc6bac5758 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

Also remove unused applications from bundles for focal-ussuri+ as zaza
is now more aggressive at checking for applications that have no units
during deployment.

Change-Id: I0b30a731751960782569f4f2a443a07f3fc07d91
2021-07-27 10:50:24 +01:00
Aurelien Lourot eb59c6095c 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: I1dbe6e5cc1300bbf0ec49b645dc5bb69bfe9bb5a
2020-12-11 14:04:12 +01:00
Alex Kavanagh e869f021cb 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: I452af2fa5a833c435b913571fd059282bbe0a1a6
2020-09-27 19:26:04 +01:00
Aurelien Lourot 8890793948 Sync helpers for 20.05
Change-Id: I594ac490aad47cc194959279cc6ed7facbb09053
2020-05-18 14:50:24 +02:00
Ryan Beisner e83d266034
Sync charm/ceph helpers, tox, and requirements
Change-Id: If3bff319915e6ddf33811a37a0a41ecbff75db3f
2019-10-01 14:38:02 -05:00
Liam Young ff7dbb6c98 Switch functional tests over to use zaza
Switch functional tests over from amulet to zaza.

Change-Id: Iaca8462feb0d5a8ac3d839248a91dd17cbd19438
2019-09-28 06:36:01 +00:00
Zuul c37e851e3c Merge "Add Python 3 Train unit tests" 2019-08-13 18:30:52 +00:00
Corey Bryant 09c87ba320 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: I07aa6ce57b6516bef56088e5c5766b2942181e6e
Story: #2005924
Task: #34228
2019-07-30 10:20:39 -04:00
Chris MacNaughton 047fa67a41 Sync charm-helpers
Change-Id: I9fac02f2ed2717d5d99a0362f64a6426bd3eba10
2019-07-16 07:06:06 +00:00
Pete Vander Giessen d2aed067d8 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ic14787c7fa9ee4936cc8e098511b87a53b93c731
2019-03-08 10:19:56 -05:00
Paul Goins ee365b91cd 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: I893d5d283780d7bece9e6d16d4e58bbf45189596
2019-03-01 14:43:39 +01:00
Doug Hellmann ae6e7976d4 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: I74eaf8ff77de1a4bff53c6b64f070ed0b6e70bda
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:40:52 -04:00
David Ames 20e6326496 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I87523d0fbc2e95ba68c97e1a86cd92e440521495
2018-05-09 09:34:54 -07:00
Ryan Beisner dac707c96b 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: I6c8524cef3de000dfed4394089f356684db47691
2018-04-03 16:30:54 +00:00
Ryan Beisner 359f541d71 Sync charm-helpers
Change-Id: I0ecc63d380c8c9c48403bcc91878ee6d780e2f74
2018-02-22 09:39:33 +00:00
Alex Kavanagh 4336b8d644 Convert charm to Python 3 only
* Needed to add a swift_manager/manager.py file which uses the payload
  software python modules to perform certain functions on behalf of the
  charm.  These were part of the main charm, which couldn't be retained
  in the charm due to the charm changing to Py3.
* Changed to absolute imports using the charm root as the root for all
  charm modules.
* The py2 target in tox.ini is used to test the swift_manager/manager.py
  file only.
* The .testr.conf file has been migrated to .stestr.conf

Change-Id: If37a393aa6ed27651b04810aa0bbf69eda37d7b4
2017-12-06 14:20:25 +00:00
Andrew McLeod 3b19d2ab8e Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: Iaae442254801b902ca7fa64c1a60267cab549133
2017-11-16 11:29:20 +13:00
David Ames ddb50888c1 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I45a91284e5ec262ae4fe38055caf00e8fbfa74a5
2017-04-28 07:50:58 -07:00
Alex Kavanagh bbd51fe884 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: I71690d9a33a141e04e527c72d89fb79a26d10bd3
Related-Bug: #1659575
2017-04-27 12:13:59 +01:00
Ryan Beisner 305b7c4050 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: I793964c7f27cafbb37e5ec642d40b926f606bcdc
2016-09-09 19:42:27 +00:00
Ryan Beisner 41d6b319f1 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: I8710f1350e7772ad7915a80855bc3b80c8284cbe
2016-09-06 22:02:14 +00:00
James Page 42b5ac1600 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: I218411054a00ef80ef56da72ef20785e31f1b69c
2016-07-19 11:10:36 +01:00
James Page 14d86d2a0a 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: I70f4b413b7f610e839da1bb73941a5de2a685047
2016-03-23 09:30:17 +00:00
James Page ef0562e752 Refactor tox a bit 2016-02-16 07:24:35 +00:00
Corey Bryant d41382cace [james-pages,r=corey.bryant] Add tox support for lint and unit tests. 2015-11-03 17:02:35 +00:00
James Page dbdfbb0964 Add tox support, tidy unit tests 2015-11-03 13:52:37 +00:00