Ejemplo n.º 1
0
 def test_right_rackaware_order_works(self):
     self.args.types = ['even', 'rackaware']
     action = ActionBalance(self.args, self.cluster)
     action.process_cluster()
Ejemplo n.º 2
0
 def test_process_cluster(self, mock_process):
     self.args.types = ['count']
     action = ActionBalance(self.args, self.cluster)
     action.process_cluster()
     mock_process.assert_called_once_with()
Ejemplo n.º 3
0
 def test_process_cluster(self, mock_process):
     self.args.types = ['count']
     action = ActionBalance(self.args, self.cluster)
     action.process_cluster()
     mock_process.assert_called_once_with()
Ejemplo n.º 4
0
 def test_right_rackaware_order_works(self):
     self.args.types = ['even', 'rackaware']
     action = ActionBalance(self.args, self.cluster)
     action.process_cluster()