Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIRCSTORE-542 Add Intermediate ECS request phase #500

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ramls/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ecsRequestPhase": {
"description": "Stage in ECS request process, absence of this field means this is a single-tenant request",
"type": "string",
"enum": ["Primary", "Secondary"]
"enum": ["Primary", "Secondary", "Intermediate"]
},
"requestDate": {
"description": "Date the request was made",
Expand Down
9 changes: 9 additions & 0 deletions src/test/java/org/folio/rest/api/RequestsApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,15 @@ public void canCreateRequestWithEcsRequestPhase() throws MalformedURLException,
.create(),
requestStorageUrl()).getJson();
assertThat(representation.getString("ecsRequestPhase"), is("Secondary"));

representation = createEntity(
new RequestRequestBuilder()
.page()
.intermediate()
.withId(UUID.randomUUID())
.create(),
requestStorageUrl()).getJson();
assertThat(representation.getString("ecsRequestPhase"), is("Intermediate"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,8 @@ public RequestRequestBuilder secondary() {
return withEcsRequestPhase("Secondary");
}

public RequestRequestBuilder intermediate() {
return withEcsRequestPhase("Intermediate");
}

}
Loading