Skip to content

Instantly share code, notes, and snippets.

@malaya-zemlya
Created August 4, 2019 15:04
Show Gist options
  • Save malaya-zemlya/8f72b538ac6bfbd5ab5476d8e118dcd3 to your computer and use it in GitHub Desktop.
Save malaya-zemlya/8f72b538ac6bfbd5ab5476d8e118dcd3 to your computer and use it in GitHub Desktop.
Demo of using Vault server harness
import unittest
from test.vault_server import VaultServer
class TestVault(unittest.TestCase):
def setUp(self) -> None:
# establish connection to Vault
pass
def tearDown(self) -> None:
# close connection to Vault
pass
def test_something(self):
# perform some tests
pass
if __name__ == '__main__':
with VaultServer('vault', log_level='warning'):
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment