Skip to content

Add places to notifications #1339

Add places to notifications

Add places to notifications #1339

GitHub Actions / Tests Report failed Oct 11, 2024 in 0s

Tests Report ❌

Tests failed

Report Passed Failed Skipped Time
core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml 1✔️ 0ms
core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml 3✔️ 160ms
core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml 4✔️ 2❌ 184ms
core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml 52✔️ 5s
core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml 23✔️ 976ms
core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml 2✔️ 69ms
core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml 1✔️ 50ms
core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml 8✔️ 200ms
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml 11✔️ 265ms
core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 325ms
core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml 1✔️ 219ms
core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 184ms

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

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

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

✔️ greencity.config.AsyncConfigTest

✔️ testCustomTaskExecutor

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

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

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

✔️ greencity.config.WebSocketConfigTest

✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest

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

6 tests were completed in 184ms with 4 passed, 2 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.EmailControllerTest 4✔️ 2❌ 184ms

❌ greencity.controller.EmailControllerTest

✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ sendInterestingEcoNews
❌ changePlaceStatusInvalidPlaceStatus
	java.lang.AssertionError: Status expected:<400> but was:<404>
❌ sendReport
	com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
✔️ sendUserReceivedScheduledNotification

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

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

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

✔️ 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

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

Test suite Passed Failed Skipped Time
greencity.exception.handler.CustomExceptionHandlerTest 23✔️ 976ms

✔️ greencity.exception.handler.CustomExceptionHandlerTest

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

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

✔️ greencity.security.controller.FacebookSecurityControllerTest

✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest

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

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

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

✔️ greencity.security.controller.GoogleSecurityControllerTest

✔️ authenticateTest

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

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

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

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

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

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

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

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest

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

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

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

✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest

✔️ doFilterInternalTest

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

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

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

✔️ greencity.security.providers.JwtAuthenticationProviderTest

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

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.controller.EmailControllerTest ► changePlaceStatusInvalidPlaceStatus

Failed test found in:
  core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml
Error:
  java.lang.AssertionError: Status expected:<400> but was:<404>
Raw output
java.lang.AssertionError: Status expected:<400> but was:<404>
	at greencity.controller.EmailControllerTest.changePlaceStatusInvalidPlaceStatus(EmailControllerTest.java:134)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

greencity.controller.EmailControllerTest ► sendReport

Failed test found in:
  core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml
Error:
  com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: 
Raw output
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: 
Unrecognized field "emailNotification" (class greencity.message.SendReportEmailMessage), not marked as ignorable (3 known properties: "categoriesDtoWithPlacesDtoMap", "subscribers", "periodicity"])
 at [Source: (String)"{
    "categoriesDtoWithPlacesDtoMap": {
        "additionalProp1": [
            {
                "category": {
                    "name": "string",
                    "parentCategoryId": 0
                },
                "name": "string"
            }
        ],
        "additionalProp2": [
            {
                "category": {
                    "name": "string",
                    "parentCategoryId": 0
                },
                "name": "string"
            }
        ]
"[truncated 181 chars]; line: 22, column: 27] (through reference chain: greencity.message.SendReportEmailMessage["emailNotification"])
	at greencity.controller.EmailControllerTest.sendReport(EmailControllerTest.java:115)