Commit Graph

24 Commits

Author SHA1 Message Date
Corey Bryant a6de5f8d77 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: Id93b0ee0999c7a23ef34e68646b03d910816c655
2023-03-07 20:30:33 +00:00
Liam Young 35896561c7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I6ca5d9177be028ca24e84f455821560923fcad54
2023-01-16 14:28:16 +00:00
Corey Bryant 2604499010 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: Ida68ffdab34c3136f3acf98629e4be6fda3bcea2
2022-08-26 18:40:40 +00:00
Alex Kavanagh 57a20ffb22 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: Iee7fb24e06d23b3fbf35f05e7931dbdc25b37d64
2022-02-22 05:13:41 +00:00
Corey Bryant 3b3c0ee32b 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: Id4a36b0f41d2644a94d266ca1990a270e4e7452f
2021-11-19 16:32:05 -05:00
Aurelien Lourot 6a22df54a7 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: Ia525250e139ea0fd86cc0f19919a7739eda1cb09
2021-07-22 14:58:21 +02:00
Alex Kavanagh 2ee597c08f 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: I72e3c460571f3e7a64ebb74d1535fb046e4a883f
2021-05-03 16:08:38 +01:00
Alex Kavanagh 6facf6431c 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: I78d24b0e2f4218abaa6c7fd5854319ab9fa6f01a
2021-04-03 20:30:36 +01:00
Alex Kavanagh 033500842d Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers
* include fix for local_address() with NoBindingError

Change-Id: I7d8b1ac654f1c7b394c9218c7dbbbe8e6980632d
2021-01-20 11:51:58 +00:00
Aurelien Lourot 50d24d89c3 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: Ic09c2f26ff2176bde79fbbe877fc4c66bf92c19d
2020-12-11 14:01:12 +01:00
Alex Kavanagh 23ca487ae9 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: Ib702ce2d31f41cf779c2372b69c4d53f82e9e1eb
2020-09-26 18:36:44 +01:00
Frode Nordahl ed3a162d57
Unpin flake8, fix lint
Change-Id: I0c3a4b4f8291e0b19d131269554e09346754e120
2020-09-08 09:39:01 +02:00
Alex Kavanagh a8f1661d61 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: If1671c83cd83caebb05a167011f554b76650b07b
2020-07-27 20:56:12 +01:00
Hervé Beraud 269a15a8fc 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: I07af25792bf55b00092ec9b1d47497e2f422fe6c
2020-06-09 14:34:21 +02:00
Aurelien Lourot 70b67e0c84 Sync helpers for 20.05
Change-Id: Idb46b1a924314a126367bfada8c7851f0b4ea21f
2020-05-18 14:46:36 +02:00
Jose Guedez 6806db670b Port Charm Neutron-Gateway func tests from Amulet to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/142

Change-Id: Ib0b8fe5fe7273ce352c3771f4e59e310fff60f65
Closes-bug: #1828424
2019-12-11 15:42:07 +11:00
Ryan Beisner 07865bd62c
Sync charm/ceph helpers, tox, and requirements
Also clean up pre-existing pep8 violations in the
files/* dir which was previously not covered by lint testing.

Change-Id: I443a084681d5788c89cdadf2ff999030f4b4d735
2019-10-01 09:11:03 -05:00
Pete Vander Giessen 91fe7bd6a5 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ib4948bc555ec1c301039165703eefda33760e33c
2019-03-07 17:12:21 -05:00
Ryan Beisner 42ac2016a3 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ica07d8f246f105541f12c5daf8df846047f00740
2018-10-03 13:10:30 -05:00
James Page b63f8687f9 Update for Python 3 execution
Refactor codebase and unit tests to default to execution
under Python 3.

Drop install shim as Python 3 is always present >= trusty.

Drop legacy dhcp and network reassignment code from charm as
a) this relies on a py3 neutronclient (not supported on older
releases) and b) this function was superceeded by the ha-legacy-mode
and then neutron router and network HA built in functionality.

Use charmhelper provided get_host_ip as this superceeds the in
charm version of this function.

Change-Id: I0b28bf0851d44e85b1e856cbd97b71099faa76ae
2017-11-16 11:19:58 -08:00
David Ames a0e11758a2 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I0368b786984f120d9b79292aea2524099a68105e
2017-04-28 08:42:44 -07:00
James Page 34fbfcfb08 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: I9b36f8a6375da5cf5807d51e1d009c47d74dc1dd
2016-07-18 17:58:02 +01:00
James Page f4dfe12f48 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: Id04a1238b4460ba4c4de6549c6fe937cb90d9d9d
2016-03-23 09:30:17 +00:00
James Page f01229827f Add tox support 2016-02-23 17:55:02 +00:00