Merge pull request #520 from mastier/master

fix formatting issues and docstring
This commit is contained in:
Alex Kavanagh
2021-03-09 17:44:45 +00:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -34,7 +34,6 @@ import zaza.model
import zaza.utilities.juju as juju_utils
class BaseVaultTest(test_utils.OpenStackBaseTest):
"""Base class for vault tests."""

View File

@@ -138,9 +138,12 @@ def get_vip_client(cacert=None):
def get_cluster_leader(clients):
"""Get Vault cluster leader
"""Get Vault cluster leader.
:param clients: Clients list to get leader
:type clients: List of CharmVaultClient
:returns: CharmVaultClient
:rtype: CharmVaultClient or None
We have to make sure we run api calls
against the actual leader
"""
@@ -158,6 +161,8 @@ def get_running_config(client):
:param client: Client used to get config
:type client: CharmVaultClient
:returns: dict from Vault api response
:rtype: dict
The hvac library does not support getting info
from endpoint /v1/sys/config/state/sanitized
Therefore we implement it here