Skip to content

Commit

Permalink
catalog: check status id, #TASK-2254
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Oct 16, 2023
1 parent ebb158d commit a2a2fa5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.opencb.opencga.core.models.common.Enums;
import org.opencb.opencga.core.models.file.File;
import org.opencb.opencga.core.models.file.FileContent;
import org.opencb.opencga.core.models.file.FileStatus;
import org.opencb.opencga.core.models.job.Job;
import org.opencb.opencga.core.models.job.JobInternal;
import org.opencb.opencga.core.models.job.JobInternalWebhook;
Expand Down Expand Up @@ -565,6 +566,7 @@ public void registerMalformedVcfFromExecutedJobTest() throws CatalogException {
assertEquals(1, job.getOutput().size());
assertEquals("myemptyvcf.vcf", job.getOutput().get(0).getName());
assertEquals(File.Format.VCF, job.getOutput().get(0).getFormat());
assertEquals(FileStatus.ERROR, job.getOutput().get(0).getInternal().getStatus().getId());
}

private void checkStatus(Job job, String status) {
Expand Down

0 comments on commit a2a2fa5

Please sign in to comment.