Lan Khuat created JAMES-3486:
--------------------------------

             Summary: Adapt MailboxChangesMethodContract for stability against 
distributed environment
                 Key: JAMES-3486
                 URL: https://issues.apache.org/jira/browse/JAMES-3486
             Project: James Server
          Issue Type: Sub-task
            Reporter: Lan Khuat


h3. Objective

Because changes in distributed environment do not happen instantaneously, we 
need to adapt the contract so that the tests behave in a more reliable way.
h3. How

Before, we were storing a state manually as a reference point, then the 
change(s) that we interested in would be conducted after that. This will not 
work in distributed environment, since the reference state might be stored even 
before the provisioning process complete and leads to unpredictable result.
 * We will wait for a new state to be recorded successfully each time there is 
a change happen
 * Fetch them sequentially until all the preparation steps are completed
 * Mark the latest stage
 * Conduct the change that we are interested in
 * fetch the result with the latest state as reference point.

h3. DoD

Integration tests for MailboxChangesMethod should run reliably in distributed 
environment.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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