Commit Graph

8 Commits

Author SHA1 Message Date
Frode Nordahl af0eac506d
Use common pool create/update handling code
Use the Pool classes ability to initialize themselves from op.

Some pool properties should be allowed adjusted after a pool is
created.

The Pool quota property is already handled ad-hoc in the
`charms.ceph` broker handling code, let's bring it over to the
pool objects along with the handling of the compression properties.

Move some missing unit tests here from ceph-mon charm.

Merge after https://github.com/juju/charm-helpers/pull/497

Change-Id: Ibec4e3221387199adbc1a920e130975d7b25343c
2020-08-26 15:27:03 +02:00
Hervé Beraud 4f135d9e97 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.

Change-Id: Id257b597368aff252ce7120b9dbc02f21a41e629
2020-06-09 00:03:48 +02:00
Frode Nordahl fead2944a8
Unpin flake8, fix lint
We need to unpin flake8 to allow linting on Python 3.8 systems.

Change-Id: Idf2fea27b19cec47ffed9891b518ac7b5b75e405
2020-03-12 11:12:37 +01:00
Frode Nordahl 151a242dba
Add helper for creating rbd-mirror key
tox: Remove cleanup of Python object files as this breaks
in the upstream gate.

tox: While at it migrate from os-testr to stestr.

Change-Id: I1bad5311ed034188a78dc67b493c22bff7ce4f7d
2019-02-13 07:08:22 +01:00
Chris MacNaughton 04e1b64cb7 Move nose to test-requirements.txt
Change-Id: If064647ebae547564d1d2d9e03997a1d4445d1f3
2016-11-15 10:03:01 -05:00
James Page 7766bef0b9 Fixup py3 compatibility 2016-09-20 14:49:19 +01:00
Chris Holcombe 33d1d35e7a Move unit tests to shared library and remove dependence on utils code 2016-09-07 13:31:23 -07:00
Chris Holcombe 13f8e8a1b0 Add pool support to get_named_key
This patch adds a list of pool support into the
get_named_key
function to allow callers to specify the pools the cephx key
should have access to.  This patch also adds in tox testing.
2016-08-04 15:12:00 -07:00