Commit Graph

43 Commits

Author SHA1 Message Date
Alex Kavanagh f3bf6be831 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: Ib7947ab8dfd4c4b18c482f4df1a7c6f5b5e3756f
2024-02-24 19:57:46 +00:00
Corey Bryant dc7ecbc6ec 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: I6795ce22f1330309771f4d8d43cee255e27c2a10
2023-03-07 20:28:58 +00:00
Billy Olsen 966e522dc5 Upin the versions of tox
Unpin the versions of tox, setuptools, etc. This removes the issue
with tox 4.x breaking the virtualenv dependencies.

Change-Id: I103e16c70aee394331b37ec0cf323e014011d3ae
2023-01-04 20:48:11 -07:00
Corey Bryant d031a489a7 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: I506c53b4956024066bc769665525cb022438a0ae
2022-08-31 20:27:43 +01:00
Alex Kavanagh afe8ba719f 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: I62d95763a6283d8dc7f54b65b0474d48b20608f0
2022-04-06 10:57:03 +01:00
Alex Kavanagh 50fd97c4ee 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: Ic9e267db4934cb95125eebb2ff3b1ca09d64e003
2022-02-17 12:30:16 -05:00
Corey Bryant c8dea9f6da Switch to yoga unit jobs and add py39
Change-Id: If2665b63728eb5a800fcb025a642d0413f54157a
2021-11-17 14:49:03 -05:00
Alex Kavanagh ac90d670be 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
- remove EOL groovy-victoria check

Change-Id: Id72bc716f5f9c354ea495301b1f2b862914e9102
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/648
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-04 15:18:26 +02:00
Aurelien Lourot 50ca3cc76c 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: I7613f4296a86c7889bdad41a68868117b4d93fdb
2021-07-22 14:59:02 +02:00
Aurelien Lourot afdf2329d1 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
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I784af3e2c2d61f40926a83bfa8dbacbc74a31d61
2020-12-15 10:53:05 +01:00
Alex Kavanagh 1643979f79 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: I79af80dd7a0faa9175c9dca1fac669f8c187e3f5
2020-09-26 18:37:33 +01:00
James Page 94862373d4 Lift flake8 upper bound
Ensure pep8 target can be run on >= Ubuntu 20.04.

Add W504 to list of permitted warnings.

Change-Id: I4de563dd292c86378b26d46922d1e83805b1fabd
2020-08-06 06:02:09 +01:00
Alex Kavanagh 7dea8da5fb 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

Change-Id: I4f550537dd4c10719c0ea8a269e59d59e5634f15
2020-07-27 20:57:04 +01:00
James Page 747fa2d68d Misc fixes for charm infra
Update pydev project definition to use python 3.

Drop upper bound on flake8.

Tidy misc lint across codebase with newer flake8.

Change-Id: I9637ac603cb3801c9e3ffa8c2b0897968d42ada5
2020-05-26 09:38:07 +01:00
Aurelien Lourot e5166a2c03 Sync helpers for 20.05
Change-Id: I99adb66fa9ff58a97f7cdf42ffecb44d8e4dd2f6
2020-05-18 14:47:34 +02:00
Sahid Orentino Ferdjaoui 8490919e2f Migrate functional tests from amulet to zaza
Change-Id: I339748e528ac57879ae2210f8f1e196fd04093dc
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/229
Closes-Bug: 1828424
2020-04-14 14:56:29 +02:00
Corey Bryant 77a20127da Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ia9177d6cedd0224b54426f1eb5d52476e1d9e798
2019-10-22 15:22:17 -04:00
Ryan Beisner 99a9cf63ba
Sync charm/ceph helpers, tox, and requirements
Change-Id: I9fecb63e7997099cb54737aa9fecc7777e67365f
2019-09-30 21:43:39 -05:00
Chris MacNaughton 82c5027814 Ensure that VNC only binds on the internal network
When the VNC server is set to bind to 0.0.0.0,
unauthenticated console access is possible to any
VM via any of the compute host's interfaces. This
access should be restricted to an internal network.

Change-Id: Ibbc12ae282320f966eec90e9116388233e65eb9a
Closes-Bug: #1843004
2019-09-06 11:55:44 +02:00
Zuul d04fa4764c Merge "Add Python 3 Train unit tests" 2019-08-13 17:57:15 +00:00
Corey Bryant 4b7beec744 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: I58b115a17cf4293db6c8a0c1cd553f20fa4a3894
Story: #2005924
Task: #34228
2019-07-30 10:19:16 -04:00
Chris MacNaughton 155054511a Sync charm-helpers
Change-Id: I67488285c0435c02dab30cea618df5a0fd64cc4d
2019-07-16 05:54:02 +02:00
James Page e6c592ebfe Switch to stestr for unit execution
Change-Id: Idf6554ce483e9172d5f334a39a6e5251da12f27c
2019-03-06 17:19:20 +00:00
Paul Goins 5656267bbb 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: I237b056a9bc0072b956f4c47ebb1363d90c8d0a4
2019-03-01 14:42:43 +01:00
Doug Hellmann 82c2e5acdb 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: I389421cce9c131ea8b9f4b1527a8bccd9f2b8a5a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:00:01 +00:00
James Page 280c0d7d96 py3: Switch to using Python 3 for OpenStack Rocky
Switch nova installation to use Python 3 for OpenStack Rocky.

Purge python- packages on upgrade.

Change-Id: I7839c823d51f6a3d166157be19f2e93b8dd72305
Depends-On: Ic5e96336b6a2ca474fc28d358553c6a05e1a75ce
2018-10-08 13:29:27 +01:00
David Ames 32c34d2688 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I4f60a10b1b8983ae512312b2610bec4645b4c1ed
2018-05-09 09:34:26 -07:00
Ryan Beisner 59cce54c67 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: I42387c238e74415ccaf5adb5182ae252bcbf10bf
2018-04-03 16:33:50 +00:00
Ryan Beisner 6bc38e0ab4 Sync charm-helpers
Change-Id: I0a6ef429133616140be7c8b2af5f435a498e4f51
2018-02-21 14:09:48 -06:00
Zuul a9ff556ab1 Merge "Update to run under Python 3" 2017-11-21 18:47:11 +00:00
Author Name b24555e224 Update to run under Python 3
Updating charm to support execution under Python 3.

Change-Id: I9013860b5eefef05bee5b473e30217229fb6a739
2017-11-20 11:04:26 +00:00
Andrew McLeod 84c840227f Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: Ieb6339e82eb656f838ef2f0d405550d994239f77
2017-11-16 15:44:15 +13:00
Alex Kavanagh 2358f94b30 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: Iffd4ed0aecbb966fe493fe0f24bf2422aab55bb6
Related-Bug: #1659575
2017-04-04 18:54:09 +01:00
David Ames 1153c6d602 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: Ib07bdddd6e79f73785105ba4844c7aca654231b0
2017-03-23 11:54:48 +00:00
Ryan Beisner fe8763eeb6 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: I3d2a570b86c8889704f84b311abacc3acc316e3b
2016-09-09 19:43:02 +00:00
Ryan Beisner 3ae1b9fb94 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: Idac55f55d0827053ca7ec51cd06db6d4fa3317f8
2016-09-06 22:09:34 +00:00
Liam Young 31764e3841 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I800bc1f3e721a109fd3fd046f08b667a3593c274
2016-07-21 16:30:43 +00:00
James Page 390b7aa445 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: I60befab62843fa439a6a1fc897851091e4d47d49
2016-07-19 09:44:36 +01:00
James Page 63513d0cb1 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: I35697797e797ef504ea2f7c86185e98abb935c63
2016-03-23 09:30:17 +00:00
James Page 6f20dfdbdc Tidy tox targets 2016-02-16 07:05:53 +00:00
Corey Bryant e70452d21a [james-pages,r=corey.bryant] Add tox support for lint and unit tests. 2015-11-02 21:17:02 +00:00
James Page f7af5a9e72 Drop comment 2015-10-30 15:01:09 +09:00
James Page 16a03869c0 Add tox support 2015-10-30 14:49:18 +09:00