Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4499

Fix cleanup of test environment in earlier Integration Test

    XMLWordPrintable

    Details

    • Type: Code Task
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2

      Description

      Looking around in the code base I noted several ITs added in the initial phase of the project that fails to restore the authorization system or more important to cleanup objects created via REST API or without the use of the Builder classes.
      A first example (there are lot in the same classes and in other):
      https://github.com/DSpace/DSpace/blob/f9822a728e42142f754cfcdf0396e4c837f5bf86/dspace-server-webapp/src/test/java/org/dspace/app/rest/WorkspaceItemRestRepositoryIT.java#L848

      https://github.com/DSpace/DSpace/blob/f9822a728e42142f754cfcdf0396e4c837f5bf86/dspace-server-webapp/src/test/java/org/dspace/app/rest/BundleRestRepositoryIT.java#L221

      We should systematically check all the IT classes for turnOff/restore of the security and deletetion in finally block of any object created via a POST

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bollini Andrea Bollini (4Science)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: