From c531376a41e14494e2cf0c5727b75a7965c05194 Mon Sep 17 00:00:00 2001 From: MagzhanArtykov Date: Tue, 2 Apr 2024 16:17:01 +0600 Subject: [PATCH] MODINVSTOR-1179 Add ecsRequestRouting field to service point schema --- ramls/servicepoint.json | 5 +++++ src/test/java/org/folio/rest/api/ServicePointTest.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ramls/servicepoint.json b/ramls/servicepoint.json index 1590139dc..2e74538d2 100644 --- a/ramls/servicepoint.json +++ b/ramls/servicepoint.json @@ -72,6 +72,11 @@ ] } }, + "ecsRequestRouting": { + "type": "boolean", + "description": "indicates service point used for ECS functionality", + "default" : false + }, "metadata": { "type": "object", "$ref": "raml-util/schemas/metadata.schema", diff --git a/src/test/java/org/folio/rest/api/ServicePointTest.java b/src/test/java/org/folio/rest/api/ServicePointTest.java index 65cfe7409..7c5e05378 100644 --- a/src/test/java/org/folio/rest/api/ServicePointTest.java +++ b/src/test/java/org/folio/rest/api/ServicePointTest.java @@ -74,6 +74,7 @@ public void canCreateServicePoint() assertThat(response.getJson().getString("id"), notNullValue()); assertThat(response.getJson().getString("code"), is("cd1")); assertThat(response.getJson().getString("name"), is("Circ Desk 1")); + assertThat(response.getJson().getBoolean("ecsRequestRouting"), is(false)); } @Test @@ -780,8 +781,7 @@ private List getMany(String cql, Object... args) throws InterruptedE private Response getById(UUID id) throws InterruptedException, ExecutionException, - TimeoutException, - MalformedURLException { + TimeoutException { CompletableFuture getCompleted = new CompletableFuture<>();