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)])
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}) ])
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)
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)
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)