Skip to content

Conversation

@JakeNScale
Copy link
Contributor

@JakeNScale JakeNScale commented Dec 17, 2025

Summary

Implements consumer-side contract testing using Pact for the Region service integration. This establishes a contract between uni-compute (consumer) and uni-region (provider) to catch API breaking changes early in the development cycle.

Changes

  • Added Pact-based consumer contract tests for Region service (test/contracts/consumer/region/regions_test.go)
  • Added Makefile targets for contract testing workflow:
  • Added .gitignore for contract test artefacts

@JakeNScale
Copy link
Contributor Author

Validated locally as working, also CI has been validated using act.

Before this is merged we need to make sure:

Broker is deployed to Dev Cluster
GH secrets are updated with the PACT_BROKER_URL , PACT_BROKER_USERNAME, PACT_BROKER_PASSWORD in this project
This PR is now however ready to review ahead of the above

also, the failing CI job ContractTests is expected for now, as the broker isn't merged on uni-core so it can't reference package github.com/unikorn-cloud/core/pkg/testing/contract

@JakeNScale JakeNScale marked this pull request as ready for review January 6, 2026 03:55
@JakeNScale JakeNScale requested a review from peterj-ns January 8, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants