Skip to content

feat: add contract tests for olcs-transfer API alignment#168

Merged
sr4850 merged 1 commit into
mainfrom
feat/contract-tests
May 11, 2026
Merged

feat: add contract tests for olcs-transfer API alignment#168
sr4850 merged 1 commit into
mainfrom
feat/contract-tests

Conversation

@sr4850

@sr4850 sr4850 commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Add 76 contract tests validating enum values and builder JSON serialisation against the olcs-transfer API contract:

  • EnumContractTest: validates all 13 enums (81 constants) match olcs-transfer InArray validators
  • BuilderContractTest: validates JSON field names for Application, Address, ContactDetails, Person, and TrackingBuilder

Fix BusinessType.OTHER leading space bug caught by contract tests (' org_t_pa' → 'org_t_pa').

Add contract-tests.yaml workflow triggered by:

  • Pull requests (catches vol-api-calls changes)
  • repository_dispatch (triggered by olcs-transfer on merge to main)
  • Weekly schedule (safety net)

Add junit-jupiter test dependency to align engine version with API provided transitively by active-support.

Description

Related issue: JIRA_TICKET_NUMBER

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

Add 76 contract tests validating enum values and builder JSON
serialisation against the olcs-transfer API contract:

- EnumContractTest: validates all 13 enums (81 constants) match
  olcs-transfer InArray validators
- BuilderContractTest: validates JSON field names for Application,
  Address, ContactDetails, Person, and TrackingBuilder

Fix BusinessType.OTHER leading space bug caught by contract tests
(' org_t_pa' → 'org_t_pa').

Add contract-tests.yaml workflow triggered by:
- Pull requests (catches vol-api-calls changes)
- repository_dispatch (triggered by olcs-transfer on merge to main)
- Weekly schedule (safety net)

Add junit-jupiter test dependency to align engine version with
API provided transitively by active-support.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sr4850 sr4850 merged commit 9f75293 into main May 11, 2026
6 checks passed
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