Пример #1
0
 def setUpClass(cls):
     """Run setup for Vault tests."""
     cls.clients = vault_utils.get_clients()
     cls.vip_client = vault_utils.get_vip_client()
     if cls.vip_client:
         cls.clients.append(cls.vip_client)
     cls.vault_creds = vault_utils.get_credentails()
     vault_utils.unseal_all(cls.clients, cls.vault_creds['keys'][0])
     vault_utils.auth_all(cls.clients, cls.vault_creds['root_token'])
     vault_utils.ensure_secret_backend(cls.clients[0])
Пример #2
0
 def setUpClass(cls):
     """Run setup for Vault tests."""
     cls.model_name = zaza.model.get_juju_model()
     cls.lead_unit = zaza.model.get_lead_unit_name(
         "vault", model_name=cls.model_name)
     cls.clients = vault_utils.get_clients()
     cls.vip_client = vault_utils.get_vip_client()
     if cls.vip_client:
         cls.clients.append(cls.vip_client)
     cls.vault_creds = vault_utils.get_credentails()
     vault_utils.unseal_all(cls.clients, cls.vault_creds['keys'][0])
     vault_utils.auth_all(cls.clients, cls.vault_creds['root_token'])
     vault_utils.ensure_secret_backend(cls.clients[0])