From 93d0429db5f7d32305362e985d0f9ffa908d5275 Mon Sep 17 00:00:00 2001 From: Mingshi Liu Date: Tue, 10 Sep 2024 12:04:43 -0700 Subject: [PATCH] add skip when aws key is null (#2926) Signed-off-by: Mingshi Liu --- .../ml/rest/RestMLInferenceSearchResponseProcessorIT.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/src/test/java/org/opensearch/ml/rest/RestMLInferenceSearchResponseProcessorIT.java b/plugin/src/test/java/org/opensearch/ml/rest/RestMLInferenceSearchResponseProcessorIT.java index d93c0aeba7..2efa0a442c 100644 --- a/plugin/src/test/java/org/opensearch/ml/rest/RestMLInferenceSearchResponseProcessorIT.java +++ b/plugin/src/test/java/org/opensearch/ml/rest/RestMLInferenceSearchResponseProcessorIT.java @@ -257,6 +257,10 @@ public void testMLInferenceProcessorRemoteModelCustomPrompt() throws Exception { * @throws Exception if any error occurs during the test */ public void testMLInferenceProcessorRemoteModelStringField() throws Exception { + // Skip test if key is null + if (AWS_ACCESS_KEY_ID == null) { + return; + } String createPipelineRequestBody = "{\n" + " \"response_processors\": [\n" + " {\n"