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