Skip to content

Pact contract tests: distributions and payouts APIs consumer verification #749

Description

@thlpkee20-wq

Description

Extend Pact coverage to /distributions and /payouts endpoints. Publish provider states and enforce contract mismatches as build failures.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: src/routes/distributions.ts, src/routes/payouts.ts
  • Broker credentials sourced securely

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b tests/pact-distributions-payouts
  • Implement changes
    • Add pact provider verification for both routes
    • Publish states
    • Document consumer contract sources
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • npm test
  • Cover edge cases
    • Field removal breaks build until consumer accepts
  • Include test output and notes

Example commit message

tests: Pact verification for distributions and payouts

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions