Esempio n. 1
0
    def setUp(self):
        super(ElasticSearchTestCase, self).setUp()

        config = MockConfig()

        self._http_client = AsyncHTTPClient(self.io_loop)
        self._test_http_client = TestAsyncHTTPClient(self)
        self._elastic_search_urls = Urls(config)
        self._elastic_search = ElasticSearch(config=config, http_client=self._http_client)
        self._elastic_search_for_test = ElasticSearchForTest(config=config, http_client=self._test_http_client)

        self._elastic_search_for_test.cleanup()
Esempio n. 2
0
 def __init__(self, config, http_client):
     self._http_client = http_client
     self._elastic_search_urls = Urls(config)
Esempio n. 3
0
 def setUp(self):
     super(UrlsTestCase, self).setUp()
     self._elastic_search_urls = Urls(config=MockConfig())