Skip to content

Commit

Permalink
Merge back from 0.4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpaolodidato89 authored Feb 20, 2025
1 parent c5abe85 commit f9d422f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ public Uni<CheckManagerResponse> checkManager(OnboardingUserRequest onboardingUs

// If the list of onboardings filtered by manager's role is empty, the
// response is 404
if (onboardings.stream()
/*if (onboardings.stream()
.noneMatch(
onboarding ->
onboarding.getUsers().stream()
Expand All @@ -1767,7 +1767,7 @@ public Uni<CheckManagerResponse> checkManager(OnboardingUserRequest onboardingUs
.failure(
new ResourceNotFoundException(
"No manager found for the data in input"));
}
}*/

String institutionId = onboardings.get(0).getInstitution().getId();
return isUserActiveManager(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,7 @@ void testCheckManagerWithEmptyOnboardings() {
assertFalse(checkResponse.isResponse());
}

@Test
/*@Test
void testCheckManagerWithRemovedUser() {
OnboardingUserRequest request = createDummyUserRequest();
PanacheMock.mock(Onboarding.class);
Expand All @@ -3019,7 +3019,7 @@ void testCheckManagerWithRemovedUser() {
.withSubscriber(UniAssertSubscriber.create());
subscriber.assertFailedWith(ResourceNotFoundException.class);
}
}*/

@Test
void testCheckManagerWithEmptyUserList() {
Expand Down

0 comments on commit f9d422f

Please sign in to comment.