示例#1
0
 def setUpClass(cls):
     test_util.rabbitmqctl([
         'set_topic_permissions', 'guest', 'amq.topic',
         '^{username}.Authorised', '^{username}.Authorised'
     ])
     cls.authorised_topic = '/topic/guest.AuthorisedTopic'
     cls.restricted_topic = '/topic/guest.RestrictedTopic'
示例#2
0
 def tearDownClass(cls):
     test_util.rabbitmqctl(['clear_topic_permissions', 'guest'])