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

Elastic Feature Runner should initialize its index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Elasticsearch
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #72
    • Story Points:
      2

      Description

      When using an external elastic server, sometime the test index is not initialized because it already exists (it has been created by a previous test),
      this causes random test failures if the mapping is not the expected one or if there are some trailing data.

      To avoid this test suite usually adds an explicit initialization:

          @Before
          public void setupIndex() throws Exception {
              esa.initIndexes(true);
          }
      

      This should be done at the Feature Runner level.

        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: