Exemplo n.º 1
0
 def setUp(self, mock_rpc):
     super(NotificationV1_1_TestCase, self).setUp()
     self.controller = notifications.NotificationsController()
     self.req = fakes.HTTPRequest.blank('/v1/notifications',
                                        use_admin_context=True,
                                        version=self.api_version)
     self.context = self.req.environ['masakari.context']
Exemplo n.º 2
0
 def setUp(self, mock_rpc):
     super(NotificationCasePolicyNotAuthorized, self).setUp()
     self.controller = notifications.NotificationsController()
     self.req = fakes.HTTPRequest.blank('/v1/notifications')
     self.context = self.req.environ['masakari.context']
     self.rule_name = "os_masakari_api:notifications"
     self.policy.set_rules({self.rule_name: "project:non_fake"})
Exemplo n.º 3
0
 def setUp(self, mock_rpc):
     super(NotificationCasePolicyNotAuthorized, self).setUp()
     self.controller = notifications.NotificationsController()
     self.req = fakes.HTTPRequest.blank('/v1/notifications')
     self.context = self.req.environ['masakari.context']