From a0c20e6d9620f4f0f5da0c18459b1969b5e9757c Mon Sep 17 00:00:00 2001 From: Sarat Vemulapalli Date: Mon, 2 Oct 2023 13:35:21 -0700 Subject: [PATCH] Ignoring Redeploy test on MacOS due to known failures (#1414) * Ignoring test on MacOS due to known failures Signed-off-by: Sarat Vemulapalli * Ingoring the ignore Signed-off-by: Sarat Vemulapalli * Ignoring all tests in this class with MacOS Signed-off-by: Sarat Vemulapalli --------- Signed-off-by: Sarat Vemulapalli --- .../java/org/opensearch/ml/rest/RestMLDeployModelActionIT.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/src/test/java/org/opensearch/ml/rest/RestMLDeployModelActionIT.java b/plugin/src/test/java/org/opensearch/ml/rest/RestMLDeployModelActionIT.java index fa542c7c0c..10d711307e 100644 --- a/plugin/src/test/java/org/opensearch/ml/rest/RestMLDeployModelActionIT.java +++ b/plugin/src/test/java/org/opensearch/ml/rest/RestMLDeployModelActionIT.java @@ -9,6 +9,7 @@ import java.io.IOException; import java.util.Map; +import org.junit.Assume; import org.junit.Before; import org.junit.Rule; import org.junit.rules.ExpectedException; @@ -26,6 +27,8 @@ public class RestMLDeployModelActionIT extends MLCommonsRestTestCase { @Before public void setup() throws IOException { + // Skip test if running on Mac OS, https://github.com/opensearch-project/ml-commons/issues/844 + Assume.assumeFalse(System.getProperty("os.name").startsWith("Mac OS X")); mlRegisterModelGroupInput = MLRegisterModelGroupInput.builder().name("testGroupID").description("This is test Group").build(); registerModelGroup(client(), TestHelper.toJsonString(mlRegisterModelGroupInput), registerModelGroupResult -> { this.modelGroupId = (String) registerModelGroupResult.get("model_group_id");