예제 #1
0
 def setUp(self):
     super(BackupsControllerAPITestCase, self).setUp()
     self.backup_api = cinder.backup.API()
     self.ctxt = context.RequestContext(fake.USER_ID, fake.PROJECT_ID,
                                        auth_token=True,
                                        is_admin=True)
     self.controller = backups.BackupsController()
예제 #2
0
    def setUp(self,
              enforce_scope=False,
              enforce_new_defaults=False,
              *args,
              **kwargs):
        super().setUp(enforce_scope, enforce_new_defaults, *args, **kwargs)

        self.override_config('backup_use_same_host', True)

        self.controller = backups.BackupsController()

        self.api_path = '/v3/%s/backups' % (self.project_id)
        self.api_version = mv.BASE_VERSION