[ 
https://issues.apache.org/jira/browse/JAMES-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797091#comment-16797091
 ] 

Tellier Benoit commented on JAMES-2666:
---------------------------------------

https://github.com/linagora/james-project/pull/2239 did propose a cool scenario 
on top of ElasticSearch indexing

> Integration tests for EventDeadLetter
> -------------------------------------
>
>                 Key: JAMES-2666
>                 URL: https://issues.apache.org/jira/browse/JAMES-2666
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Trần Tiến Đức
>            Priority: Major
>
> In webAdmin integration test, write a DeadLetterTest
> You will:
> - Create a stateful listener that fails 'n' times on a given eventId, then 
> succeeds and allow retrieving the list of successfully processed eventIds.
> - Load this listener into a James server
> {code:java}
> When an event is initially processed
> Then the processing of this event is failing
> And I can retrieve this event in the EventDeadLetter using webAdmin{code}
>  
> {code:java}
> Given an event is initially processed
> And the processing of this event is failing
> When I do reprocess this event stored in EventDeadLetter
> Then The new processing succeed (n = num-retry){code}
>  
> {code:java}
> Given an event is initially processed
> And the processing of this event is failing
> When I do reprocess this event stored in EventDeadLetter
> Then The still fails (n > 2 * num-retry)
> And the event is still in deadLetter{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to