Skip to content

Commit

Permalink
single cause of failure
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Nennker <[email protected]>
  • Loading branch information
AxelNennker committed Jul 26, 2024
1 parent 79181e6 commit da3c3bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/Test_Definitions/NumberVerification_verify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: Camara Number Verification API verify
#
# Implementation indications:
# * api_root: API root of the server URL
#
#
# Testing assets:
# * a mobile device with SIM card with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
# * a mobile device with SIM card with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER2
Expand Down Expand Up @@ -102,7 +102,7 @@ Feature: Camara Number Verification API verify
And none of the scopes associated with the access token is number-verification:verify
When the HTTPS "POST" request is sent
And the mobile connection is associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
And the request body has NO the field phoneNumber
And the request body has the field phoneNumber with a value of NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
And the response header "x-correlator" has same value as the request header "x-correlator"
And the response header "Content-Type" is "application/json"
And the response body complies with the OAS schema at "/components/schemas/SendCodeResponse"
Expand All @@ -114,12 +114,12 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number with expired access token
Given they use the base url over a mobile connection
And the resource is "/verify"
And they acquired a valid access token associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 through OIDC authorization code flow or CIBA
And they acquired a valid access token associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 through OIDC authorization code flow
And one of the scopes associated with the access token is number-verification:verify
When the HTTPS "POST" request is sent
And the access token has expired
And the mobile connection is associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
And the request body has NO the field phoneNumber
And the request body has the field phoneNumber with a value of NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER
And the response header "x-correlator" has same value as the request header "x-correlator"
And the response header "Content-Type" is "application/json"
And the response body complies with the OAS schema at "/components/schemas/SendCodeResponse"
Expand Down

0 comments on commit da3c3bb

Please sign in to comment.