Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1307

Inject LDIF files at the right level when running tests

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 2.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      When running integration tests, we can use @ApplyLdif or @ApplyLdifFiles annotations. The only problem is that those LDIFs are injected and rollbacked for every method, whatever the cleanup level set.

      It would be way better to inject and rollback files on the correct level :

      • at the Suite level if the annotation is present into the suite
      • at the class level if the annotation is present into the test class
      • at the method level if the annotation is present into the method.

        Activity

        Emmanuel Lecharny created issue -
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Fix Version/s 2.0.0-RC1 [ 12313387 ]
        Fix Version/s 1.5.5 [ 12313148 ]
        Kiran Ayyagari made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Emmanuel Lecharny made changes -
        Fix Version/s 2.0-M1 [ 12316055 ]
        Fix Version/s 2.0.0-RC1 [ 12313387 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development