Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27661

Fix TestIntIdField.testQueryBuilderOnIntId on MongoDB

    XMLWordPrintable

    Details

      Description

      NXP-27275 fixes a bug in directory service when using not String ids.
      A test was introduced to assert behavior but is failing on MongoDB, see:

      java.lang.AssertionError: expected:<1> but was:<2>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:834)
      	at org.junit.Assert.assertEquals(Assert.java:645)
      	at org.junit.Assert.assertEquals(Assert.java:631)
      	at org.nuxeo.directory.test.TestIntIdField.testQueryBuilderOnIntId(TestIntIdField.java:95)
      

      This seems to indicate that custom id field is not well taken into account for MongoDB as we're retrieving two results instead of one.

      Note: the test creates only one entry, so there might also be a test cleanup issue too for MongoDB.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d