Skip to content

Commit

Permalink
MODINVSTOR-1179 Add ecsRequestRouting field to service point schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MagzhanArtykov committed Apr 2, 2024
1 parent 2fba8cd commit c531376
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ramls/servicepoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/folio/rest/api/ServicePointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -780,8 +781,7 @@ private List<JsonObject> getMany(String cql, Object... args) throws InterruptedE
private Response getById(UUID id)
throws InterruptedException,
ExecutionException,
TimeoutException,
MalformedURLException {
TimeoutException {

CompletableFuture<Response> getCompleted = new CompletableFuture<>();

Expand Down

0 comments on commit c531376

Please sign in to comment.