def test_bloom_filter_will_be_disabled(self):
        self.create_index('test_index')
        self.assertIsNone(curator._bloom_index(self.client, 'test_index'))

        settings = self.client.indices.get_settings(index='test_index')
        self.assertEquals(
            'false', settings['test_index']['settings']['index']['codec']
            ['bloom']['load'])
示例#2
0
 def test_closed_index_will_be_skipped(self):
     self.create_index('test_index')
     self.client.indices.close(index='test_index')
     self.assertTrue(curator._bloom_index(self.client, 'test_index'))
     index_metadata = self.client.cluster.state(
         index='test_index',
         metric='metadata',
     )
     self.assertEquals('close', index_metadata['metadata']['indices']['test_index']['state'])
示例#3
0
 def test_closed_index_will_be_skipped(self):
     self.create_index('test_index')
     self.client.indices.close(index='test_index')
     self.assertTrue(curator._bloom_index(self.client, 'test_index'))
     index_metadata = self.client.cluster.state(
         index='test_index',
         metric='metadata',
     )
     self.assertEquals('close', index_metadata['metadata']['indices']['test_index']['state'])
示例#4
0
    def test_bloom_filter_will_be_disabled(self):
        self.create_index('test_index')
        self.assertIsNone(curator._bloom_index(self.client, 'test_index'))

        settings = self.client.indices.get_settings(index='test_index')
        self.assertEquals('false', settings['test_index']['settings']['index']['codec']['bloom']['load'])