Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1189

SearchBlox connector fails tests on JDK 1.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • ManifoldCF 1.9, ManifoldCF 2.1
    • ManifoldCF 2.5
    • SearchBlox connector
    • None

    Description

      The following occurs when you run the SearchBlox connector tests on JDK 1.8:

      run-tests:
          [junit] Testsuite: org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.159 sec
          [junit]
          [junit] Testcase: testUpdateJsonString(org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest):        FAILED
          [junit] null expected:<{"[document":{"content":"I am a nice content in english!","uid":"URI","title":"I am a nice title","description":"I am a little tiny description","contenttype":"html","colname":"collection1","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user3","user2","user1"],"share_deny":["user4","user5"],"document_deny":["user52","user42"],"document_allow":["user22","user12","user33"]},"size":"100"},"apikey":"apikey"]}> but was:<{"[apikey":"apikey","document":{"uid":"URI","colname":"collection1","size":"100","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user1","user2","user3"],"document_deny":["user42","user52"],"share_deny":["user5","user4"],"document_allow":["user22","user33","user12"]},"description":"I am a little tiny description","title":"I am a nice title","content":"I am a nice content in english!","contenttype":"html"}]}>
          [junit] junit.framework.ComparisonFailure: null expected:<{"[document":{"content":"I am a nice content in english!","uid":"URI","title":"I am a nice title","description":"I am a little tiny description","contenttype":"html","colname":"collection1","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user3","user2","user1"],"share_deny":["user4","user5"],"document_deny":["user52","user42"],"document_allow":["user22","user12","user33"]},"size":"100"},"apikey":"apikey"]}> but was:<{"[apikey":"apikey","document":{"uid":"URI","colname":"collection1","size":"100","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user1","user2","user3"],"document_deny":["user42","user52"],"share_deny":["user5","user4"],"document_allow":["user22","user33","user12"]},"description":"I am a little tiny description","title":"I am a nice title","content":"I am a nice content in english!","contenttype":"html"}]}>
          [junit]     at org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest.testUpdateJsonString(SearchBloxDocumentTest.java:61)
          [junit]
          [junit]
      
      BUILD FAILED
      /Users/molgun/Downloads/apache-manifoldcf-2.1/dist/connector-build.xml:1219: Test org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest failed
      

      That's because the test depends on JDK hash order. It needs to be fixed so that it doesn't depend on hash order.

      I will disable the test in trunk and dev_1x for now, but already it is interfering with the release of the latest ManifoldCF.

      Attachments

        1. CONNECTORS-1189.patch
          8 kB
          Ahmet Arslan

        Issue Links

          Activity

            People

              iorixxx Ahmet Arslan
              kwright@metacarta.com Karl Wright
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: