Merge lp://staging/~julian-edwards/maas/download-service-exceptions into lp://staging/~maas-committers/maas/trunk

Proposed by Julian Edwards
Status: Merged
Approved by: Julian Edwards
Approved revision: no longer in the source branch.
Merged at revision: 2828
Proposed branch: lp://staging/~julian-edwards/maas/download-service-exceptions
Merge into: lp://staging/~maas-committers/maas/trunk
Diff against target: 121 lines (+50/-6)
2 files modified
src/provisioningserver/pserv_services/image_download_service.py (+22/-5)
src/provisioningserver/pserv_services/tests/test_image_download_service.py (+28/-1)
To merge this branch: bzr merge lp://staging/~julian-edwards/maas/download-service-exceptions
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+232352@code.staging.launchpad.net

Commit message

Ensure that exceptions are caught inside the PeriodicImageDownloadService, which would otherwise make it stop running.

Description of the change

.

To post a comment you must log in.
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Nicely done. Just one note: shouldn't the existing tests then call try_download instead of maybe_start_download, so that the success case is covered?

review: Approve
Revision history for this message
Julian Edwards (julian-edwards) wrote :

On Wednesday 27 August 2014 07:15:51 you wrote:
> Review: Approve
>
> Nicely done. Just one note: shouldn't the existing tests then call
> try_download instead of maybe_start_download, so that the success case is
> covered?

It's already doing that; it relies on the service itself calling the functions
in the service object.

Thanks for the review!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.