def setUp(self): self.credentials = { 'username': '******', 'password': '******', 'auth_url': 'http://127.0.0.1:5000/v2', 'tenant_name': 'some_tenant' } self.keystone = KeystoneClient(**self.credentials)
def __init__(self, host=None, port=None, keystone_credentials={}): #: an url to nailgun's restapi service self.api_url = self.api_url.format(host=host, port=port) #: keystone credentials for authentification self.keystone_client = KeystoneClient(**keystone_credentials)