-
Notifications
You must be signed in to change notification settings - Fork 60
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
maintenance: Add getAllTeamsSUFromRegisterUser, getAllTeamsSUOnly, ge… #2530
maintenance: Add getAllTeamsSUFromRegisterUser, getAllTeamsSUOnly, ge… #2530
Conversation
…tAllTeamsSU, deleteTeam, updateTeam and changePwd for UserTeamsControllerService Signed-off-by: Khatib Tamal <[email protected]>
…tAllTeamsSU, deleteTeam, updateTeam and changePwd for UserTeamsControllerService Signed-off-by: Khatib Tamal <[email protected]>
e724260
to
11438e2
Compare
@khatibtamal I will take a look today |
|
||
@Test | ||
public void getAllTeamsSU() {} | ||
public void getAllTeamsSUFromRegisterUsersEnvInvalidForTenant() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is good one indeed
@khatibtamal thank you for such beautiful tests with high coverage. Looks good to me. |
Yeah I am sorry, between getting sick and then trying to catch up at work, I haven't had a chance to look at this yet, but I am going to check it out this morning. Thanks a million for being so patient! |
Thanks a lot! appreciate |
…rsteamscontrollerservice' into 2427-finalize-unit-tests-for-usersteamscontrollerservice
Thanks @aindriu-aiven hope you are well now. I have updated the branch. |
…steamscontrollerservice
…steamscontrollerservice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM This is a great addition to improving the quality in Klaw Thank you very much!
…tAllTeamsSU, deleteTeam, updateTeam and changePwd for UserTeamsControllerService
Linked issue
Resolves: #2427
What kind of change does this PR introduce?
What is the current behavior?
UsersTeamsControllerService.java has unit test line coverage of apprx 70%.
What is the new behavior?
New unit tests added for
getAllTeamsSUFromRegisterUsers
,getAllTeamsSUOnly
,updateTeam
,changePwd
. The following tests were further refinedgetAllTeamsSU
,deleteTeam
.Other information
There was a test for
getAllTeamsSUOnly
but it was in fact testinggetAllTeamsSU
, the name was changed andgetAllTeamsSU
was refined. InUsersTeamsControllerService.java
there was some unused code, which was removed. Now the line coverage of tests forUsersTeamsControllerService
is 86%.Requirements (all must be checked before review)
main
branch have been pulledpnpm lint
has been run successfully