Commit Graph

38 Commits

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

Change-Id: Iaf999d23f918f9e3556a92852eec60c6e7cde9a3
2024-02-24 20:11:37 +00:00
Corey Bryant bc9c435dbc 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: I3840ac8ad4fd20978cf12e4a64fb4cf3fbc7f954
2023-03-07 20:07:26 +00:00
Liam Young fbedaf36bd Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: If694d62772142e180a767a84ca2c0810a5a42e43
2023-01-16 10:28:22 +00:00
Corey Bryant 021c4256a7 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: Iff2f3d0e011b47d895136ab7376f0e7d9c3955fb
2022-08-26 18:40:33 +00:00
Alex Kavanagh ba56ad1098 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: I3b35d399a2aa2656ba1aa45c54a398923582ef30
2022-04-06 11:08:23 +01:00
Alex Kavanagh e2255c29dd 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: I816a3034b055433a7688ac1165017c25f7fcf873
2022-02-15 16:10:36 +00:00
Corey Bryant db007f32f6 Switch to yoga unit jobs and add py39
Change-Id: I42fa8b1d13b5d52c7c880ff68adfd82f5c3eb4ce
2021-11-17 14:47:00 -05:00
Alex Kavanagh 99440f370f Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I5cf40c1d44ffac42f2a21615c2969ffcc9d1910b
2021-09-29 20:01:27 +00:00
Aurelien Lourot 801a9a1888 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: Ia4c682988ae9200b864fb75ad60899cdddb188c1
2021-07-22 14:54:08 +02:00
Aurelien Lourot fc70c18307 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: I9cf280ab4044b6c9162d93b51b0257222164f1ac
2020-12-11 13:55:56 +01:00
Alex Kavanagh c7e104257f 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: I2b5a414b7eddc8654314d37631175510e4f17aab
2020-09-28 21:49:21 +01:00
Frode Nordahl 65d66ecb58
Unpin flake8, fix lint
Change-Id: Id899936da7721fcc359e63db455a5349603fe559
2020-08-28 16:11:18 +02:00
Aurelien Lourot 4f657278b2 Sync helpers for 20.05
Change-Id: Iab3324dbdb4fdc95b456870758ca22ce41fda7ae
2020-05-18 14:41:25 +02:00
Ryan Beisner a018795929
Sync charm/ceph helpers, tox, and requirements
Change-Id: I798c3a2ecd7ef34951eea4f1e2c0f3adc31aa83d
2019-09-30 22:10:03 -05:00
Joe Guo 35beb586da Migrate functional tests from Amulet to Zaza
Migrate glance tests from Amulet to Zaza, which is Python3 only.

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

Partial-Bug: 1828424

Change-Id: I053a056d8e2a79ed22ea8a976a8f378994b1e8eb
Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-10 14:48:18 +12:00
Camille Rodriguez 99e5a7818e 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: I3a991b0aab724ce7b7c9376adabb607aacd2c94f
2019-08-29 16:34:52 -04:00
Zuul 516ca9842e Merge "Add Python 3 Train unit tests" 2019-08-13 17:49:41 +00:00
Corey Bryant a0b474796a 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: Iff0551f8fae4dd4e8ac19e8c3e042158d55411bf
Story: #2005924
Task: #34228
2019-07-30 10:19:50 -04:00
Chris MacNaughton b9a8aee3ce Sync charm-helpers
Change-Id: Ied5ffd31b488f45d062eec04ef61bf8f941d70f3
2019-07-16 07:06:04 +00:00
Pete Vander Giessen 733b901467 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I354d5729a267721c347bf44db55d3d18c9931e7e
2019-03-07 17:11:15 -05:00
Paul Goins 1c71b1c969 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: Ia32b6c0b2ff61a2775e34b2958982f0ae11cdd8d
2019-03-01 14:39:22 +01:00
Doug Hellmann 245a55fd12 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: I0994780897c5f3f3d54ccc916f14651951aef8dc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 14:22:58 +00:00
James Page 6001f58a48 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
installed and then autoremove --purge any dependencies that are
no longer required.

Tidy install on ceph relation joined - python-ceph is a dependency
of ceph-common, so no need to explicitly install.

Change-Id: I7b66bb3ab9f9130c9054411819d51434480cac97
2018-09-21 16:28:48 +02:00
Liam Young 19aaffaa81 Update to run under Python 3
Updating charm to support execution under Python 3.

Change-Id: I1429d1c6b634959e0062a8e9f4bc615c58bf31e0
2018-08-01 14:11:56 +02:00
Nguyen Van Duc f222c1967e 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: I0738b091824048c6e9b9ca38f3ae3818255e56f2
2018-07-17 16:24:49 +07:00
David Ames b45cd2ae74 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I21fdefe0aa0b019d5b211bb54d0a2fa9e38c2864
2018-05-11 14:29:27 -07:00
Ryan Beisner 37a7aef517 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: I9558937a133eebdee090d3999a00567d788b7a0c
2018-04-03 16:38:30 +00:00
Ryan Beisner c87affc038 Sync charm-helpers
Also update test helper to stop using a known racy
and deprecation-warned helper (service_restarted).

Change-Id: I1855da50bc1b8abbb04ae450741a2fd96f10df91
2018-02-21 22:50:38 -06:00
David Ames a5e0534af0 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: Icf91dc343e79792504def695ef755af97cfdc871
2017-11-15 07:41:20 -08:00
David Ames 124b5ab5a0 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I81f12128573132a83d98d7fba7038447c73c1bbd
2017-04-28 07:55:13 -07:00
Alex Kavanagh e8a4b29784 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: I6851849b8107e59e9e6ff529348c7b183d36266b
Related-Bug: #1659575
2017-04-27 09:33:06 +01:00
Ryan Beisner a3d8dddf1c 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: Ia8fbfa451e991d241018ab16e27dd81785d60731
2016-09-09 19:43:11 +00:00
Ryan Beisner 17d59c8632 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: Idf952e4958df409fb15a7ea6a53adaebbe8a5abf
2016-09-06 22:08:24 +00:00
Ryan Beisner 0b58504e87 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: I1ee38355112d8c5062340546bd01b1cce6593a3f
2016-07-19 03:39:17 +00:00
James Page 1934c18b3a 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: I134573c5a99f8c1f8ef3fdf08fce838c53a6464c
2016-03-23 09:30:17 +00:00
James Page 6a31d59482 [trivial] Normalize tox config 2016-02-18 10:16:25 +00:00
James Page 7cde5b46c9 Tidy tox targets 2016-02-16 07:01:54 +00:00
James Page 4caa6fd031 Add support for lint and testing using tox 2015-09-14 15:12:33 +01:00