def setUp(self): self.elasticSearchDB = ElasticSearchDB(host=elHost, port=elPort, useSSL=False) result = generateFullIndexName('integrationtest') self.assertTrue(len(result) > len('integrationtest')) self.index_name = result result = self.elasticSearchDB.index(self.index_name, 'test', {"Color": "red", "quantity": 1, "Product": "a", "timestamp": 1458226213}) self.assertTrue(result['OK'])
def setUp(self): gLogger.setLevel('DEBUG') self.elasticSearchDB = ElasticSearchDB(host=elHost, port=elPort, useSSL=False)