From 82f02e9509ed0d768fc3c913aad6228a4c78a70a Mon Sep 17 00:00:00 2001 From: Axel Nennker Date: Fri, 26 Jul 2024 15:37:35 +0200 Subject: [PATCH] And the request body does not have the field phoneNumber Signed-off-by: Axel Nennker --- code/Test_Definitions/NumberVerification_verify.feature | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/Test_Definitions/NumberVerification_verify.feature b/code/Test_Definitions/NumberVerification_verify.feature index 6cc7848..51891c8 100644 --- a/code/Test_Definitions/NumberVerification_verify.feature +++ b/code/Test_Definitions/NumberVerification_verify.feature @@ -90,7 +90,8 @@ Feature: Camara Number Verification API verify 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" - Then the response property "$.status" is 400 + Then the response status code is 400 + 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 @@ -106,7 +107,8 @@ Feature: Camara Number Verification API verify 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" - Then the response property "$.status" is 401 + Then the response status code is 401 + And the response property "$.status" is 401 And the response property "$.code" is "UNAUTHENTICATED" And the response property "$.message" is "Request not authenticated due to missing, invalid, or expired credentials." @@ -123,7 +125,8 @@ Feature: Camara Number Verification API verify 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" - Then the response property "$.status" is 401 + Then the response status code is 401 + And the response property "$.status" is 401 And the response property "$.code" is "AUTHENTICATION_REQUIRED" And the response property "$.message" is "New authentication is required."