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

adapt test for single user using hashtag as id #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ public void testGetMultipleUsersWithIndexPaging200() {
}

@Test
@DisplayName("Test Get all users with # instead of id and verify Http status code: 404")
public void testGetAllUsersHashTag404() {
@DisplayName("Test Get single user with # instead of id and verify Http status code: 404 or 400")
public void testGetSingleUserHashTag404or400() {
logger.info("Fetching User with #");
SCIMResponse<User> scimResponse = resourceAwareUserRequest.readSingleUser("#");

assertAll("Verify GET Response", getResponseStatusAssertions(scimResponse, false, NOT_FOUND));
assertEquals(false, scimResponse.isSuccess(), "Verify response is failure");
assertEquals(true, scimResponse.getStatusCode() == NOT_FOUND.getStatusCode() || scimResponse.getStatusCode() == BAD_REQUEST.getStatusCode(), "Verify status code");
}

@Test
Expand Down