diff --git a/server/src/test/java/com/epam/aidial/core/server/ApplicationTypeSchemaApiTest.java b/server/src/test/java/com/epam/aidial/core/server/ApplicationTypeSchemaApiTest.java index dab83c05..a3b543a9 100644 --- a/server/src/test/java/com/epam/aidial/core/server/ApplicationTypeSchemaApiTest.java +++ b/server/src/test/java/com/epam/aidial/core/server/ApplicationTypeSchemaApiTest.java @@ -1,21 +1,20 @@ package com.epam.aidial.core.server; - -import java.util.concurrent.atomic.AtomicReference; - import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import io.vertx.core.http.HttpMethod; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import java.util.concurrent.atomic.AtomicReference; + public class ApplicationTypeSchemaApiTest extends ResourceBaseTest { private final ObjectMapper objectMapper = new ObjectMapper(); @Test void testApplicationTypeSchemaList_ok() { - Response response = send(HttpMethod.GET,"/v1/application_type_schemas/schemas",null, null); + Response response = send(HttpMethod.GET, "/v1/application_type_schemas/schemas", null, null); Assertions.assertEquals(200, response.status()); AtomicReference jsonNode = new AtomicReference<>(); @@ -31,7 +30,7 @@ void testApplicationTypeSchemaList_ok() { @Test void testApplicationTypeSchemaMetaSchema_ok() { - Response response = send(HttpMethod.GET,"/v1/application_type_schemas/meta_schema",null, null); + Response response = send(HttpMethod.GET, "/v1/application_type_schemas/meta_schema", null, null); Assertions.assertEquals(200, response.status()); AtomicReference jsonNodeRef = new AtomicReference<>(); @@ -44,8 +43,8 @@ void testApplicationTypeSchemaMetaSchema_ok() { @Test void testApplicationTypeSchemaSchema_ok() { - Response response = send(HttpMethod.GET,"/v1/application_type_schemas/schema", - "id=https://mydial.somewhere.com/custom_application_schemas/specific_application_type", null); + Response response = send(HttpMethod.GET, "/v1/application_type_schemas/schema", + "id=https://mydial.somewhere.com/custom_application_schemas/specific_application_type", null); Assertions.assertEquals(200, response.status()); AtomicReference jsonNodeRef = new AtomicReference<>(); diff --git a/server/src/test/java/com/epam/aidial/core/server/ResourceApiTest.java b/server/src/test/java/com/epam/aidial/core/server/ResourceApiTest.java index 472cbaaa..74851267 100644 --- a/server/src/test/java/com/epam/aidial/core/server/ResourceApiTest.java +++ b/server/src/test/java/com/epam/aidial/core/server/ResourceApiTest.java @@ -323,19 +323,19 @@ void testHeartbeat() { @Test void testApplicationWithTypeSchemaCreation_Ok_FilesAccessible() { - Response response = upload(HttpMethod.PUT,"/v1/files/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_file1.txt",null, """ + Response response = upload(HttpMethod.PUT, "/v1/files/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_file1.txt", null, """ Test1 """); Assertions.assertEquals(200, response.status()); - response = upload(HttpMethod.PUT,"/v1/files/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_file2.txt",null, """ + response = upload(HttpMethod.PUT, "/v1/files/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_file2.txt", null, """ Test2 """); Assertions.assertEquals(200, response.status()); - response = send(HttpMethod.PUT,"/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_files",null, """ + response = send(HttpMethod.PUT, "/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_files", null, """ { "displayName": "test_app", "customAppSchemaId": "https://mydial.somewhere.com/custom_application_schemas/specific_application_type", @@ -358,7 +358,7 @@ void testApplicationWithTypeSchemaCreation_Ok_FilesAccessible() { @Test void testApplicationWithTypeSchemaCreation_Ok_Folder() { - Response response = send(HttpMethod.PUT,"/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_folder",null, """ + Response response = send(HttpMethod.PUT, "/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_folder", null, """ { "displayName": "test_app", "customAppSchemaId": "https://mydial.somewhere.com/custom_application_schemas/specific_application_type", @@ -380,7 +380,7 @@ void testApplicationWithTypeSchemaCreation_Ok_Folder() { @Test void testApplicationWithTypeSchemaCreation_Failed_FailAccessFile() { - Response response = send(HttpMethod.PUT,"/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_files_failed",null, """ + Response response = send(HttpMethod.PUT, "/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_files_failed", null, """ { "displayName": "test_app", "customAppSchemaId": "https://mydial.somewhere.com/custom_application_schemas/specific_application_type", @@ -402,7 +402,7 @@ void testApplicationWithTypeSchemaCreation_Failed_FailAccessFile() { @Test void testApplicationWithTypeSchemaCreation_Failed_FailMissingProps() { - Response response = send(HttpMethod.PUT,"/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_props_failed",null, """ + Response response = send(HttpMethod.PUT, "/v1/applications/3CcedGxCx23EwiVbVmscVktScRyf46KypuBQ65miviST/test_app_props_failed", null, """ { "displayName": "test_app", "customAppSchemaId": "https://mydial.somewhere.com/custom_application_schemas/specific_application_type",