Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2763

Tweak PostServletCreateTest.testCreatingNodeUnderFile test to allow the presence of a PersistenceException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Launchpad Testing 10
    • Testing
    • None

    Description

      Running PostServletCreateTest.testCreatingNodeUnderFile against an Oak repo, the test fails because it expects to see a ConstraintViolationException on the page.

      As oak has a different behavior wrt the moment when it throws the ConstraintViolationException, it may end up being wrapped into a PersistenceException which will fail the test even if the overall expectations are met.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cziegeler Carsten Ziegeler
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment