Beispiel #1
0
 def get_image_handler(self):
     if not self.glance_h:
        self.glance_h = glance_test.GlanceHelper(inputs=self.inputs,
                                 auth_h=self.auth_h,
                                 region_name=self.region_name)
        self.glance_h.setUp()
     return self.glance_h
Beispiel #2
0
 def admin_obj(self):
     if not getattr(self, '_admin_obj', None):
         auth_h = openstack.OpenstackAuth(self.admin_username,
                                          self.admin_password,
                                          self.admin_tenant, self.inputs,
                                          self.logger)
         glance_h = glance_test.GlanceHelper(auth_h=auth_h,
                                             inputs=self.inputs)
         glance_h.setUp()
         self._admin_obj = NovaHelper(inputs=self.inputs,
                                      glance_h=glance_h,
                                      auth_h=auth_h)
     return self._admin_obj