Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-5826

Set up Pact for contract testing

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • None
    • False
    • KONFLUX-2368 - Setup Contract Tests

      Story

      Add Pact contract tests to a repository. You can use a similar setup as was used for HAS.

      The preferred way is to create a folder in the repository's root and create files like this:

      pact
       pact_state_handlers_methods.go
       pact_state_params.go
       pact_states.go
       pact_test.go
       pact_utils.go 

      Background (Required)

      Feacute refinement doc link

      Out of scope

      Feacute refinement doc link

      Approach (Required)

      See the example in HAS repo.

      Dependencies

      Acceptance Criteria  (Mandatory)

      Pact contract tests are included in the provider repository.

      Done Checklist

      • Code is completed, reviewed, documented and checked in
      • Unit and integration test automation have been delivered and running cleanly in continuous integration/staging/canary environment
      • Continuous Delivery pipeline(s) is able to proceed with new code included
      • Customer facing documentation, API docs etc. are produced/updated, reviewed and published
      • Acceptance criteria are met

            Unassigned Unassigned
            kkanova Kateřina Foniok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: