Skip to content

Location Retrieval - Align Error Test#310

Merged
jlurien merged 3 commits intomainfrom
Fix307
Feb 27, 2025
Merged

Location Retrieval - Align Error Test#310
jlurien merged 3 commits intomainfrom
Fix307

Conversation

@bigludo7
Copy link
Collaborator

What type of PR is this?

Add one of the following kinds:

  • correction

What this PR does / why we need it:

  • Remove 429 from the yaml
  • add a summary for all examples in the yaml
  • add a 403 Test Case in the feature file
  • shift to 422 the Test Case for Missing Identifier

Which issue(s) this PR fixes:

Fixes #307

Special notes for reviewers:

404 NOT_FOUND is exceptionally kept in the spec even if there is no test for it

Changelog input

 release-note

Additional documentation

This section can be blank.

docs

@github-actions
Copy link

github-actions bot commented Feb 25, 2025

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.03s
✅ OPENAPI spectral 3 0 5.0s
✅ REPOSITORY git_diff yes no 0.01s
✅ REPOSITORY secretlint yes no 0.87s
✅ YAML yamllint 3 0 0.72s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

maxl2287
maxl2287 previously approved these changes Feb 25, 2025
@maxl2287 maxl2287 added the Spring25 Meta-release Spring25 label Feb 27, 2025
Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

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

I see these misalignments:

400 OUT_OF_RANGE -> defined but not tested. I don't think we need it looking into the request body schema
400 LOCATION_RETRIEVAL.MAXAGE_INVALID_ARGUMENT -> Description seems similar to 422 UNABLE_TO_FULFILL_MAX_AGE. is it needed? We should remove it or clarify when to use it instead of the other
422 LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_SURFACE -> We may need a new scenario, something like

  Scenario: Unable to provide device location with required maxSurface
    Given the testing device, identified by the token or provided in the request, is located within a surface of certain area
    And the request body property "$.maxSurface" is set to a value smaller than that area
    When the HTTP "POST" request is sent
    Then the response status code is 422
    And the response header "Content-Type" is "application/json"
    And the response header "x-correlator" has same value as the request header "x-correlator"
    And the response property "$.status" is 422
    And the response property "$.code" is "LOCATION_RETRIEVAL.UNABLE_TO_FULFILL_MAX_SURFACE"
    And the response property "$.message" contains a user friendly text

@bigludo7
Copy link
Collaborator Author

Thanks @jlurien

For the first 2 I need to update the yaml correct?
400 OUT_OF_RANGE -> defined but not tested. I don't think we need it looking into the request body schema --> Agree I'm in favor to remove
400 LOCATION_RETRIEVAL.MAXAGE_INVALID_ARGUMENT -> Description seems similar to 422 UNABLE_TO_FULFILL_MAX_AGE. is it needed? We should remove it or clarify when to use it instead of the other --> Agree I'm in favor to remove 400 LOCATION_RETRIEVAL.MAXAGE_INVALID_ARGUMENT

Giving the purpose of the PR I propose to do this in another issue/PR - WDYT?

Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

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

LGTM

@jlurien jlurien merged commit 63d402a into main Feb 27, 2025
2 checks passed
@bigludo7 bigludo7 deleted the Fix307 branch February 27, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Spring25 Meta-release Spring25

Projects

None yet

Development

Successfully merging this pull request may close these issues.

location-Retrieval: Align test plan with spec errors

3 participants