Commit Graph

24 Commits

Author SHA1 Message Date
Liam Young 83b866eaac Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I716fb1056d5e603a9e0e6414fa46df5b4ae1031d
2023-01-17 17:50:03 +00:00
Corey Bryant f9206facde 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: I8f2c34f3a4a0601ee19aa694b323cc0f9ee65616
2022-08-26 18:40:41 +00:00
Hervé Beraud 71bc319326 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: Id925078c5c04c2f89a570bdf7171c666839f9e40
2021-12-15 14:16:56 +00:00
Rodrigo Barbieri 997f1e5f93 Update requirements files for py35 compatability
Change-Id: I245d83922090c313966e8677fd9367f60b778231
2021-11-02 11:22:30 +00:00
Aurelien Lourot 27df75e61a 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: I6e7a1c719921d48745e047af46017a43ff927643
2021-07-22 14:58:51 +02:00
Alex Kavanagh 374dc1f035 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: I66a986bd9dfcd03fa199fb293ac8f8869a3d6959
2021-05-03 16:09:06 +01:00
Alex Kavanagh c59fa98451 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: I95f8da0789b7f165677b031284acc4fadfdfeab4
2021-04-03 20:31:22 +01:00
Aurelien Lourot 9f29f8753a 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: I127b8a2636857f1bddfb6d78175370421a4c7ab8
2020-12-15 11:18:17 +01:00
Alex Kavanagh 1beb8444b4 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: Ie7640826be5426157c57877348cef43ab6067543
2020-09-28 09:37:24 +01:00
Aurelien Lourot c1b2ce0f0a Add focal-victoria to the test gate
Also reduce chances of spurious mysql-innodb-cluster "super-read-only"
failures.

Change-Id: Idbee09f4949dbf64dc09b86cc1c7e9b1b97722cf
Partial-Bug: #1882205
2020-09-15 15:26:04 +02:00
Aurelien Lourot c4eaed25f2 Migrate functional tests from Amulet to Zaza
Change-Id: Ief33e4bebff904778df18fafb77c318ec212677b
Closes-Bug: #1828424
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/233
2020-04-19 17:02:22 +02:00
Hemanth Nakkina 793daaef3e Fix zuul/CI failures
Zuul check openstack-tox-py35 fails with the following error
ERROR: Package 'python-heatclient' requires a different
Python: 3.5.2 not in '>=3.6'

openstack client packages in test-requirements are only
required for func-smoke tests. Also func-smoke tests are
executed on python 2.7 environment. So the fix pins the
exact versions of openstack client packages for python 2.7.

Keystone config parameter admin-token is removed from latest
keystone charm. Remove the param from the bundle generator.

Change-Id: I657e221c43ec9807fb1886089d7068727ffb9ed9
2020-03-31 11:43:06 +05:30
Alex Kavanagh f98a6bd962 Pin -python-cinderclient <5.0.0
Recently, python-cinderclient released a new version at 5.0.0.  This
removes the v1 client, which the tests currently rely on.  This patch
pins the client in nova-cc until the tests are upgraded.

Change-Id: Ibf071f4de96861a336614075970ef30936645a3c
2019-09-26 09:18:56 +01:00
James Page dd3fdda86d Switch to direct execution of stestr for unit tests
Drop dependency on ostestr, switch to using stestr run.

Change-Id: Idf1ddc01f891d58fecd7be119da9e8b1f124b5e0
2019-03-06 12:34:52 +00:00
Ryan Beisner 55a4fd3cdd Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ic8036ef6dccca3ad035d0d4a410a08bba549240d
2018-10-03 13:10:49 -05:00
Liam Young e20db83c7d Add nova-metadata service
Add a service for handling nova metadata api services. This was
previously handled by the neutron-gateway and still is for
deployemnts up to and including Pike, For the neutron metadata
service and the nova service to communicate they need a shared
secret. To achieve this, the change includes:

* A charmhelper sync to get support for multiple wsgi vhosts
* Rendering new wsgi vhost and corresponding haproxy config.
* Setting a shared-secret down the relation with the neutron
  gateway.
* Remove fragile keystone authtoken checks as they are failing
  after a ch sync and any issues will be caught by the instance
  launch functional test.

Change-Id: I5ad15ba782cb87b6fdb3c0941a6482d201670bff
2018-10-03 07:24:05 +00:00
Liam Young 36e9518921 Block endpoint reg if cluster partially formed
When an existing cluster of the service is scaled out the new unit
will join with keystone before it is fully clustered. In identity
joined hook the charmhelpers function canonical_url is called which
in turn uses another charmhelpers function, resolve_address.
resolve_address will only return the vip if the vip is set in config
AND the unit is clustered. This means that the units local address
is returned and that is then registered with keystone.

This change gates registering an endpoint if the cluster is
partially formed.

Change-Id: Ibe7d2286de130f045257ad6552f7a5b1279958b6
Partial-Bug: #1544959
2017-10-03 10:02:11 +00:00
Ryan Beisner a332621052 Update requirements for git charmhelpers
Change-Id: I57490579664d55aca17244afe5d9da635d2afff2
2017-10-03 04:33:15 +00:00
Ryan Beisner 15071bdd5f Remove charm-helpers from tests dir and use venv instead
Change-Id: I9a4245e764e268327466bc0fbe8b5383303ad07f
2017-05-26 16:24:32 +00:00
David Ames 91713886a6 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I8dbbc66b2aaaee90c6565eea1fafb324f3e51734
2017-04-28 07:47:51 -07:00
Corey Bryant 7dd8357b06 Enable SSL termination for nova-placement-api
determine_ports() was not adding the nova-placement-api port to the
ports list because it is run under the apache2 service. This fix
enables determine_ports() to get 'nova-placement-api' from the list
of services rather than 'apache2', allowing it to determine the port
that nova-placement-api uses.

Also enable tests/gate-basic-xenial-ocata in this commit.

Change-Id: I8113e911272ee671026bace9f6e0e8c4ce072e6b
2017-03-01 14:27:35 +00:00
James Page 3e0520aef7 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: Id353b3a1c8a74d8b2bed7fe0490090b5273e228f
2016-07-19 10:21:50 +01:00
James Page 60377b524f 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: I92961bab236d948288d986d7edeaa63231011f26
2016-03-23 09:30:17 +00:00
James Page b01e50663c Add tox support 2015-10-30 15:28:07 +09:00