Ejemplo n.º 1
0
    def _start_server(self,
                      storage_driver=None,
                      topic=None,
                      host=None,
                      allow_stop=True):
        if not storage_driver:
            storage_driver = MemoryDriver('memory:///')

        server = EngineServer(host or 'test.host',
                              storage_driver=storage_driver,
                              topic=topic,
                              allow_stop=allow_stop)

        thread = threading.Thread(target=server.start)
        thread.daemon = True
        thread.server = server
        thread.start()

        return thread
Ejemplo n.º 2
0
 def test_storage_memory_container_obj_list_filter(self):
     driver = MemoryDriver('memory:///')
     self._test_driver_container_obj_list_filter(driver)
Ejemplo n.º 3
0
 def test_storage_memory_container_obj_delete(self):
     driver = MemoryDriver('memory:///')
     self._test_driver_container_obj_delete(driver)
Ejemplo n.º 4
0
 def test_storage_memory_index_miss(self):
     driver = MemoryDriver('memory:///')
     self._test_driver_index_miss(driver)
Ejemplo n.º 5
0
 def test_storage_memory_list(self):
     driver = MemoryDriver('memory:///')
     self._test_driver_list(driver)
Ejemplo n.º 6
0
 def test_storage_memory_update(self):
     driver = MemoryDriver('memory:///')
     self._test_driver_update(driver)