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: I69e03a14ab370bd6870e4325627e7be86fe2a53f
Enable passing the certificate authority on the relation in order to
enable TLS communication to the MySQL DB.
In order to enable MySQL to use TLS for client connections all that
is required is the CA certificate. A certificate and key may be used
for client certificate authentication. However, since almost all
deployments will not use certificate authentication, focusing on the CA as SSL
data complete makes sense.
Change-Id: I785afe7f64cb57caa857178d529e3cabdcf63517
Prior to this change there was no way to specify a port for mysql
connections. Add this to the Shared DB connection information.
Change-Id: Iafcc106fca44479e89b4b66a0a3988ffeee01f04
Closes-Bug: #1876188
Check the allowed_units list past back by the db before raising the
'available' state to ensure charms do not try to connect to the db
before they are allowed.
Change-Id: I17228ba5d82249f0a5baffab1c2d200963b55b10
Closes-Bug: #1861665
If the DB is in maintance mode then remove the 'availble' states
to let the charms now the db cannot be accessed.
Depends-On: I5d8ed7d3935db5568c50f8d585e37a4d0cc6914f
Change-Id: If31eaad0b781d4250524335377152f3bd140f57b
- 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: I4af06dff68ecb5c74e6af0a94a7a3a678c632f13
If there are still HA units in the relation when a single unit departs
re-evaluate state. If it is the last unit, unset all relation states.
Handle the case juju remove-relation and juju add-relation.
Change-Id: I92909d6203fc00d45d7d6edf0a981f9d759add53
Partial-Bug: #1800730
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I381d41bafff73e8071776ffea21b161884fb2d7d
Story: #2002586
Task: #24317
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: I968633e7c1df794202b9a524b314e58af7765ab8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The job --allow-unverified is obsolete, also python-apt cannot be
installed and is unneeded for current jobs.
Remove so that python installation works.
Change-Id: If78580407a9ed6498853101982bd67cac82b7069
Instead of relying on the user of the interface to set the correct
hostname parameter when configuring database access request,
automatically determine the correct hostname using:
1) In Juju >= 2.0, using the network space binding of the
named relation.
2) In Juju < 2.0, using the units private-address.
The hostname relation value can be overridden using the hostname
parameter of the configure method.
Change-Id: Id69a3786d2ac754aa8659b8cde977c4d86a37fc8
Add required configuration files and generally update the interface
after move to OpenStack git/gerrit.
Change-Id: If80a3393d566953c3349c74e62b860b582961769