Skip to content

fix: correct OAS schema refs and response body assertions in test definitions - #230

Merged
rartych merged 1 commit into
camaraproject:mainfrom
rartych:fix/test-definitions
Jul 30, 2026
Merged

fix: correct OAS schema refs and response body assertions in test definitions#230
rartych merged 1 commit into
camaraproject:mainfrom
rartych:fix/test-definitions

Conversation

@rartych

@rartych rartych commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • correction

What this PR does / why we need it:

Fixes Gherkin test definitions:

  • Response body assertion: fixed scenarios 02 and 03 in retrieveCallForwarding.feature where the response body was asserted as a plain string (is a string with the value "inactive") — CallForwardingSignal is an array, so the correct assertion is is an array of strings with the possible values ["inactive"]
  • OAS schema refs: replaced /components/schemas/... with #/components/schemas/... in all complies with the OAS schema at and does not comply with the OAS schema at steps in both feature files

Which issue(s) this PR fixes:

Fixes #228

Special notes for reviewers:

Scenarios 02 and 03 use the same step definition as scenarios 04/05: the response body is an array of strings with the possible values [...], which simplifies test implementation.
The #/components/schemas/... form is the correct JSON Pointer / OAS local reference syntax used by the CAMARA test framework.

Changelog input

 Fixed OAS schema references and response body assertions in test definitions

…initions

- Use '#/components/schemas/...' instead of '/components/schemas/...' for
  OAS schema references in Background x-correlator and scenario steps
- Fix CallForwardingSignal inactive scenarios: response body is an array
  of strings with value [inactive], not a plain string
- Fixes camaraproject#228

@bigludo7 bigludo7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych
rartych merged commit a0dd21d into camaraproject:main Jul 30, 2026
2 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.

Mismatch Between Test Case and OpenAPI Schema

2 participants