Skip to content

Commit

Permalink
feat: added assignment id to openapi to return (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Mar 18, 2024
1 parent bfa2e8c commit a0b6173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/openapi/onecx-workspace-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ components:
Assignment:
type: object
properties:
id:
type: string
modificationCount:
format: int32
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void createAssignment() {
assertThat(dto).isNotNull()
.returns(requestDTO.getRoleId(), from(AssignmentDTO::getRoleId))
.returns(requestDTO.getMenuItemId(), from(AssignmentDTO::getMenuItemId));
assertThat(dto.getId()).isNotNull();

// create Role without body
var exception = given()
Expand Down Expand Up @@ -135,6 +136,7 @@ void searchAssignmentTest() {
assertThat(data).isNotNull();
assertThat(data.getTotalElements()).isEqualTo(3);
assertThat(data.getStream()).isNotNull().hasSize(3);
assertThat(data.getStream().get(0).getId()).isNotNull();

criteria.setWorkspaceId("11-111");
data = given()
Expand Down

0 comments on commit a0b6173

Please sign in to comment.