Skip to content

Commit

Permalink
NumberVerificationMatchResponse
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 82f02e9 commit ada4a18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/Test_Definitions/NumberVerification_verify.feature
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Feature: Camara Number Verification API verify
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"
And the response body complies with the OAS schema at "/components/schemas/NumberVerificationMatchResponse"
Then the response status code is 200
And the response property "$.devicePhoneNumberVerified" is true

Expand All @@ -74,7 +74,7 @@ Feature: Camara Number Verification API verify
And the request body has the field phoneNumber with a value of NUMBERVERIFY_VERIFY_MATCH_PHONENUMBER2
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"
And the response body complies with the OAS schema at "/components/schemas/NumberVerificationMatchResponse"
Then the response status code is 200
And the response property "$.devicePhoneNumberVerified" is false

Expand All @@ -89,7 +89,7 @@ Feature: Camara Number Verification API verify
And the request body has NO the field 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"
And the response body complies with the OAS schema at "/components/schemas/NumberVerificationMatchResponse"
Then the response status code is 400
And the response property "$.status" is 400
And the response property "$.code" is "INVALID_ARGUMENT"
Expand All @@ -106,7 +106,7 @@ Feature: Camara Number Verification API verify
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"
And the response body complies with the OAS schema at "/components/schemas/NumberVerificationMatchResponse"
Then the response status code is 401
And the response property "$.status" is 401
And the response property "$.code" is "UNAUTHENTICATED"
Expand All @@ -124,7 +124,7 @@ Feature: Camara Number Verification API verify
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"
And the response body complies with the OAS schema at "/components/schemas/NumberVerificationMatchResponse"
Then the response status code is 401
And the response property "$.status" is 401
And the response property "$.code" is "AUTHENTICATION_REQUIRED"
Expand Down

0 comments on commit ada4a18

Please sign in to comment.