Commit Graph

28 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
Liam Young fc3462b6a7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I49c3864dbe7ad476e67c6ade54d352e0520682b9
2023-01-17 08:55:53 +00:00
utkarshbhatthere db79f28906 Fixes openssl dependency issue for tests
Change-Id: I2cfaf1de8d2096522cb435751be874df0d985578
2022-09-28 07:54:41 +00: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
Luciano Lo Giudice 5c4cab3f82 Add the 'zonegroup' and 'realm' keys to ceph.conf file
This patchset adds these 2 additional keys to the ceph.conf file,
which are used in multisite configurations when present.

Change-Id: I51ca46bbb3479cb73ec4d9966208ed794f0ed774
Closes-Bug: #1975857
2022-05-31 18:08:13 -03:00
Hervé Beraud c817ef666b Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: If352ea32d18cd3d1d8bc5577a32c0397e1cb7e93
2021-12-15 11:03:09 +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
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
Alex Kavanagh aadc60233e Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I4346d715d47b77e862ecf75d6ab6f00e1dcab752
2021-05-03 16:03:18 +01:00
Alex Kavanagh 916fbd4474 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I6c46959aa659454d28880e375e3488058227dca7
2021-04-03 20:22:37 +01: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
Chris MacNaughton 518f2cdc37 Retarget Zaza to master now that split has landed
This change is required as Zaza underwent a split of the openstack
tests from the Zaza project, so we had to track the working branch
until that change landed. As it has landed, it is now time to use
Zaza from master again

Change-Id: I3f4b9ba3177a1262468d4222a9f9c4f3df078398
2019-05-24 08:49:23 +02:00
Chris MacNaughton 8d9fe14003 Migrate to split zaza - zaza.openstack
This change adds in zaza.openstack, as well as changing the
branch target of zaza to a branch with zaza.openstack
removed, allowing us to validate the new library

Change-Id: I72415540bee6eea1969432bb3e35a5573def9d49
2019-05-10 17:17:53 +02:00
Chris MacNaughton 694be9e401 Remove duplicate CharmHelpers
Because we have charmhelpers in-tree, adding it via
test-requirements.txt means we have duplicate modules

Change-Id: I7109f96124b3b52fd25a41d3ac60c37e651eb43a
2019-05-07 17:23:04 +02:00
Chris MacNaughton 33e4afc8b0 Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: Ib39798d8676e9431a55be6a0a52e9ad5de66f3da
2019-04-26 14:05:47 +02:00
Pete Vander Giessen b1eb407124 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I924488478eeb61a3cb2976e294c7015f933d8258
2019-03-07 17:10:39 -05: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
Ryan Beisner c2481813f8 Update requirements
Change-Id: I6b0f06d94defd65bfa491ac7a5b5b1063bdfc127
2018-10-03 11:15:12 -05: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 a4ef73475d Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Ia9a42cd4a76a6fa8a70e7092b9d61657816d2d65
2017-04-28 14:03:08 -07: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 0b2168037a Add tox support 2015-11-03 11:58:54 +00:00