Skip to content

Fix core, service and service-api issues #1307

Fix core, service and service-api issues

Fix core, service and service-api issues #1307

GitHub Actions / Tests Report succeeded Sep 30, 2024 in 1s

Tests Report ✔️

Tests passed successfully

Report Passed Failed Skipped Time
core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml 1✔️ 1s
core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml 3✔️ 975ms
core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml 10✔️ 239ms
core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml 52✔️ 1s
core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml 22✔️ 535ms
core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml 2✔️ 161ms
core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml 1✔️ 42ms
core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml 8✔️ 1s
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml 11✔️ 403ms
core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 541ms
core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml 1✔️ 308ms
core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 399ms

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

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

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

✔️ greencity.config.AsyncConfigTest

✔️ testCustomTaskExecutor

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

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

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

✔️ greencity.config.WebSocketConfigTest

✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest

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

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

Test suite Passed Failed Skipped Time
greencity.controller.EmailControllerTest 10✔️ 239ms

✔️ greencity.controller.EmailControllerTest

✔️ sendUserTaggedInCommentNotification
✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ sendInterestingEcoNews
✔️ sendEmailNotificationTest
✔️ changePlaceStatusInvalidPlaceStatus
✔️ 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
✔️ 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

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

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

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

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

✔️ greencity.security.controller.FacebookSecurityControllerTest

✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest

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

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

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

✔️ greencity.security.controller.GoogleSecurityControllerTest

✔️ authenticateTest

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

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

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

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

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

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

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

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest

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

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

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

✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest

✔️ doFilterInternalTest

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

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

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

✔️ greencity.security.providers.JwtAuthenticationProviderTest

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