From ad1ace3301f8734ede3d07dc8d4216ab22820b99 Mon Sep 17 00:00:00 2001 From: TrungBui59 Date: Wed, 1 Nov 2023 13:23:07 -0400 Subject: [PATCH] Adding header tests Signed-off-by: TrungBui59 --- .../algorithms/remote/HttpJsonConnectorExecutorTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java b/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java index 8b75b4ccb8..2ca9ee21ca 100644 --- a/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java +++ b/ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutorTest.java @@ -134,13 +134,7 @@ public void invokeRemoteModel_POSTMethodSuccessPath() { public void invokeRemoteModel_HeaderNull() throws ClientProtocolException, IOException { invokeRemoteModel_HeaderTest(null); } - - @Test - public void invokeRemoteModel_HeaderNotNull() throws ClientProtocolException, IOException { - Map header = new HashMap<>(); - header.put("Content-Type", "application/json"); - invokeRemoteModel_HeaderTest(header); - } + @Test public void invokeRemoteModel_POSTMethodErrorPath() { exceptionRule.expect(MLException.class);