Skip to content

Commit 24fc9c3

Browse files
add skip when aws key is null (opensearch-project#2926) (opensearch-project#2928)
Signed-off-by: Mingshi Liu <mingshl@amazon.com> (cherry picked from commit 93d0429) Co-authored-by: Mingshi Liu <mingshl@amazon.com>
1 parent fa008e2 commit 24fc9c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/src/test/java/org/opensearch/ml/rest/RestMLInferenceSearchResponseProcessorIT.java

+4
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ public void testMLInferenceProcessorRemoteModelCustomPrompt() throws Exception {
257257
* @throws Exception if any error occurs during the test
258258
*/
259259
public void testMLInferenceProcessorRemoteModelStringField() throws Exception {
260+
// Skip test if key is null
261+
if (AWS_ACCESS_KEY_ID == null) {
262+
return;
263+
}
260264
String createPipelineRequestBody = "{\n"
261265
+ " \"response_processors\": [\n"
262266
+ " {\n"

0 commit comments

Comments
 (0)