Created
August 4, 2019 15:04
-
-
Save malaya-zemlya/8f72b538ac6bfbd5ab5476d8e118dcd3 to your computer and use it in GitHub Desktop.
Demo of using Vault server harness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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