def setUp(self, enforce_scope=False, enforce_new_defaults=False,
           *args, **kwargs):
     super().setUp(enforce_scope, enforce_new_defaults, *args, **kwargs)
     self.controller = snapshot_actions.SnapshotActionsController()
     self.admin_controller = admin_actions.SnapshotAdminController()
     self.api_path = '/v3/%s/snapshots' % (self.project_id)
     self.api_version = mv.BASE_VERSION
     # Relax the snapshots GET_POLICY in order to get past that check.
     self.policy.set_rules({snapshots_policy.GET_POLICY: ""},
                           overwrite=False)
Example #2
0
 def setUp(self):
     super(SnapshotActionsTest, self).setUp()
     self.user_ctxt = context.RequestContext(
         fake.USER_ID, fake.PROJECT_ID, auth_token=True)
     self.controller = snapshot_actions.SnapshotActionsController()