Example #1
0
 def setUp(self):
     self.ds = load_from_file(TEST_CONFIG_FILE, "elastic_search_config")
     self.ds.truncate()
     try:
         self.ds.conn.collect_info()
     except socket.error:
         raise SkipTest("Can't connect to Elastic Search")
Example #2
0
 def setUp(self):
     self.ds = load_from_file(TEST_CONFIG_FILE, 'elastic_search_config')
     node_type = 'node_test'
     index_name = "test_index"
     new_index_name = "new_index"
     ns_index_name = node_type + "-_-" + index_name
     ns_new_name = node_type + "-_-" + new_index_name
     try:
         node1 = self.ds.get_node(node_type,'node_1')
         self.ds.delete_node(node1)
     except NodeNotFoundException:
         pass
     try:
         node2 = self.ds.get_node(node_type,'node_2')
         self.ds.delete_node(node2)
     except NodeNotFoundException:
         pass
     self.ds.conn.delete_index_if_exists(ns_index_name)
     self.ds.conn.delete_index_if_exists(ns_new_name)
Example #3
0
 def setUp(self):
     self.ds = load_from_file(TEST_CONFIG_FILE, "memory_config_1")
Example #4
0
 def setUp(self):
     try:
         self.ds = load_from_file(TEST_CONFIG_FILE, "cassandra_config_1")
         self.ds.truncate()
     except TTransport.TTransportException:
         raise SkipTest("Could not connect to cassandra.")
Example #5
0
 def setUp(self):
     self.ds = load_from_file(TEST_CONFIG_FILE, 'cassandra_config_1')
     self.ds.truncate()