예제 #1
0
 def test_bloom_full_negative(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.3.4'} }
     client.cluster.state.return_value = open_index
     client.indices.put_settings.side_effect = fake_fail
     self.assertFalse(curator.bloom(client, named_index))
예제 #2
0
 def test_bloom_full_negative(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.3.4'} }
     client.cluster.state.return_value = open_index
     client.indices.put_settings.side_effect = fake_fail
     self.assertFalse(curator.bloom(client, named_index))
예제 #3
0
 def test_bloom_full_positive(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.3.4'} }
     client.cluster.state.return_value = open_index
     client.indices.put_settings.return_value = None
     self.assertTrue(curator.bloom(client, named_index))
예제 #4
0
 def test_bloom_full_positive(self):
     client = Mock()
     client.info.return_value = {'version': {'number': '1.3.4'} }
     client.cluster.state.return_value = open_index
     client.indices.put_settings.return_value = None
     self.assertTrue(curator.bloom(client, named_index))