def test_token_authentication(self): """ Authenticate using token """ parameters = {"auth": "token"} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg="Authentication with token failed") test_client.adapter.close()
def test_approle_authentication(self): """ Authenticate using approle """ parameters = {"auth": "approle"} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg="Authentication with approle failed") test_client.adapter.close()
def test_userpss_authentication(self): """ Authenticate using userpass """ parameters = {"auth": "userpass"} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg="Authentication with userpass failed") test_client.adapter.close()
def test_userpss_authentication(self): ''' Authenticate using userpass ''' parameters = {'auth': 'userpass'} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg='Authentication with userpass failed') test_client.adapter.close()
def test_token_authentication(self): ''' Authenticate using token ''' parameters = {'auth': 'token'} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg='Authentication with token failed') test_client.adapter.close()
def test_approle_authentication(self): ''' Authenticate using approle ''' parameters = {'auth': 'approle'} test_client = vault_obj(parameters) self.assertTrue(test_client.is_authenticated(), msg='Authentication with approle failed') test_client.adapter.close()