Uploaded image for project: 'SAFe Program'
  1. SAFe Program
  2. SP-2120

Extend ska-pact-tango with async events

Change Owns to Parent OfsSet start and due date...
    XporterXMLWordPrintable

Details

    • Enabler
    • Won't have (this time)
    • PI18
    • COM TMC SW
    • Obs Mgt & Controls
    • Hide

      We can use PACT to simplify integration testing.

      Tests of APIs can be done exclusively using PACT, achieveing a complete decoupling of the consumer team from the provider team. This inclreases flexibility and reliability of the testing process.

      A second benefit is that contracts are the materialization of the API, and PACT tests can be used to determine if the consumer/provider are compliant wrt the API specification. 

      Show
      We can use PACT to simplify integration testing. Tests of APIs can be done exclusively using PACT, achieveing a complete decoupling of the consumer team from the provider team. This inclreases flexibility and reliability of the testing process. A second benefit is that contracts are the materialization of the API, and PACT tests can be used to determine if the consumer/provider are compliant wrt the API specification. 
    • Hide
      • I can specify a contract for a consumer that registers a callback against an event
      • the contract allows me to specify conditions/properties of the payload of the event
      • PACT creates and injects a mock of the provider so that I can test the consumer
      • PACT supports verification of the contract against the provider

      A study needs to be included on what it would mean to extend the contract specification so that N providers and a particular sequence of events can be specified, as opposed to having a single provider and only one event. The rationale here is that most of the challenging problems appear when dealing with different ordering of the events, with possible race conditions, with different timings and delays of events. It would be good to be able to specify these conditions in the contract. 

      Show
      I can specify a contract for a consumer that registers a callback against an event the contract allows me to specify conditions/properties of the payload of the event PACT creates and injects a mock of the provider so that I can test the consumer PACT supports verification of the contract against the provider A study needs to be included on what it would mean to extend the contract specification so that N providers and a particular sequence of events can be specified, as opposed to having a single provider and only one event. The rationale here is that most of the challenging problems appear when dealing with different ordering of the events, with possible race conditions, with different timings and delays of events. It would be good to be able to specify these conditions in the contract. 
    • 4
    • 3
    • 0.75
    • Overdue
    • PI24 - UNCOVERED

    • testing

    Description

      It is necessary to extend the ska-pact-tango library so that it can handle also asynchronous interactions between a provider and a consumer. See some preliminary notes on https://confluence.skatelescope.org/display/SE/2021-11-08+-+Testing+CoP+Meeting.

      Attachments

        Issue Links

          Structure

            Activity

              People

                a.bridger Bridger, Alan
                g.brajnik Brajnik, Giorgio
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Feature Progress

                  Story Point Burn-up: (0%)

                  Feature Estimate: 4.0

                  IssuesStory Points
                  To Do00.0
                  In Progress   00.0
                  Complete00.0
                  Total00.0

                  Dates

                    Created:
                    Updated:

                    Structure Helper Panel