-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rest): Add documentation for new clearing size parameter.
Signed-off-by: Akshit Joshi <[email protected]>
- Loading branch information
1 parent
41da935
commit a7f1202
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ public void before() throws TException, IOException { | |
clearingRequest.setRequestingUser("[email protected]"); | ||
clearingRequest.setRequestingUserComment("testing comment"); | ||
clearingRequest.setClearingType(ClearingRequestType.DEEP); | ||
clearingRequest.setClearingSize(ClearingRequestSize.VERY_SMALL); | ||
clearingRequest.setTimestamp(1599285578); | ||
clearingRequest.setModifiedOn(1599285580); | ||
|
||
|
@@ -228,6 +229,7 @@ public void should_document_get_clearingrequest() throws Exception { | |
fieldWithPath("projectId").description("The id of the Project, for which clearing request is created"), | ||
fieldWithPath("requestedClearingDate").description("The requested clearing date of releases"), | ||
fieldWithPath("clearingType").description("The clearing type of the request, e.g., DEEP."), | ||
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())), | ||
fieldWithPath("requestingUser").description("The user who created the clearing request"), | ||
fieldWithPath("requestingUserComment").description("The comment from requesting user"), | ||
fieldWithPath("priority").description("The priority of clearing request. Possible values are: " + Arrays.asList(ClearingRequestPriority.values())), | ||
|
@@ -263,6 +265,7 @@ public void should_document_get_clearingrequest_by_projectid() throws Exception | |
fieldWithPath("projectId").description("The id of the Project, for which clearing request is created"), | ||
fieldWithPath("requestedClearingDate").description("The requested clearing date of releases"), | ||
fieldWithPath("clearingType").description("The clearing type of the request, e.g., DEEP."), | ||
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())), | ||
fieldWithPath("requestingUser").description("The user who created the clearing request"), | ||
fieldWithPath("requestingUserComment").description("The comment from requesting user"), | ||
fieldWithPath("priority").description("The priority of clearing request. Possible values are: " + Arrays.asList(ClearingRequestPriority.values())), | ||
|
@@ -442,6 +445,7 @@ public void should_document_patch_clearingrequest () throws Exception { | |
subsectionWithPath("_embedded.requestingUser").description("Requesting user detail"), | ||
subsectionWithPath("_links").description("Links to other resources"), | ||
fieldWithPath("clearingType").description("The type of clearing, e.g., DEEP"), | ||
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())), | ||
fieldWithPath("_embedded.totalRelease").description("Total number of releases"), | ||
fieldWithPath("_embedded.openRelease").description("Number of open releases"), | ||
fieldWithPath("_embedded.lastUpdatedOn").description("Last updated date for the clearing request"), | ||
|