Beispiel #1
0
 def test_show_positive_list(self):
     curator.show(named_indices)
     self.assertEqual(sys.stdout.getvalue(),'index1\nindex2\n')
Beispiel #2
0
 def test_show_positive(self):
     curator.show(named_index)
     self.assertEqual(sys.stdout.getvalue(),'index_name\n')
 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')
 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')
Beispiel #5
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')
Beispiel #6
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')