예제 #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
 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
    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
    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
    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)