Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4177

Tests on Mongo should fail if mongo is not available

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Most if not all of the IT/UT that run against mongodb have an
      assumption at class level that if mongodb is not available the tests
      are skipped.

      The tests should fail instead if mongodb is not available and we
      explicitly said that, via the nsfixtures flags, we want to run the
      tests against mongodb.

      We currently have 4 fixtures/flags: DOCUMENT_NS, SEGMENT_MK,
      DOCUMENT_RDB, MEMORY_NS.

      https://github.com/apache/jackrabbit-oak/blob/f957b6787eb7a70eba454ceb1cae90bd4d47f15c/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FixturesHelper.java#L46

      We may have the need to introduce a new Fixture/Flag that indicate
      that we want to run the tests against Document using the in-memory
      implementation. For example: DOCUMENT_NS_IM.

      This will be useful on the Apache Jenkins as we don't have mongo there
      but we still want to run all the possible Document NS tests against
      the in-memory implementation when this is possible.

      /cc mreutegg

      Attachments

        Issue Links

          Activity

            Created OAK-4185 for the required fixture in oak-commons.

            mreutegg Marcel Reutegger added a comment - Created OAK-4185 for the required fixture in oak-commons.

            People

              edivad Davide Giannella
              edivad Davide Giannella
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: