diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ba0c73a75..a40eb3c58 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -49,7 +49,7 @@ jobs: - name: Pull and Run Docker run: | plugin=`ls build/distributions/*.zip` - version=1.3.0-SNAPSHOT + version=1.3.0 plugin_version=1.3.0.0-SNAPSHOT echo Using OpenSearch $version with AD $plugin_version cd .. diff --git a/src/main/java/org/opensearch/ad/constant/CommonErrorMessages.java b/src/main/java/org/opensearch/ad/constant/CommonErrorMessages.java index 80abce654..45cd9cc23 100644 --- a/src/main/java/org/opensearch/ad/constant/CommonErrorMessages.java +++ b/src/main/java/org/opensearch/ad/constant/CommonErrorMessages.java @@ -111,7 +111,7 @@ public static String getTooManyCategoricalFieldErr(int limit) { public static String TIME_FIELD_NOT_ENOUGH_HISTORICAL_DATA = "There isn't enough historical data found with current timefield selected."; public static String DETECTOR_INTERVAL_REC = - "The selected detector interval might collect sparse data. Consider changing interval length too: "; + "The selected detector interval might collect sparse data. Consider changing interval length to: "; public static String RAW_DATA_TOO_SPARSE = "Source index data is potentially too sparse for model training. Consider changing interval length or ingesting more data"; public static String MODEL_VALIDATION_FAILED_UNEXPECTEDLY = "Model validation experienced issues completing."; diff --git a/src/test/java/org/opensearch/ad/rest/SecureADRestIT.java b/src/test/java/org/opensearch/ad/rest/SecureADRestIT.java index 530430199..44536c9fd 100644 --- a/src/test/java/org/opensearch/ad/rest/SecureADRestIT.java +++ b/src/test/java/org/opensearch/ad/rest/SecureADRestIT.java @@ -221,6 +221,7 @@ public void testUpdateApiFilterByEnabled() throws IOException { // User Fish has AD full access, and has "odfe" backend role which is one of Alice's backend role, so // Fish should be able to update detectors created by Alice. But the detector's backend role should // not be replaced as Fish's backend roles. + TestHelpers.createIndexWithTimeField(client(), newDetector.getIndices().get(0), newDetector.getTimeField()); Response response = updateAnomalyDetector(aliceDetector.getDetectorId(), newDetector, fishClient); Assert.assertEquals(response.getStatusLine().getStatusCode(), 200); AnomalyDetector anomalyDetector = getAnomalyDetector(aliceDetector.getDetectorId(), aliceClient); @@ -314,6 +315,7 @@ public void testCreateAnomalyDetectorWithCustomResultIndex() throws IOException // User cat has permission to create index resultIndex = CommonName.CUSTOM_RESULT_INDEX_PREFIX + "test2"; + TestHelpers.createIndexWithTimeField(client(), anomalyDetector.getIndices().get(0), anomalyDetector.getTimeField()); AnomalyDetector detectorOfCat = createAnomalyDetector(cloneDetector(anomalyDetector, resultIndex), true, catClient); assertEquals(resultIndex, detectorOfCat.getResultIndex()); }