Skip to content

Commit

Permalink
unblocking the integ test pipeline for release (#3159) (#3356)
Browse files Browse the repository at this point in the history
* unblocking the integ test pipeline for release



* apply spotless



* removing the integ test intirely



---------

Signed-off-by: Dhrubo Saha <[email protected]>
  • Loading branch information
dhrubo-os authored Jan 9, 2025
1 parent 20e69c5 commit 03e71b5
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.Map;
import java.util.function.Consumer;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHeaders;
import org.apache.http.message.BasicHeader;
Expand Down Expand Up @@ -476,14 +475,6 @@ public void testOpenAITextEmbeddingModel_UTF8() throws IOException, InterruptedE
}, null);
}

public void testOpenAITextEmbeddingModel_ISO8859_1() throws IOException, InterruptedException {
testOpenAITextEmbeddingModel("ISO-8859-1", null, (exception) -> {
assertTrue(exception instanceof org.opensearch.client.ResponseException);
String stackTrace = ExceptionUtils.getStackTrace(exception);
assertTrue(stackTrace.contains("'utf-8' codec can't decode byte 0xeb"));
});
}

private void testOpenAITextEmbeddingModel(String charset, Consumer<Map> verifyResponse, Consumer<Exception> verifyException)
throws IOException,
InterruptedException {
Expand Down

0 comments on commit 03e71b5

Please sign in to comment.