Skip to content

Added brute-force protection #1328

Added brute-force protection

Added brute-force protection #1328

GitHub Actions / Tests Report succeeded Oct 8, 2024 in 0s

Tests Report ✔️

Tests passed successfully

Report Passed Failed Skipped Time
core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml 1✔️ 114ms
core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml 3✔️ 2s
core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml 7✔️ 183ms
core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml 52✔️ 2s
core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml 24✔️ 626ms
core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml 2✔️ 60ms
core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml 1✔️ 49ms
core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml 8✔️ 2s
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml 11✔️ 599ms
core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 450ms
core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml 1✔️ 684ms
core/target/surefire-reports/TEST-greencity.security.listener.AuthenticationFailureListenerTest.xml 3✔️ 52ms
core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 192ms

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

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

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

✔️ greencity.config.AsyncConfigTest

✔️ testCustomTaskExecutor

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

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

Test suite Passed Failed Skipped Time
greencity.config.WebSocketConfigTest 3✔️ 2s

✔️ greencity.config.WebSocketConfigTest

✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest

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

7 tests were completed in 183ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.EmailControllerTest 7✔️ 183ms

✔️ greencity.controller.EmailControllerTest

✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ sendInterestingEcoNews
✔️ changePlaceStatusInvalidPlaceStatus
✔️ sendReport
✔️ changePlaceStatus
✔️ sendUserReceivedScheduledNotification

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

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

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

✔️ 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
✔️ findUserForManagementTest
✔️ findAllTest
✔️ getActivatedUsersAmountTest
✔️ findUuidByEmailTest
✔️ updateUserProfilePictureTest
✔️ deactivateUser
✔️ getRolesTest
✔️ editAuthoritiesTest
✔️ findAllByEmailNotificationTest
✔️ updateRoleTest
✔️ updateUserTest
✔️ findAllRegistrationMonthsMapTest
✔️ getUsersByFilterTest
✔️ findNotDeactivatedByEmailTest
✔️ updateStatusBadRequestTest
✔️ checkIfUserExistsByUuidTest
✔️ getAvailableCustomShoppingListItemTest
✔️ updateUserManagementTest
✔️ updateUserManagementBadRequestTest
✔️ findByIdTest
✔️ findIdByEmailTest
✔️ getPositionsAndRelatedAuthoritiesTest
✔️ updateRoleBadRequestForEmptyBodyTest
✔️ getUserProfileStatistics
✔️ saveWithEmailPreferencesTest
✔️ getUserLang
✔️ updatePositionsAndRelatedAuthoritiesTest
✔️ updateUserLanguageTest
✔️ getEmailNotificationsTest

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

24 tests were completed in 626ms with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.exception.handler.CustomExceptionHandlerTest 24✔️ 626ms

✔️ greencity.exception.handler.CustomExceptionHandlerTest

✔️ handleUserBlockedExceptionTest
✔️ handleHttpMessageNotReadable
✔️ handleBase64DecodedExceptionTest
✔️ handleUserAlreadyHasPasswordException
✔️ testHandleIllegalTokenException
✔️ 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 60ms with 2 passed, 0 failed and 0 skipped.

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

✔️ greencity.security.controller.FacebookSecurityControllerTest

✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest

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

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

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

✔️ 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 599ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.OwnSecurityControllerTest 11✔️ 599ms

✔️ greencity.security.controller.OwnSecurityControllerTest

✔️ signInTest
✔️ verifyEmailTest
✔️ setPassword
✔️ updatePasswordTest
✔️ hasPassword
✔️ changePasswordTest
✔️ updateAccessTokenTest
✔️ singUpTest
✔️ restoreTest
✔️ deleteUser
✔️ singUpEmployeeTest

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

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

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

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest

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

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

Test suite Passed Failed Skipped Time
greencity.security.filters.UserOnlineStatusUpdateFilterTest 1✔️ 684ms

✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest

✔️ doFilterInternalTest

✔️ core/target/surefire-reports/TEST-greencity.security.listener.AuthenticationFailureListenerTest.xml

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

Test suite Passed Failed Skipped Time
greencity.security.listener.AuthenticationFailureListenerTest 3✔️ 52ms

✔️ greencity.security.listener.AuthenticationFailureListenerTest

✔️ testOnApplicationEventWithXForwardedForHeader
✔️ testOnApplicationEventWithMultipleIPsInXForwardedForHeader
✔️ testOnApplicationEventWithoutXForwardedForHeader

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

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

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

✔️ greencity.security.providers.JwtAuthenticationProviderTest

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