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

Sync USERNAME_REGEXP with the UI one #428

Merged
merged 3 commits into from
Dec 16, 2024

Expand test cases for DTO validation.

704c400
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Sync USERNAME_REGEXP with the UI one #428

Expand test cases for DTO validation.
704c400
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tests Report succeeded Dec 16, 2024 in 0s

Tests Report ✔️

Tests passed successfully

Report Passed Failed Skipped Time
core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml 1✔️ 1ms
core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml 3✔️ 115ms
core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml 6✔️ 120ms
core/target/surefire-reports/TEST-greencity.controller.TestersControllerTest.xml 1✔️ 40ms
core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml 52✔️ 1s
core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml 24✔️ 3s
core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml 2✔️ 51ms
core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml 1✔️ 2s
core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml 8✔️ 538ms
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml 12✔️ 365ms
core/target/surefire-reports/TEST-greencity.security.controller.TestersSecurityControllerTest.xml 1✔️ 260ms
core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 253ms
core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml 1✔️ 190ms
core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 265ms

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

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

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

✔️ greencity.config.AsyncConfigTest

✔️ testCustomTaskExecutor

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

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

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

✔️ greencity.config.WebSocketConfigTest

✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest

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

6 tests were completed in 120ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.EmailControllerTest 6✔️ 120ms

✔️ greencity.controller.EmailControllerTest

✔️ sendPlaceStatusChangeTest
✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ sendInterestingEcoNews
✔️ sendReport
✔️ sendUserReceivedScheduledNotification

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

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

Test suite Passed Failed Skipped Time
greencity.controller.TestersControllerTest 1✔️ 40ms

✔️ greencity.controller.TestersControllerTest

✔️ testUnblockAccountSuccess

✔️ 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
✔️ getAvailableCustomToDoListItemTest
✔️ checkUsersOnlineStatusTest
✔️ searchTest
✔️ findNotDeactivatedByEmailIfNullTest
✔️ checkIfTheUserIsOnlineTest
✔️ createUbsRecordTest
✔️ searchByTest
✔️ findUserForManagementTest
✔️ findAllTest
✔️ getActivatedUsersAmountTest
✔️ findUuidByEmailTest
✔️ updateUserProfilePictureTest
✔️ deactivateUser
✔️ getRolesTest
✔️ editAuthoritiesTest
✔️ findAllByEmailNotificationTest
✔️ updateRoleTest
✔️ updateUserTest
✔️ findAllRegistrationMonthsMapTest
✔️ getUsersByFilterTest
✔️ findNotDeactivatedByEmailTest
✔️ updateStatusBadRequestTest
✔️ checkIfUserExistsByUuidTest
✔️ 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 3s with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.exception.handler.CustomExceptionHandlerTest 24✔️ 3s

✔️ greencity.exception.handler.CustomExceptionHandlerTest

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

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

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

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

✔️ greencity.security.controller.FacebookSecurityControllerTest

✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest

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

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

Test suite Passed Failed Skipped Time
greencity.security.controller.GoogleSecurityControllerTest 1✔️ 2s

✔️ greencity.security.controller.GoogleSecurityControllerTest

✔️ authenticateTest

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

8 tests were completed in 538ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.ManagementSecurityControllerTest 8✔️ 538ms

✔️ greencity.security.controller.ManagementSecurityControllerTest

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

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

12 tests were completed in 365ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.controller.OwnSecurityControllerTest 12✔️ 365ms

✔️ greencity.security.controller.OwnSecurityControllerTest

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

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

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

Test suite Passed Failed Skipped Time
greencity.security.controller.TestersSecurityControllerTest 1✔️ 260ms

✔️ greencity.security.controller.TestersSecurityControllerTest

✔️ signInTest

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

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

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

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest

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

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

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

✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest

✔️ doFilterInternalTest

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

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

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

✔️ greencity.security.providers.JwtAuthenticationProviderTest

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