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

Don't start embedded elastic when running unit test on remote ES cluster

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 11.2
    • Fix Version/s: None
    • Component/s: Tests

      Description

      Since NXP-28131 we can run unit test against a remote elastic.
      using

      -Dnuxeo.test.elasticsearch.addressList=http://localhost:9200
      

      The elastic client connects to the specified cluster, nevertheless an embedded node is started.

      How to check:
      1. make sure you don't have any elasticsearch server running
      2. run

      cd modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core
      mvn -nsu clean test -Dtest=org.nuxeo.elasticsearch.test.scroll.TestElasticSearchScroll  -Dnuxeo.test.elasticsearch.addressList=http://localhost:9200
      

      The test pass instead of failing because an embedded node is started.
      Note that if you have an elastic running on localhost:9200 prior to run the test, the test will use your elastic server as expected (the embeded server is started on another port).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bdelbosc Benoit Delbosc
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 2 hours
                  2h