Skip to content

Merge pull request #379 from ita-social-projects/3015-Delete-user-pro…

Sign in for the full log view
GitHub Actions / Tests Report failed Sep 5, 2024 in 0s

Tests Report ❌

Tests failed

Report Passed Failed Skipped Time
core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml 1✔️ 4ms
core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml 3✔️ 135ms
core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml 9✔️ 182ms
core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml 52✔️ 1s
core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml 22✔️ 485ms
core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml 2✔️ 46ms
core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml 1✔️ 134ms
core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml 8✔️ 2s
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml 7✔️ 4❌ 434ms
core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 439ms
core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml 1✔️ 2s
core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 175ms

✔️ core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml

1 tests were completed in 4ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.config.AsyncConfigTest 1✔️ 4ms

✔️ greencity.config.AsyncConfigTest

✔️ testCustomTaskExecutor

✔️ core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml

3 tests were completed in 135ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.config.WebSocketConfigTest 3✔️ 135ms

✔️ greencity.config.WebSocketConfigTest

✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest

✔️ core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml

9 tests were completed in 182ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.EmailControllerTest 9✔️ 182ms

✔️ greencity.controller.EmailControllerTest

✔️ sendUserTaggedInCommentNotification
✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ addEcoNews
✔️ sendEmailNotificationTest
✔️ sendReport
✔️ changePlaceStatus
✔️ sendUserReceivedScheduledNotification
✔️ sendHabitAssignNotification

✔️ core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml

52 tests were completed in 1s with 52 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.UserControllerTest 52✔️ 1s

✔️ greencity.controller.UserControllerTest

✔️ saveTest
✔️ getReasonsOfDeactivation
✔️ getUserByPrincipalTest
✔️ scheduleDeleteDeactivateUserTest
✔️ findUserForAchievementTest
✔️ getAllAuthoritiesTest
✔️ deactivateEmployeeByUUID
✔️ findAllUsersCitiesTest
✔️ updateEmployeeEmailTest
✔️ getAllUsersTest
✔️ deleteUserProfilePictureTest
✔️ activateUser
✔️ editUserRatingTest
✔️ findByEmailTest
✔️ updateStatusTest
✔️ deactivateAllUserTest
✔️ getUserProfileInformationTest
✔️ checkUsersOnlineStatusTest
✔️ searchTest
✔️ findNotDeactivatedByEmailIfNullTest
✔️ checkIfTheUserIsOnlineTest
✔️ createUbsRecordTest
✔️ searchByTest
✔️ saveUserTest
✔️ findUserForManagementTest
✔️ findAllTest
✔️ getActivatedUsersAmountTest
✔️ findUuidByEmailTest
✔️ updateUserProfilePictureTest
✔️ deactivateUser
✔️ getRolesTest
✔️ editAuthoritiesTest
✔️ findAllByEmailNotificationTest
✔️ updateRoleTest
✔️ updateUserTest
✔️ findAllRegistrationMonthsMapTest
✔️ getUsersByFilterTest
✔️ findNotDeactivatedByEmailTest
✔️ updateStatusBadRequestTest
✔️ checkIfUserExistsByUuidTest
✔️ getAvailableCustomShoppingListItemTest
✔️ updateUserManagementTest
✔️ updateUserManagementBadRequestTest
✔️ findByIdTest
✔️ findIdByEmailTest
✔️ getPositionsAndRelatedAuthoritiesTest
✔️ updateRoleBadRequestForEmptyBodyTest
✔️ getUserProfileStatistics
✔️ getUserLang
✔️ updatePositionsAndRelatedAuthoritiesTest
✔️ updateUserLanguageTest
✔️ getEmailNotificationsTest

✔️ core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml

22 tests were completed in 485ms with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.exception.handler.CustomExceptionHandlerTest 22✔️ 485ms

✔️ greencity.exception.handler.CustomExceptionHandlerTest

✔️ handleHttpMessageNotReadable
✔️ handleBase64DecodedExceptionTest
✔️ handleUserAlreadyHasPasswordException
✔️ handleUserDeactivationExceptionTest
✔️ handleProfilePictureSizeExceededException
✔️ handleEmailNotVerified
✔️ handleInsufficientLocationDataExceptionTest
✔️ handleWrongIdException
✔️ handleMethodArgumentNotValid
✔️ handleBadEmailException
✔️ handleGoogleApiException
✔️ handleWrongPasswordException
✔️ handleBadSocialNetworkLinkException
✔️ handleLanguageNotFoundException
✔️ handleWrongEmailException
✔️ testHandleBadRefreshTokenException
✔️ handleUserStatusException
✔️ handleBadRequestException
✔️ testHandleBadSocialNetworkLinkException
✔️ handleGoogleApiException_GeocodingResultBadRequest_ReturnsBadRequest
✔️ handleNotFoundException
✔️ handleConversionFailedException

✔️ core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml

2 tests were completed in 46ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.FacebookSecurityControllerTest 2✔️ 46ms

✔️ greencity.security.controller.FacebookSecurityControllerTest

✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest

✔️ core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml

1 tests were completed in 134ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.GoogleSecurityControllerTest 1✔️ 134ms

✔️ greencity.security.controller.GoogleSecurityControllerTest

✔️ authenticateTest

✔️ core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml

8 tests were completed in 2s with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.ManagementSecurityControllerTest 8✔️ 2s

✔️ greencity.security.controller.ManagementSecurityControllerTest

✔️ loginPage
✔️ signInUserDeactivated
✔️ signInEmailNotVerified
✔️ signIn
✔️ signInUserDoNotHaveAuthorities
✔️ signInWrongPassword
✔️ signInWrongEmail
✔️ loginPageInvalidDto

❌ core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml

11 tests were completed in 434ms with 7 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.OwnSecurityControllerTest 7✔️ 4❌ 434ms

❌ greencity.security.controller.OwnSecurityControllerTest

✔️ signInTest
✔️ verifyEmailTest
❌ setPassword
	org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
❌ updatePasswordTest
	org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
❌ hasPassword
	org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
✔️ changePasswordTest
✔️ updateAccessTokenTest
✔️ singUpTest
✔️ restoreTest
❌ deleteUser
	org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
✔️ singUpEmployeeTest

✔️ core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml

3 tests were completed in 439ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.filters.AccessTokenAuthenticationFilterTest 3✔️ 439ms

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest

✔️ core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.filters.UserOnlineStatusUpdateFilterTest 1✔️ 2s

✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest

✔️ doFilterInternalTest

✔️ core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml

4 tests were completed in 175ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.providers.JwtAuthenticationProviderTest 4✔️ 175ms

✔️ greencity.security.providers.JwtAuthenticationProviderTest

✔️ supportsTest
✔️ authenticateWithMalformedAccessToken
✔️ authenticateWithExpiredAccessToken
✔️ authenticateWithValidAccessToken

Annotations

Check failure on line 0 in core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.security.controller.OwnSecurityControllerTest ► setPassword

Failed test found in:
  core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
  org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 

Argument(s) are different! Wanted:
ownSecurityService.setPassword(
    greencity.security.dto.ownsecurity.SetPasswordDto@db7dbca9,
    "test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.setPassword(OwnSecurityControllerTest.java:189)
Actual invocations have different arguments:
ownSecurityService.setPassword(
    greencity.security.dto.ownsecurity.SetPasswordDto@db7dbca9,
    "test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.setPassword(OwnSecurityController.java:277)

	at greencity.security.controller.OwnSecurityControllerTest.setPassword(OwnSecurityControllerTest.java:189)

Check failure on line 0 in core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.security.controller.OwnSecurityControllerTest ► updatePasswordTest

Failed test found in:
  core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
  org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 

Argument(s) are different! Wanted:
ownSecurityService.updateCurrentPassword(
    UpdatePasswordDto(password=String124=, confirmPassword=String123=),
    "test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.updatePasswordTest(OwnSecurityControllerTest.java:218)
Actual invocations have different arguments:
ownSecurityService.updateCurrentPassword(
    UpdatePasswordDto(password=String124=, confirmPassword=String123=),
    "test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.updatePassword(OwnSecurityController.java:218)

	at greencity.security.controller.OwnSecurityControllerTest.updatePasswordTest(OwnSecurityControllerTest.java:218)

Check failure on line 0 in core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.security.controller.OwnSecurityControllerTest ► hasPassword

Failed test found in:
  core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
  org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 

Argument(s) are different! Wanted:
ownSecurityService.hasPassword(
    "test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.hasPassword(OwnSecurityControllerTest.java:198)
Actual invocations have different arguments:
ownSecurityService.hasPassword(
    "test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.passwordStatus(OwnSecurityController.java:257)

	at greencity.security.controller.OwnSecurityControllerTest.hasPassword(OwnSecurityControllerTest.java:198)

Check failure on line 0 in core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.security.controller.OwnSecurityControllerTest ► deleteUser

Failed test found in:
  core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
  org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent: 

Argument(s) are different! Wanted:
ownSecurityService.deleteUserByEmail(
    "test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.deleteUser(OwnSecurityControllerTest.java:227)
Actual invocations have different arguments:
ownSecurityService.deleteUserByEmail(
    "test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.deleteUser(OwnSecurityController.java:295)

	at greencity.security.controller.OwnSecurityControllerTest.deleteUser(OwnSecurityControllerTest.java:227)