Ejemplo n.º 1
0
 def setUpClass(cls):
     init()
     simplequeue.create_queue(cls.singleton_queue,
                              max_outstanding_msgs=1,
                              visibility_timeout=10)
     simplequeue.create_queue(cls.multi_queue,
                              max_outstanding_msgs=5,
                              visibility_timeout=10)
     simplequeue.create_queue(cls.std_queue,
                              max_outstanding_msgs=0,
                              visibility_timeout=0)
Ejemplo n.º 2
0
def test_qs(anchore_db):
    """
    Expects to initialize the queues in an empty db, so it uses the anchore_db fixture itself to get initialized db

    :return:
    """
    global singleton_queue, multi_queue, std_queue
    simplequeue.create_queue(singleton_queue,
                             max_outstanding_msgs=1,
                             visibility_timeout=10)
    simplequeue.create_queue(multi_queue,
                             max_outstanding_msgs=5,
                             visibility_timeout=10)
    simplequeue.create_queue(std_queue,
                             max_outstanding_msgs=0,
                             visibility_timeout=0)