Skip to content

Commit

Permalink
fix scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandopradocabrillo committed Oct 18, 2024
1 parent db77cee commit 8a5f02a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/Test_definitions/sim-swap-check.feature
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Feature: CAMARA SIM Swap API, 1.0.0 - Operation checkSimSwap
Scenario: Check that the response shows that the SIM has not been swapped - maxAge is not provided in the request parameter
Given a valid phone number identified by the token or provided in the request body
And the SIM for this phone number has never been swapped
And the activation of the SIM occurred more than 240 hours ago
When the request "checkSimSwap" is sent
Then the response status code is 200
And the value of response property "$.swapped" == false
Expand All @@ -80,6 +81,7 @@ Feature: CAMARA SIM Swap API, 1.0.0 - Operation checkSimSwap
Scenario Outline: Check that the response shows that the SIM has not been swapped - maxAge is provided in the request parameter
Given a valid phone number identified by the token or provided in the request body
And the SIM for this phone number has never been swapped
And the activation of the SIM occurred more than "<hours>" hours ago
And the request body property "maxAge" is set to a value equal or greater than "<hours>" within the allowed range
When the request "checkSimSwap" is sent
Then the response status code is 200
Expand Down

0 comments on commit 8a5f02a

Please sign in to comment.