Commit Graph

37 Commits

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

Change-Id: I4d743c10474904e379234357103bd96eecc7b59a
2024-02-24 20:11:14 +00:00
Corey Bryant 14f6801933 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: I57e1fec8537d95b1035aa809ab30378fb44973da
2023-03-07 20:07:52 +00:00
Liam Young dd8a9aae8a Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Id697fb2ae78af9c4e111d419b88ada2c98134f80
2023-01-16 13:40:03 +00:00
Corey Bryant cdc2fc738f 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: Ie133bc41bf789e07d4d777e128617b21d822de30
2022-08-26 18:40:29 +00:00
Alex Kavanagh f5ec72dac8 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
- sync charmhelpers

Change-Id: I359df29fb7c86caf0c29c7f35c3e4b68392ba5ad
2022-04-06 18:43:26 +01:00
Alex Kavanagh 8903fdca5e 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: Ic7cf54d7669219f4a42e08c8a1e2adb786a16af6
2022-02-17 12:30:05 -05:00
Corey Bryant dcbce12bef 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: If7019d54b67c10407c0db5fac098aa9cee993f1c
2021-11-19 08:25:29 -05:00
Alex Kavanagh e0dc05f247 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: Iff97425a8d0c9bd6db4bfb821cfb74467db78a47
2021-09-22 10:31:35 +01:00
Aurelien Lourot 24d1ccb204 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: I1fae5202c2730af91071092c7a32d70a157bb842
2021-07-22 14:53:03 +02:00
Aurelien Lourot a79ed0ccd3 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: Ie522cb20b0ea308de9783dd9b7e0750f4aba3072
2020-12-11 13:54:56 +01:00
Alex Kavanagh 5a3bea35c4 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: I6027b4bb12dce36a7b10df2e14cafd5dc6ee963b
2020-09-28 13:07:05 +01:00
Aurelien Lourot 84d10161a6 Sync helpers for 20.05
Change-Id: I25d1d225f209f825e552c841e60e22c7d12ea4e3
2020-05-18 14:40:01 +02:00
Ryan Beisner cbff05ee1a
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ia983450e480ab6811a67034e5503ef3a476b6cbb
2019-09-30 22:09:55 -05:00
Liam Young 691bb92310 Switch to using zaza for functional tests
Change-Id: I21c472b579e865078eb58d1576f4c3c3ec845903
2019-05-24 06:00:09 +00:00
Pete Vander Giessen 04a0febd79 Switched from ostestr -> stestr for tests.
Fixes breackage in python3.5 due to underlying system upgrade.

Change-Id: I36b5fb637b7daee782a54b02da676cf75ea19e8f
2019-03-06 15:01:28 -05:00
Paul Goins 0e5133a314 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: I71c133b14eb21986875a52dcd2e883b0db306540
2019-03-01 15:03:15 +01:00
Paul Goins c8370447a4 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: Iaa61e7b2dd9f5ce6cebbd43af9c59c9b04a3547c
2019-03-01 11:10:26 +01:00
Alex Kavanagh 834cde35ec Migrate to python3 only charm
Change-Id: Ia4bcf570d40083625358fdd4fea14202ff3d89af
2019-01-30 12:36:21 +00:00
Doug Hellmann d73447d48f 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: I2c180a54b4105c4167273671e5063db61a1cb419
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:21:25 +00:00
James Page e31d5eb0a4 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.

This change also switches to using the cinder-manage binary in
preference to using the internal API of Cinder to query and manage
services in cinder, avoiding the need to continue to have python-cinder
installed for charm usage.

Change-Id: Ie8f7d2d7e1ef7b3065d6d9ed244e5fd05e2f613b
2018-09-18 12:24:27 +02:00
Nguyen Van Duc 62ad34d984 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: I35077038f18083eeb44744c9d7ad033228d14b3e
2018-07-12 17:55:21 +07:00
David Ames a984559aec Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I3345c640cfca90d453c36be75fcf4ecb09197134
2018-05-09 09:21:43 -07:00
Ryan Beisner e94947aea4 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: Ia2e678723fd7769d037df336b992bdcc67be4948
2018-04-03 16:36:38 +00:00
Ryan Beisner 672091e492 Sync charm-helpers
Change-Id: Ic3cbae866bc5b731084e14d04983653eff8adfc1
2018-02-21 14:07:54 -06:00
Ryan Beisner c2be0244c2 Update amulet test definitions
Includes charmhelper sync and amulet test update to switch
to api version2 on Pike+ as v1 has been dropped

Change-Id: Ib7fac99f6987947dec9a09ef8354003520688b6d
2017-11-07 02:05:11 +00:00
David Ames 03283c4a20 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I931fe3cf63b5bdf1ecb62c6f41a7d83bd1560350
2017-04-28 08:42:06 -07:00
Alex Kavanagh ea45357fe6 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: Ic227ce03c1acf6de9b5f83953d6390d66cda190c
Related-Bug: #1659575
2017-03-28 16:38:05 +01:00
Ryan Beisner 067b6622f3 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: Ibc97c71eba9a64969fc3cfe5fc6ddd2c867cc0b8
2016-09-09 19:22:01 +00:00
Ryan Beisner e6100d9dd5 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: I6d9582386b77cae8a00726760dc7cead85af7527
2016-07-19 03:39:41 +00:00
James Page 78d86b9b0e 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: Ib0f6c7400b443413bbf857ad087d16f7ac4c81b1
2016-03-23 09:30:16 +00:00
James Page 0cd93e6d57 Tidy tox targets 2016-02-16 07:00:59 +00:00
James Page ed7cb41f7a Add missing files, lint actions 2015-11-03 11:00:36 +00:00
James Page ba3379cb06 resync tox bits 2015-10-30 15:18:38 +09:00
James Page 434f8c1529 Rebase 2015-09-10 16:56:10 +01:00
James Page 49bbe7c4b4 Fixup lint target 2015-07-16 16:00:54 +01:00
James Page 0390c0b8fa Misc fixups 2015-07-16 15:52:51 +01:00
James Page 49c791e5c9 Add support for test execution using tox 2015-06-12 16:44:29 +01:00