Task #9607 (closed)
Opened 7 years ago
Closed 4 years ago
Bug: testDeletePixelsAndFiles failing
| Reported by: | jamoore | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 5.x |
| Component: | Services | Version: | 5.0.8 |
| Keywords: | n.a. | Cc: | rleigh, jburel, cxallan, mlinkert |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
The following is now testing since the original file is being deleted before the second image:
/**
* Simulates an SVS import in which many Pixels are attached to a
* single, archived OriginalFile.
*/
@Test(groups = "ticket:5237")
public void testDeletePixelsAndFiles()
throws Exception
{
Image img1 = mmFactory.createImage();
Image img2 = mmFactory.createImage();
OriginalFile file = mmFactory.createOriginalFile();
img1.getPrimaryPixels().linkOriginalFile(file);
img2.getPrimaryPixels().linkOriginalFile(file);
file = (OriginalFile) iUpdate.saveAndReturnObject(file);
img1 = file.linkedPixelsList().get(0).getImage();
img2 = file.linkedPixelsList().get(1).getImage();
assertExists(img1);
assertExists(img2);
assertExists(file);
delete(new Delete(REF_IMAGE, img1.getId().getValue(), null));
assertDoesNotExist(img1);
assertExists(img2);
assertExists(file); <== fails now.
delete(new Delete(REF_IMAGE, img2.getId().getValue(), null));
assertDoesNotExist(img1);
assertDoesNotExist(img2);
assertDoesNotExist(file);
}
If this is an issue for 4.4.4, please move this ticket.
Change History (1)
comment:1 Changed 4 years ago by jburel
- Resolution set to fixed
- Status changed from new to closed
- Version set to 5.0.8
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
The test is passing and has been updated using Delete2.
Closing this ticket.