Skip to content

Commit

Permalink
Remove 403 SUBSCRIPTION_MISMATCH test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bigludo7 authored Jan 17, 2025
1 parent 81b5334 commit 3aa3db9
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions code/Test_definitions/sim-swap-subscriptions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -327,30 +327,6 @@ Feature: CAMARA sim swap subscriptions API, v0.2.0
And the response property "$.code" is "UNAUTHENTICATED"
And the response property "$.message" contains a user friendly text

##################
# Error Code 403
##################

@sim_swap_subscription_retrieval_61_phone_number_token_mismatch
Scenario: Inconsistent access token context for the phone number
# To test this, a token have to be obtained for a different phone number than the phone number related to the subscription retrieved
Given use BaseURL
And the header "Authorization" is set to a valid access token emitted for a different phone number
When the HTTP "GET" request is sent with subscriptionId related to a different phone number
Then the response property "$.status" is 403
And the response property "$.code" is "SUBSCRIPTION_MISMATCH"
And the response property "$.message" contains a user friendly text

@sim_swap_subscription_delete_66_phone_number_token_mismatch
Scenario: Inconsistent access token context for the phone number
# To test this, a token have to be obtained for a different phone number than the phone number related to the subscription deleted
Given use BaseURL
And the header "Authorization" is set to a valid access token emitted for a different phone number
When the HTTP "DELETE" request is sent with subscriptionId related to a different phone number
Then the response property "$.status" is 403
And the response property "$.code" is "SUBSCRIPTION_MISMATCH"
And the response property "$.message" contains a user friendly text

##################
# Error Code 404
##################
Expand Down

0 comments on commit 3aa3db9

Please sign in to comment.