Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2884 Update JMAP implementation to conform to RFC 8620/8621
  3. JAMES-3486

Adapt MailboxChangesMethodContract for stability against distributed environment

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 3.6.0
    • None
    • None

    Description

      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.

      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.

      DoD

      Integration tests for MailboxChangesMethod should run reliably in distributed environment.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dlkhuat Lan Khuat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: