Skip to content

Commit

Permalink
Update NumberVerification_verify.feature
Browse files Browse the repository at this point in the history
add access token acquisition to the Background section
  • Loading branch information
AxelNennker authored Aug 2, 2024
1 parent 796b9c6 commit 414a57f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions code/Test_Definitions/NumberVerification_verify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Feature: Camara Number Verification API verify
And the response property "$.status" is 400
And the response property "$.code" is "INVALID_ARGUMENT"
And the response property "$.message" contains a user friendly text

And they acquired a valid access token associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 through OIDC authorization code flow

Examples:
| phone_number_value |
| string_value |
Expand All @@ -53,7 +54,6 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1, network connection and access token matches NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -68,7 +68,6 @@ Feature: Camara Number Verification API verify
Scenario: verify hashed phone number hashed NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1, network connection and access token matches NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -84,7 +83,6 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 but access token is associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER2
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -99,7 +97,6 @@ Feature: Camara Number Verification API verify
Scenario: verify hashed phone number NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 but access token is associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER2
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -114,7 +111,6 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number but no phonenumber in request
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -131,7 +127,6 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number with valid access token but scope number-verification:verify is missing
Given they use the base url
And the resource is "/verify"
And they acquired a valid access token associated with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1 through OIDC authorization code flow
And none of the scopes associated with the access token is number-verification:verify
When the HTTPS "POST" request is sent
And the connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand All @@ -148,7 +143,6 @@ Feature: Camara Number Verification API verify
Scenario: verify phone number with expired access token
Given they use the base url
And the resource is "/verify"
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 connection the request is sent over originates from a device with NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER1
Expand Down

0 comments on commit 414a57f

Please sign in to comment.