Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sim swap subscription test definition + adding 422 example for DEVICE_NOT_APPLICABLE #147

Merged
merged 8 commits into from
Aug 23, 2024

Conversation

bigludo7
Copy link
Collaborator

What type of PR is this?

Add one of the following kinds:

  • tests

What this PR does / why we need it:

Add test definition for sim swap subscription

Which issue(s) this PR fixes:

Fixes #145

Special notes for reviewers:

Changelog input

 release-note
- add test defintion for sim swap subscription

Additional documentation

This section can be blank.

docs

Copy link

github-actions bot commented Aug 22, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.02s
✅ OPENAPI spectral 2 0 3.31s
✅ REPOSITORY git_diff yes no 0.01s
✅ REPOSITORY secretlint yes no 0.78s
✅ YAML yamllint 2 0 0.5s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

code/Test_definitions/sim-swap-subscriptions.feature Outdated Show resolved Hide resolved
And "$.config.subscriptionDetail.phoneNumber" is set with with provided phoneNumber
And "$.sink" is set to provided callbackUrl
Then the response property "$.status" is 201
And the response header "Content-Type" is "application/json"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This applies to multiple scenarios

Suggested change
And the response header "Content-Type" is "application/json"
And the response header "Content-Type" is "application/json"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. This strange because look good in visual studio and then did not reflect properly. Anyway fixed in github editor.

code/Test_definitions/sim-swap-subscriptions.feature Outdated Show resolved Hide resolved
And the response property "$.code" is "INVALID_ARGUMENT"
And the response property "$.message" contains a user friendly text

@sim_swap_subscription_delete_27_subscription_without_id
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have doubts with this test because if in the path I send a subscriptionId that doesn't exist or I don't send it at all it should be a 404 right? because it is in the path

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes you're right. I remove this one.

code/Test_definitions/sim-swap-subscriptions.feature Outdated Show resolved Hide resolved
And the response property "$.code" is "INVALID_TOKEN_CONTEXT"
And the response property "$.message" contains a user friendly text

@sim_swap_subscription_delete_61_device_token_mismatch
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one is duplicated

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The scenario is not duplicate but the number yes - kept the scenario & fixed the number

code/Test_definitions/sim-swap-subscriptions.feature Outdated Show resolved Hide resolved
And the response property "$.code" is "NOT_FOUND"
And the response property "$.message" contains a user friendly text

@sim_swap_subscription_delete_81_not_found_delete_by_id
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one is the one I was referring in the above comment, for me it seems correct this way

@bigludo7 bigludo7 merged commit 7d3a72b into main Aug 23, 2024
1 check passed
@bigludo7 bigludo7 deleted the sim-swap-subscription-test-definition branch August 23, 2024 11:48
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.

Add Test Definition for sim-swap-subscriptions
2 participants