Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #9607 (closed)

Opened 12 years ago

Closed 9 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 9 years ago by jburel

  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 5.0.8

The test is passing and has been updated using Delete2.
Closing this ticket.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63896 sec.)

We're Hiring!