Commit Graph

37 Commits

Author SHA1 Message Date
Trent Lloyd ebca1152ec Fix failing functional tests
Update tox.ini to support the new TEST_CONSTRAINTS_FILE

Additionally pin netaddr in test-requirements.txt. The latest netaddr
1.2.1 release throws an error when passed None, which it previously
didn't. This causes MonContextTest.test_ctxt_missing_data to error out.
This should probably be fixed in charmhelpers later.

Change-Id: I5bf8900c426395421c73ec3d52ebd691cc5496f8
2024-02-29 15:53:08 +08:00
Chris MacNaughton a1267f4919 Add support for interim Ubuntu releases
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include kinetic and lunar
- update snapcraft to allow run-on for kinetic and lunar

Change-Id: I05ce01c13efdd453c06e3c8d615d64bad6e27727
2023-03-20 13:39:08 -04:00
Liam Young fc3462b6a7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I49c3864dbe7ad476e67c6ade54d352e0520682b9
2023-01-17 08:55:53 +00:00
Chris MacNaughton bb16e670dc Partial revert[1] to re-enable Focal support
1: 51f59879d3
Change-Id: I565e36b94d249d2cf0beccf1480189a19da008d9
2022-10-31 14:20:36 +01:00
Corey Bryant 51f59879d3 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: Ieb1ef7b7ab76775f5769621a6a7cbcfb18c40b7f
2022-08-26 18:40:29 +00:00
Chris MacNaughton 1f4dbd3a5d Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata
- Default source is yoga
- Charmhelpers and charms.ceph sync

Change-Id: I39f091db8ef8f18c0a40d4e46d54dfc964c03d70
2022-04-08 10:23:48 +01:00
Alex Kavanagh d81d4bb128 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: I56e04707036b994c52cc9cfcb19e6c37cd41309e
2022-02-15 15:43:00 +00:00
Corey Bryant 3a27c7090e 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: I8b0ac822cdf37d70ac39f1b115f95a448afb624d
2021-11-22 15:22:23 -05:00
Alex Kavanagh d15ac894a9 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
- Remove redundant (and failing) IdentityContext tests
- Remove EOL groovy-* gate tests.

Change-Id: I32c8195ff76164de565e6af7c329645be40769f1
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-05 19:15:09 +01:00
Aurelien Lourot fb0565a3e1 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: I1db2d63e04b6d5de2338057d76ecf651fe9cf668
2021-07-22 14:52:44 +02:00
Aurelien Lourot 330539066a 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: Ie7ecbc84ddea41d7d4907f2e39fb723b3a8da549
2020-12-15 10:50:30 +01:00
Alex Kavanagh 85b3b74026 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: I13a2e11b53e290316919efca90aaa513a1f40975
2020-09-29 19:28:34 +01:00
Frode Nordahl 7327e9c4de
Add Ceph BlueStore Compression support
Sync c-h and charms.ceph.

Unpin flake8

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: Ib068f39d43bade2502bc2d3cbbfb86324a03407a
2020-09-25 16:02:44 +02:00
Aurelien Lourot 47564c8207 Sync helpers for 20.05
Change-Id: Id86f9adb55988f47838ebc5236e2bca2cc384906
2020-05-18 14:39:32 +02:00
Frode Nordahl 969e6e0cae
Unpin flake8, fix lint
We need to unpin flake8 to allow linting on Python 3.8 systems.

Sync charms.ceph.

Depends-On: Idf2fea27b19cec47ffed9891b518ac7b5b75e405
Change-Id: I91a2133b6d7dc7e59d62dd80779cdc6e77206a20
2020-03-12 11:14:34 +01:00
Ryan Beisner dc456f91ed
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ibb199504764b139f0207e0bd2e40a199559e1e44
2019-10-04 12:51:57 -05:00
Zuul 71b3e3b8eb Merge "Enable bundle specific tox zaza target" 2019-08-23 12:32:32 +00:00
Corey Bryant 843c06f449 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

Change-Id: Ie3b80cb280794688c9a907779c30e049a13936f1
Story: #2005924
Task: #34228
2019-08-16 22:00:40 +00:00
Chris MacNaughton 0094498ac7 Enable bundle specific tox zaza target
Change-Id: Ia9770187b471f32f7dbeeb3630f367174ea0314f
2019-07-08 16:32:04 +02:00
Ghanshyam Mann 52478cc395 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I17d4ecbe471032b256b2113768a8e62c4fd45161
2019-04-23 23:13:00 +00:00
James Page 2eef15113f Switch functional testing to zaza
Drop amulet tests and create bundles for all target
Ubuntu/OpenStack series combinations inline with
current best practice.

Zaza tests are not a direct translation from the Amulet tests;
the new tests focus in Ceph RADOS Gateway and integration with
keystone rather than deploying compute, image and block
services (which do not make use of the ceph-radosgw charm).

Change-Id: I41914df024eb02e5a555bc0e44993e09d310933e
2019-02-07 14:10:48 +00:00
James Page 53794aad7a Switch charm runtime to python3
Update charm to execute hooks and actions under Python 3; this
includes dealing with upgrades (by switching the upgrade-charm
hook to be a bash script which installs the required charm runtime
dependencies).

This commit also drops code from ceph.py which was used across
other ceph charms in the past; only the functions required for this
charm have been retained.

Change-Id: I5e222d907bfa34ffacad16c51abd1278d7d82f56
2019-01-18 13:31:33 +02:00
Doug Hellmann 2ce23f48ce 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: I97f0eb421287a67964d4ada71c766113f334b89d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 09:08:23 +01:00
Zuul ea1fbef915 Merge "Switch to using stestr" 2018-07-25 16:12:51 +00:00
Vu Cong Tuan e007eca5cb 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: I2ad2e09a6134be0c2f96ebe5ec82201c68eb74ab
2018-06-28 08:40:20 +07:00
wangqi facca8bfad Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: I151eb37008936358bd4108a2510c924c261dba8e
2018-05-22 05:26:59 +00:00
David Ames 65b8b75c2a Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ie69b71387cf43add775cffe9d948ec1a42bf7cae
2018-05-17 11:12:01 -07:00
Ryan Beisner 82501fd0cc 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: I0998532143995dd8ced64cdd5660f2d44cbbcbb9
2018-04-03 16:29:25 +00:00
Ryan Beisner 51921041e1 Sync charm-helpers
Change-Id: I866f3f281799a610f59f3561864e6f411d4bb138
2018-02-21 14:07:45 -06:00
Andrew McLeod 0bd85c7380 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I321befa86209f83494ed660fae6212c88dbd358b
2017-12-06 10:31:08 -08:00
Alex Kavanagh ddcd432515 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: Iacbb082b9db0cff48ddd595cc1eaa8440aa16892
Related-Bug: #1659575
2017-03-29 15:21:57 +01:00
David Ames 38ec619d6f 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 resolving amulet full recheck failures.

Change-Id: I1864ee41be6815f9779669cab8ad8691bd78ffa5
2017-03-23 09:32:43 +00:00
Ryan Beisner 88bd5777cf 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: I23cfd47fcee90678b4ba818ddc1d9ace4edd54f3
2016-09-09 19:21:59 +00:00
Ryan Beisner 33ebb858c5 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: Id91a7281d98be3bb69d42257ea9213471bdefa69
2016-07-21 18:13:52 +00:00
James Page c29fc43d1e 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: I10271bfa64674a4789d1cc623a2a7250a154ec43
2016-03-23 09:30:16 +00:00
James Page 2d382a3d0d Tidy tox targets 2016-02-16 07:00:26 +00:00
James Page 0b2168037a Add tox support 2015-11-03 11:58:54 +00:00