コード例 #1
0
ファイル: test_api.py プロジェクト: sahanasj/rally
 def test_recreate_deploy(self, mock_get, mock_update):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.recreate_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_update.assert_has_calls(
         [mock.call(self.deploy_uuid, self.endpoints)])
コード例 #2
0
ファイル: test_api.py プロジェクト: marcoemorais/rally
 def test_recreate_deploy(self, mock_get, mock_update):
     mock_get.return_value = self.deployment
     mock_update.return_value = self.deployment
     api.recreate_deploy(self.deploy_uuid)
     mock_get.assert_called_once_with(self.deploy_uuid)
     mock_update.assert_has_calls([
         mock.call(self.deploy_uuid, {'endpoints': self.endpoints})
     ])
コード例 #3
0
ファイル: deployment.py プロジェクト: sahanasj/rally
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        Unlike 'deployment destroy' command deployment database record will
        not be deleted, so deployment's UUID stay same.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)
コード例 #4
0
ファイル: deployment.py プロジェクト: linhuacheng/rally
    def recreate(self, deployment=None):
        """Destroy and create an existing deployment.

        Unlike 'deployment destroy' command deployment database record will
        not be deleted, so deployment's UUID stay same.

        :param deployment: a UUID or name of the deployment
        """
        api.recreate_deploy(deployment)
コード例 #5
0
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)
コード例 #6
0
ファイル: deployment.py プロジェクト: kambiz-aghaiepour/rally
    def recreate(self, deploy_id=None):
        """Destroy and create an existing deployment.

        :param deploy_id: a UUID of the deployment
        """
        api.recreate_deploy(deploy_id)