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");