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: I0550ad77a072d7edb083f24b260cbe034c8b9c75
A charm may request principal to perform a DB migration. The charm
may also optionally flag that interface availability should be
gated on the completion of the requested DB migration.
Change-Id: Id9ed69880f06b835ff2385721d4cb22e47f37c5d
Depends-On: Iaefcb81fff5ed8a9441c93ac4c8bac3fa12eef15
Gate ``available`` state on remote end signalling availability.
Depends-On: I9eb5f8a6039b74288a395a584f844507448cdc23
Change-Id: I44a23549e4830d89ba3182250c40dfe395767fb0
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.
Change-Id: I77d021dfa8654ab9366bd50f67e4bdbdd17dc1db
When a subordinate charm doesn't provide an explicit value for the
optional "subordinate_configuration" arg, the error "TypeError: argument
of type 'NoneType' is not iterable" happends. Because the principal
charm expects it as a dict as documented in the interface. So let's use
a empty dict as the fallback value.
Change-Id: Ib8456ab32ec8ee5bee160d0b38a61b7ee43e16ca
Closes-Bug: #1803040
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I87cec522de2e0f13119701e44a6226c9a4e85e36
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Add .zuul.yaml,
add .gitreview configuration file
remove installation of python-apt, it breaks build and is not needed.
Change-Id: I99b87a480253d1018bb8cdb55e1766c4f07ba9dc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>