- self.logger.debug("removed %s" % self.test_result_json_file)
-
- def get_nova_client(self):
- creds = self.get_nova_credentials()
- loader = loading.get_plugin_loader('password')
- auth = loader.load_from_options(**creds)
- sess = session.Session(auth=auth)
- nova_client = novaclient.Client(NOVA_CLIENT_API_VERSION, session=sess)
-
- return nova_client
-
- def set_credentials(self, username, password, auth_url,
- tenant_name, region_name="RegionOne"):
- self.username = username
- self.password = password
- self.auth_url = auth_url
- self.tenant_name = tenant_name
- self.region_name = region_name
-
- def get_nova_credentials(self):
- creds = {}
- creds['username'] = self.username
- creds['password'] = self.password
- creds['auth_url'] = self.auth_url
- creds['tenant_name'] = self.tenant_name
- return creds