예제 #1
0
 def test_optimized_index_closed(self):
     client = Mock()
     client.cluster.state.return_value = closed_index
     self.assertTrue(
         curator.optimized(client, named_index, max_num_segments=2))
예제 #2
0
 def test_optimized_index_closed(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.4.0'}}
     client.cluster.state.return_value = closed_index
     self.assertTrue(
         curator.optimized(client, named_index, max_num_segments=2))
예제 #3
0
 def test_optimized_index_closed(self):
     client = Mock()
     client.cluster.state.return_value = closed_index
     self.assertTrue(curator.optimized(client, named_index, max_num_segments=2))
예제 #4
0
 def test_optimized_index_closed(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.4.0'} }
     client.cluster.state.return_value = closed_index
     self.assertTrue(curator.optimized(client, named_index, max_num_segments=2))