Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-523

Integration tests fail to send notifications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • parodos-backend
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • FLPATH 4, FLPATH 5
    • Critical

      When executing integration tests, there is a failure in the notification-service.

      2023-07-06 16:52:54.465  WARN 870951 --- [nio-8081-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public void com.redhat.parodos.notification.controller.NotificationMessageController.create(com.redhat.parodos.notification.dto.NotificationMessageCreateRequestDTO): [Error in object 'notificationMessageCreateRequestDTO': codes [ValidNotificationMessageUserOrGroup.notificationMessageCreateRequestDTO,ValidNotificationMessageUserOrGroup]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [notificationMessageCreateRequestDTO.,]; arguments []; default message []]; default message [usernames and groupNames are empty, at list one of them must have valid values]] ] 

      How to reproduce:

      cd workflow-examples
      ./start_workflow_service.sh &
      ./start_notification_service.sh 

      Then, start integration test running:

      mvn verify -pl integration-tests -P integration-test 

      The previous reported stacktrace will show up in the notification-service log.

            rh-ee-gfarache Gabriel Farache
            gciavarrini@redhat.com Gloria Ciavarrini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: