コード例 #1
0
ファイル: test_api_commands.py プロジェクト: ferki/curator
 def test_show_positive_list(self):
     curator.show(named_indices)
     self.assertEqual(sys.stdout.getvalue(),'index1\nindex2\n')
コード例 #2
0
ファイル: test_api_commands.py プロジェクト: ferki/curator
 def test_show_positive(self):
     curator.show(named_index)
     self.assertEqual(sys.stdout.getvalue(),'index_name\n')
コード例 #3
0
 def test_show_positive_list(self):
     client = Mock()
     client.cluster.state.return_value = open_indices
     curator.show(client, named_indices)
     self.assertEqual(sys.stdout.getvalue(),'index1\nindex2\n')
コード例 #4
0
 def test_show_positive(self):
     client = Mock()
     client.cluster.state.return_value = open_index
     curator.show(client, named_index)
     self.assertEqual(sys.stdout.getvalue(),'index_name\n')
コード例 #5
0
ファイル: test_api_commands.py プロジェクト: servomac/curator
 def test_show_positive_list(self):
     client = Mock()
     client.cluster.state.return_value = open_indices
     curator.show(client, named_indices)
     self.assertEqual(sys.stdout.getvalue(),'index1\nindex2\n')
コード例 #6
0
ファイル: test_api_commands.py プロジェクト: servomac/curator
 def test_show_positive(self):
     client = Mock()
     client.cluster.state.return_value = open_index
     curator.show(client, named_index)
     self.assertEqual(sys.stdout.getvalue(),'index_name\n')