Commit Graph

36 Commits

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

Change-Id: I951e0a2b9e44158dd0d2586554d5380c981f46f6
2024-02-24 20:12:23 +00:00
Corey Bryant dd8c4453b2 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: I236864fef58fb9b69a5298643a5c095fbfe2ca8e
2023-03-07 20:31:30 +00:00
Liam Young cc22020900 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I33c43ac69cc0ea3899a3f49ac83dcb58ed059317
2023-01-16 18:03:08 +00:00
Corey Bryant 448daa6fdf 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: I2cb698f719106e54b06009f24ea47259419e9cad
2022-08-26 18:40:42 +00:00
Alex Kavanagh eb913cfb5d 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
- Fix mocking on unit tests for install.real hook

Change-Id: I7bf692965341c0cc1c84c7d3c77cce63a6cb6cbc
2022-04-06 11:04:01 +01:00
Alex Kavanagh c1cbacb9c2 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: Ifdf20eb653bf5a828a03e120018fa447310f043c
2022-02-15 17:05:06 +00:00
Corey Bryant d94662f374 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: Ie287d7462b5e2cfcb1f91f25117eb61d93f59a1f
2021-11-19 15:49:59 -05:00
Alex Kavanagh 287126edf5 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: If3843b99a968f7cd55fd33a79fc8365ff0913256
2021-09-27 19:50:40 +01:00
Aurelien Lourot d746d85433 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: Idde242e447572696771a878653165c48fe331c3b
2021-07-22 14:59:41 +02:00
Aurelien Lourot b24a6cfe0d 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: I18218c7defce80ee695b72318ce2ec04e7e37588
2020-12-11 14:02:19 +01:00
Alex Kavanagh 5dd04dac31 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: I179fd55a49bf07515e4fad64dd0a4719b58ac4ca
2020-09-27 19:45:00 +01:00
Alex Kavanagh d566af19a2 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt
- fix PEP8 issues from new W504 param

Change-Id: I3d1ea2cea971b364001a53d35f2b3bbcaed8361d
2020-07-31 15:41:45 +01:00
Aurelien Lourot b8c1f99397 Sync helpers for 20.05
Change-Id: If3be63141786d44c917da295fef806341d339fb7
2020-05-18 15:29:10 +02:00
Alex Kavanagh 1b1e7c583c Policyd override implementation
This patchset implements policy overrides for octavia.  It uses the
code in charmhelpers [1] which has been modified to support the richer
and more complex approach to handling policy overrides.

[1]: https://github.com/juju/charm-helpers/pull/393

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

Change-Id: Ib51fd2c7c540c680083c2928eab4ce4df0d43e23
Closed-Bug: #1741723
2019-11-20 14:40:03 +00:00
Alex Kavanagh 830c3b2dd2 Implement zaza tests for openstack-dashboard charm
This patchset removes the amulet tests and ports them to using the zaza
framework.

This patcheset is dependent on PR#104 [1] to be able to merged.

[1]: https://github.com/openstack-charmers/zaza-openstack-tests/pull/104

Change-Id: I1af134a3d7346af77584949722ca23ff65107502
Closes-Bug: #1828424
2019-10-24 12:50:05 +01:00
Corey Bryant dda4bddce2 Enable functional tests for train
This patch also updates the smoke test to run train.

Depends-On: https://review.opendev.org/#/c/681927/
Change-Id: I1b6fb659ae3c655609bdbc360a2bf09f30577d0b
2019-10-18 21:25:33 +00:00
Ryan Beisner e220d069b7
Sync charm/ceph helpers, tox, and requirements
Change-Id: I25256dfc4e4029c99c0e612142ec857980f902c6
2019-09-30 21:43:41 -05:00
Zuul 4985255b28 Merge "Add Python 3 Train unit tests" 2019-08-13 18:02:33 +00:00
Corey Bryant 6865803380 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: I3bf7b14161e13f76b1d5b07297dcc4f3029fe65d
Story: #2005924
Task: #34228
2019-07-30 10:16:17 -04:00
Chris MacNaughton a0600b286e
Sync charm-helpers
Amend functional test for Stein onwards.

Change-Id: I2cfdee91a09809ab3037184b11142a67908ecc02
2019-07-17 09:19:16 +02:00
Pete Vander Giessen 0599bdd433 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Id9befd057a70e9baa09d048a4f686483f41e4ee5
2019-03-07 17:12:52 -05:00
Paul Goins 6523b4e706 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: I9666e922f158cb244319d4d7c057f4292c03e21b
2019-03-01 14:43:10 +01:00
Doug Hellmann dc350e8747 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: I731b0717ad6aa9c0b9f4ce193300ded79671c7aa
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 07:52:24 +00:00
Corey Bryant 8f84e453af 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: I1355382846aeb6d0ad29be32b9e6fcf47d318290
2018-10-04 10:02:31 +01:00
Alex Kavanagh eca37a1dad Update charm to PY3 only code
This change upgrades the charm to PY3 only mode.
Note the changes to charm-helpers has also been made to support
Apache auditing code in PY3.

Change-Id: Idd347de5818ec57cb05f38170fe0d6536157a0da
2018-10-02 12:11:08 +01:00
Vu Cong Tuan 9dbae90a26 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: Iae9e7269e4b70da56c3a8c025b6cc48566be0d0f
2018-06-27 11:28:48 +07:00
David Ames 8a86e662b3 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I5e1214055d49a0ab170ad3ebc1c4fccca0eb7ebc
2018-05-09 09:34:42 -07:00
Ryan Beisner 6a7a9a9200 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: I15a489755a94d0df0f2a6331410add716e56e091
2018-04-03 16:29:56 +00:00
Ryan Beisner 4c5204ee19 Sync charm-helpers
Change-Id: I296f081e9de99da2fefe5a581dfc2ffe5fba4429
2018-02-21 14:10:21 -06:00
Andrew McLeod aaa3f8fec3 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I0278a3c133c160f2543195c6a4c8a7c2735d13ac
2017-11-20 09:22:18 +13:00
Alex Kavanagh e57e006015 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
- fix tests which assumed mocks would just work on os_release()

Change-Id: I752198f807bc82f07f2a50e295c4d2936c3ad745
Related-Bug: #1659575
2017-03-29 10:52:42 +01:00
David Ames 76dfb7dce4 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: Ie85a1357f75d51af07c20028cd69f5cf9c0598f1
2017-03-21 17:31:30 +00:00
Ryan Beisner 0449669d86 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: I435049886d9e2e2bb47d4beeb4f4833a65ae72e4
2016-09-09 19:22:14 +00:00
Ryan Beisner 6b96a47bad 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: I649729447605b38a257c403dceb6c6a8dfe9f582
2016-07-19 03:38:49 +00:00
James Page 76557e9f5d 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: I12452beda5879dcc6f4cde922d640d0c987bb8c1
2016-03-23 09:30:17 +00:00
James Page 84cc8ecba9 Add tox support 2016-02-15 22:14:49 +00:00