Commit Graph

10 Commits

Author SHA1 Message Date
Alex Kavanagh d00d011c18 Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: Ice2a2d2379349c8cf7d77027cbca78b19e9d72d1
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1170
2023-11-09 07:31:46 +00:00
Alex Kavanagh bf41f03ee9 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: Ide0a96c29f72b5233fc9b154e32c054591348191
2020-09-28 12:56:59 +01:00
Hervé Beraud dc7b7713d7 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: Iab7c4a26d85c8a921a500165f99e0cdc23993940
2020-06-09 15:55:19 +02:00
Frode Nordahl 31270aa9a7
Enable bionic/stein and disco/stein functional tests
Update name of ``backup_driver`` for Stein and onwards, reflecting
changes of how Oslo library now does import of drivers.

Change-Id: Icb050254488437bd1635fbe73b564238869e3421
2019-04-16 11:34:56 +02:00
Frode Nordahl abefc9a358
Request appropriate Ceph application name for pools created
Change-Id: I33107f4266f481cf79bc8fe9d29428185b52e4c8
2019-03-13 16:09:01 +01:00
Alex Kavanagh a53b14a19b Convert the charm to Python3
Change-Id: Ibdb9e582d75fd0c7cd130dddae9966aac5da3279
2019-02-13 16:24:29 +00:00
Ryan Beisner 7ff9648c2c
Fix lint in unit test
Change-Id: I5b46b36cc2ae40f683543d80a57227072c98a8c1
2018-11-01 14:58:17 -05:00
Nobuto Murata 14f6f2885b Use proper ceph.conf generated by ceph-backup relation
When a primary Ceph cluster is used as a volume backend and a secondary
cluster as a backup backend, target Ceph mon addresses will be
different. But previously both Cinder volume and backup services use the
same /etc/ceph/ceph.conf generated by cinder-ceph and ceph-mon relation.
Instead, use separete ceph.conf files based on relation types.

Change-Id: I1d82db179b41b0c01d2a217838384ac71ef7bdad
Closes-Bug: #1713489
2017-08-29 10:23:13 +07:00
James Page aa57d5f48e Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I57efcf92ebd630190d351e8203c409d9c3136211
2016-06-28 12:10:59 +01:00
Edward Hope-Morley 199440c0df First commit of cinder-backup subordinate charm 2015-10-01 17:11:59 +01:00