Commit Graph

34 Commits

Author SHA1 Message Date
Luciano Lo Giudice 093383bb28 Unpin tox version
This unpinning is meant to solve the issues with tox 4.x breaking
all the virtualenv dependencies.

Change-Id: Idd02728e33be4931c7729c218629b7a8430d0f41
2023-06-16 09:33:44 -04:00
Corey Bryant f7fb2c3693 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: I78b0720e75891a41364ba0ddb82add89c3b77ca1
2022-08-26 18:40:28 +00:00
Alex Kavanagh 0ff8707cba 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: I17cb0cfe88be075d79d94edcdd2cea845bf78b8f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-17 12:30:04 -05:00
Corey Bryant 05da8ca6ae 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
* charms.ceph sync

Change-Id: I2dda45edafeee8173a9fcb174f3dc18718d664e3
2021-11-18 09:39:34 -05:00
Alex Kavanagh 77c75f62f9 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Idd5275cb2440ee712dae62b1ef4ba5a6d846135d
2021-09-21 14:32:10 +01:00
Aurelien Lourot e05668674c 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: Ie7f197c3d3ce821a2272844029d071dc5a715de4
2021-07-22 14:52:34 +02:00
Aurelien Lourot 500d942ed6 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: I12b3c45b45e0b1d6db16902c81663cbe2ef84d17
2020-12-11 13:54:29 +01:00
Alex Kavanagh 5e80697a56 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: I512ef8bbb52c08e782c66450b435a40a76b8a532
2020-09-28 13:51:24 +01:00
Aurelien Lourot 65d0de63dc Sync helpers for 20.05
Change-Id: Ib0a99f80e6a133950498accc6153b68598f7ad20
2020-05-18 14:39:18 +02:00
Ryan Beisner 63c0ebbcd7 Sync charm/ceph helpers, tox, and requirements
Also clean up pre-existing pep8 violations in the
files/* dir which was previously not covered by lint testing.

Also clean-up mocking issues around apt-pkg replacements in the
unit tests.

Also fix py35 issue with enabled_manager_modules() function in the
charmhelpers library (see
https://github.com/juju/charm-helpers/pull/387).

Also fix the functional tests bundles so they actually test the
version of OpenStack that the bundle indicates.

Change-Id: I2c8d84fadc11311c622dd308c4694496872dc157
2019-10-14 18:23:31 +01:00
Zuul 3ebbbb70a1 Merge "Add disco-stein bundle to gate tests" 2019-09-05 16:26:00 +00:00
Camille Rodriguez 1e64788677 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:
- Passing OS env vars instead of AMULET
- 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.
- adding bionic-stein bundle to gate_bundles instead of dev

LP Related-Bug: #1823718
Change-Id: Ia7093a5654a763670be05635f7f6fce292eb9c96
2019-09-04 16:27:06 -04:00
Corey Bryant 8de72db458 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: Ib39664a09e76cb5a3f764057b42d5cd33c1f8f75
Story: #2005924
Task: #34228
2019-07-30 10:19:20 -04:00
Ramon Grullon 8e08a9c22a Migrate charm-ceph-proxy testing to Zaza
Change-Id: If9e79b22a919997961a23929435450af0883b882
Closes-Bug: #1828424
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/5
2019-05-28 13:42:30 +00:00
Alex Kavanagh ddd26acc6d Convert the charm to Python3
* Move charmhelpers to the root of the charm
* sync charmhelpers to latest version

Change-Id: Id0b838f0206635cf912d205f2fb6fda7b31d0dfe
2019-03-10 14:16:41 +00:00
Pete Vander Giessen b53207d2fd Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I238730d47f05ec18cc1efd7ab20b88a8c29a2858
2019-03-07 17:10:33 -05:00
Doug Hellmann fb73c72998 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: I376bcfa0b37407876609f1183ecb72b614160457
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2019-01-07 12:43:04 +00:00
Nguyen Van Duc 2150bc38e3 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: I08dc76d61c6d762c75ca6594f0a33f0042da12f3
2018-07-17 09:46:31 +07:00
David Ames 4f29e1b1fc Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ice91cd32a8e1b82be80b29e67bdeec32cfa89254
2018-05-11 14:39:41 -07:00
Zuul 666826143a Merge "Update amulet test definitions" 2018-04-04 15:25:49 +00:00
Ryan Beisner 3dc3dcbe58 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: Idfe5ad692a8657eaad7bb9ddc5a6ac33210cd38c
2018-04-03 16:39:06 +00:00
Ryan Beisner c88bc5de02 Update amulet test definitions
Enable Queens, and set Queens as the smoke gate

Remove soon-to-be deprecated combos

Change-Id: I905aabc8d2168e87b6d341bac45a38991f26cc57
2018-03-28 14:07:45 -05:00
Ryan Beisner 4f2df121f1 Sync charm-helpers
Change-Id: I21920e173b2421b3dd077655b9b01812064b7d68
2018-02-21 14:07:36 -06:00
David Ames 195a2a5ac0 Make xenial-pike the default smoke test
Change-Id: I4b500716f08d2041044a204951750887e34fb87a
2017-12-08 15:31:24 -08:00
David Ames 435b3a186b Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I1f161137ef00fe835bce8944285341713c2eadfa
2017-05-01 08:42:37 -07:00
Alex Kavanagh 72060b6ee7 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: I10e3e689aba490118b84b6b9e58df1ba5632d07d
Related-Bug: #1659575
2017-03-29 15:07:07 +01:00
Ryan Beisner 5384e2fa27 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.

Manually fix up test names, Makefile and other legacy
artifacts remaining from basic ceph-proxy on an old copy
of ceph-mon.

Change-Id: I54eb35d0e449f203237bdc9f065551a1fbc887a0
2016-09-09 19:21:57 +00:00
James Page 5d1c1bdfb9 Resync charm-helpers
Avoid use of 'service --status-all' which is currently
broken on trusty for upstart managed daemons; the change
moves to detecting how the daemon is managed, and then
using upstart status XXX or the return code of service XXX
status to determine whether a process is running.

Fixes for IPv6 network address detection under Ubuntu
16.04 which changes the output format of the ip commands
slightly.

Update the version map to include 8.1.x as a Neutron
version for Mitaka.

Fixup mocking of apt during load of unit tests and ensure
that tox does not use any site packages, ensuring that
test execution is isolated from installed OS

Change-Id: I0f8d7cb2689f5e4c94390b324850e4e9b6e10eb5
Closes-Bug: 1581171
Closes-Bug: 1581598
Closes-Bug: 1580674
2016-05-18 17:33:46 +01:00
James Page 5904a7aa04 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: I29210e210b90aa81bf6ee9a020bd6de656750a77
2016-03-23 09:30:16 +00:00
Chris Holcombe 38c868b048 Add support for cache tier management
This change will add two new actions to the ceph-mon charm. These
actions will allow the user to create and remove cache tiers from
existing pools.  Both writeback and read only mode are supported.

Limitations of this patch include not having fine grain control
over the cache tier properties.  Things like hit_set_count,
bloom filter control or cache sizing are not supported yet.

Change-Id: I5a37e79d0d23d35295a8ae97177c940af66b0485
2016-03-10 08:29:12 -08:00
James Page 7ae1008bca Fix tox configuration
Rename lint->pep8, ensure that sitepackages are used with
newer versions of tox/virtualenv.

Change-Id: Ia6b6e27692e581439e6e5a74ecaeb6b3a1e0742f
2016-03-02 10:35:51 +00:00
James Page 23c54210bb Resync tox integration 2015-10-30 15:04:43 +09:00
James Page 89398bd217 Make things alot simpler 2015-10-30 12:30:49 +09:00
James Page fbde2aab1f Add tox configurations and requirements definitions 2015-10-30 11:15:38 +09:00