Hi Bruce -

I've made the changes we discussed earlier today, and have committed them
to pull 307. Could you please have a look and merge this request when
convenient?

Thanks,
Bennett


On Wed, Feb 13, 2013 at 10:09 AM, Bruce Hoff <notifications@github.com>wrote:

> In
> integration-test/src/test/java/org/sagebionetworks/IT100BackupRestoration.java:
>
> > +		String backupFileName = getFileNameFromUrl(status.getBackupUrl());
> > +		restoreSub.setFileName(
> backupFileName);
> > +		status = synapse.startRestoreDaemon(restoreSub, MigratableObjectType.SUBMISSION);
> > +		
> > +		// Wait for it to finish
> > +		status = waitForDaemon(status.getId());
> > +		assertEquals(DaemonStatus.COMPLETED, status.getStatus());
> > +		
> > +		// Verify restoration
> > +		PaginatedResults<Submission> subsPaginated = synapse.getAllSubmissions(eval.getId(), 10, 0);
> > +		assertEquals(1L, subsPaginated.getTotalNumberOfResults());
> > +		Submission submissionRestored = subsPaginated.getResults().get(0);
> > +		assertEquals(submission, submissionRestored);
> > +		SubmissionStatus submissionStatus = synapse.getSubmissionStatus(submission.getId());
> > +		assertEquals(submission.getId(), submissionStatus.getId());
> > +		
>
> check that the restored submission status is equal to the original
> submission status
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/307/files#r3000228>.
>
>