Esempio n. 1
0
    def setUp(self):
        super(FloatingIPPoolsPolicyTest, self).setUp()
        self.controller = floating_ip_pools.FloatingIPPoolsController()
        self.req = fakes.HTTPRequest.blank('')

        # Check that everyone is able to list FIP pools.
        self.everyone_authorized_contexts = [
            self.legacy_admin_context, self.system_admin_context,
            self.project_admin_context, self.project_member_context,
            self.project_reader_context, self.project_foo_context,
            self.other_project_reader_context,
            self.other_project_member_context, self.system_member_context,
            self.system_reader_context, self.system_foo_context
        ]
        self.everyone_unauthorized_contexts = []
 def setUp(self):
     super(FloatingIpPoolDeprecationTest, self).setUp()
     self.controller = fipp_v21.FloatingIPPoolsController()
     self.req = fakes.HTTPRequest.blank('', version='2.36')
 def setUp(self):
     super(FloatingIPPoolsPolicyEnforcementV21, self).setUp()
     self.controller = fipp_v21.FloatingIPPoolsController()
     self.req = fakes.HTTPRequest.blank('')