Exemplo n.º 1
0
 def test_cluster_plan(self):
     '''
     Test for Review Cluster Plan
     '''
     with patch.dict(riak.__salt__,
                     {'cmd.run': MagicMock(return_value=False)}):
         self.assertTrue(riak.cluster_plan())
Exemplo n.º 2
0
 def test_cluster_plan(self):
     '''
     Test for Review Cluster Plan
     '''
     with patch.dict(riak.__salt__, {'cmd.run':
                                     MagicMock(return_value=False)}):
         self.assertTrue(riak.cluster_plan())
Exemplo n.º 3
0
 def test_cluster_plan(self):
     """
     Test for Review Cluster Plan
     """
     with patch.object(
         riak, "__execute_cmd", return_value={"retcode": 0, "stdout": "success"}
     ):
         self.assertTrue(riak.cluster_plan())
Exemplo n.º 4
0
 def test_cluster_plan(self):
     '''
     Test for Review Cluster Plan
     '''
     with patch.object(riak,
                       '__execute_cmd',
                       return_value={
                           'retcode': 0,
                           'stdout': 'success'
                       }):
         self.assertTrue(riak.cluster_plan())
Exemplo n.º 5
0
 def test_cluster_plan(self):
     '''
     Test for Review Cluster Plan
     '''
     with patch.object(riak, '__execute_cmd', return_value={'retcode': 0, 'stdout': 'success'}):
         self.assertTrue(riak.cluster_plan())