コード例 #1
0
ファイル: test_api_commands.py プロジェクト: ferki/curator
 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
ファイル: test_api_commands.py プロジェクト: servomac/curator
 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
ファイル: test_api_commands.py プロジェクト: ferki/curator
 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
ファイル: test_api_commands.py プロジェクト: servomac/curator
 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))