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

Cannot run unit test on a remote elasticsearch instance

    XMLWordPrintable

    Details

    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.20
    • Story Points:
      2

      Description

      Since NXP-23142 we can choose which elasticsearch client is used to run unit test

      # Embedded elasticsearch with rest client (default)
      mvn -nsu test -Dnuxeo.test.elasticsearch.client=RestClient 
      # Embedded elasticsearch with transport client
      mvn -nsu test -Dnuxeo.test.elasticsearch.client=TransportClient
      

      But specifying a remote elasticsearch cluster fails, tests are run against the embedded version:

      mvn -nsu test -Dnuxeo.test.elasticsearch.addressList=http://localhost:9400
      

      Even once the ESTestClientFactory fixed some tests will fail when using a remote Elasticsearch because of index cleaning when using aliases. (Embedded server is flushed between tests so it works).

      We should fix this regression so tests can be run against a target Elasticsearch cluster in order to validate Elasticsearch version compatibility.

        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 - 4 hours
                  4h