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))
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))
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))
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))