Skip to content

Commit

Permalink
fix formating issue
Browse files Browse the repository at this point in the history
Signed-off-by: Junwei Dai <[email protected]>
  • Loading branch information
Junwei Dai committed Oct 28, 2024
1 parent 09962f2 commit 7065f55
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public void testApiSpecCreateConnectorInputParamComparison() throws Exception {
List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ public void testApiSpecRegisterLocalCustomModelInputParamComparison() throws Exc
List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ public void testApiSpecRegisterLocalPretrainedModelInputParamComparison() throws
List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ public void testApiSpecRegisterLocalSparseEncodingModelInputParamComparison() th
List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ public void testApiSpecRegisterModelGroupInputParamComparison() throws Exception
List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,10 @@ public void testApiSpecRegisterRemoteModelInputParamComparison() throws Exceptio
List<String> 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);
Expand Down

0 comments on commit 7065f55

Please sign in to comment.