예제 #1
0
 def test_index_list(self):
     client = Mock()
     client.indices.get_settings.return_value = testvars.settings_two
     client.cluster.state.return_value = testvars.clu_state_two
     client.indices.stats.return_value = testvars.stats_two
     client.field_stats.return_value = testvars.fieldstats_two
     il = curator.IndexList(client)
     self.assertIsNone(curator.show_dry_run(il, 'test_action'))
예제 #2
0
 def test_index_list(self):
     client = Mock()
     client.indices.get_settings.return_value = testvars.settings_two
     client.cluster.state.return_value = testvars.clu_state_two
     client.indices.stats.return_value = testvars.stats_two
     client.field_stats.return_value = testvars.fieldstats_two
     il = curator.IndexList(client)
     self.assertIsNone(curator.show_dry_run(il, 'test_action'))