From 7065f55a3459f75feb3279a735342a3b08129225 Mon Sep 17 00:00:00 2001 From: Junwei Dai Date: Mon, 28 Oct 2024 13:48:44 -0700 Subject: [PATCH] fix formating issue Signed-off-by: Junwei Dai --- .../flowframework/workflow/CreateConnectorStepTests.java | 8 ++++---- .../workflow/RegisterLocalCustomModelStepTests.java | 8 ++++---- .../workflow/RegisterLocalPretrainedModelStepTests.java | 8 ++++---- .../RegisterLocalSparseEncodingModelStepTests.java | 8 ++++---- .../workflow/RegisterModelGroupStepTests.java | 8 ++++---- .../workflow/RegisterRemoteModelStepTests.java | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/test/java/org/opensearch/flowframework/workflow/CreateConnectorStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/CreateConnectorStepTests.java index 5905f1be..3ed8d15e 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/CreateConnectorStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/CreateConnectorStepTests.java @@ -142,10 +142,10 @@ public void testApiSpecCreateConnectorInputParamComparison() throws Exception { List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.CREATE_CONNECTOR.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/connectors/_create", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/connectors/_create", + RestRequest.Method.POST ); assertTrue(isMatch); diff --git a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalCustomModelStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalCustomModelStepTests.java index 3b6bddde..2502b99d 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalCustomModelStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalCustomModelStepTests.java @@ -402,10 +402,10 @@ public void testApiSpecRegisterLocalCustomModelInputParamComparison() throws Exc List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.REGISTER_LOCAL_CUSTOM_MODEL.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/models/_register", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/models/_register", + RestRequest.Method.POST ); assertTrue(isMatch); diff --git a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalPretrainedModelStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalPretrainedModelStepTests.java index e91a3d16..4a1f071b 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalPretrainedModelStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalPretrainedModelStepTests.java @@ -307,10 +307,10 @@ public void testApiSpecRegisterLocalPretrainedModelInputParamComparison() throws List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.REGISTER_LOCAL_PRETRAINED_MODEL.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/models/_register", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/models/_register", + RestRequest.Method.POST ); assertTrue(isMatch); diff --git a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalSparseEncodingModelStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalSparseEncodingModelStepTests.java index 297d173f..c5598ea9 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalSparseEncodingModelStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/RegisterLocalSparseEncodingModelStepTests.java @@ -314,10 +314,10 @@ public void testApiSpecRegisterLocalSparseEncodingModelInputParamComparison() th List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.REGISTER_LOCAL_SPARSE_ENCODING_MODEL.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/models/_register", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/models/_register", + RestRequest.Method.POST ); assertTrue(isMatch); diff --git a/src/test/java/org/opensearch/flowframework/workflow/RegisterModelGroupStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/RegisterModelGroupStepTests.java index 54cc1068..05eeb850 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/RegisterModelGroupStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/RegisterModelGroupStepTests.java @@ -212,10 +212,10 @@ public void testApiSpecRegisterModelGroupInputParamComparison() throws Exception List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.REGISTER_MODEL_GROUP.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/model_groups/_register", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/model_groups/_register", + RestRequest.Method.POST ); assertTrue(isMatch); diff --git a/src/test/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStepTests.java b/src/test/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStepTests.java index cb4feb7c..275eab47 100644 --- a/src/test/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStepTests.java +++ b/src/test/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStepTests.java @@ -422,10 +422,10 @@ public void testApiSpecRegisterRemoteModelInputParamComparison() throws Exceptio List requiredEnumParams = WorkflowStepFactory.WorkflowSteps.REGISTER_REMOTE_MODEL.inputs(); boolean isMatch = ApiSpecFetcher.compareRequiredFields( - requiredEnumParams, - ML_COMMONS_API_SPEC_YAML_URI, - "/_plugins/_ml/model_groups/_register", - RestRequest.Method.POST + requiredEnumParams, + ML_COMMONS_API_SPEC_YAML_URI, + "/_plugins/_ml/model_groups/_register", + RestRequest.Method.POST ); assertTrue(isMatch);