From 5e0208dca9dbd2353393b4b3de94aa2faf20a54b Mon Sep 17 00:00:00 2001 From: Jorge Garcia Hospital <129095857+jgarciahospital@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:26:38 +0100 Subject: [PATCH] Update device-swap-check.feature --- code/Test_definitions/device-swap-check.feature | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/Test_definitions/device-swap-check.feature b/code/Test_definitions/device-swap-check.feature index e5c8d11..ff15508 100644 --- a/code/Test_definitions/device-swap-check.feature +++ b/code/Test_definitions/device-swap-check.feature @@ -52,8 +52,9 @@ Feature: CAMARA Device Swap API, 0.1.0 - Operation checkDeviceSwap | 12 | @check_device_swap_4_more_than_240_hours - Scenario: Check that the response shows that the device has not been swapped when the last swap was more than 240 hours ago + Scenario: Check that the response shows that the device has not been swapped when "maxAge" is not set and the last swap was more than 240 (default) hours ago Given a valid phone number identified by the token or provided in the request body + And the request body property "maxAge" is not setted And the device has been swapped more than 240 hours ago When the request "checkDeviceSwap" is sent Then the response status code is 200 @@ -82,7 +83,7 @@ Feature: CAMARA Device Swap API, 0.1.0 - Operation checkDeviceSwap Given a valid phone number identified by the token or provided in the request body And the device has never been swapped And the sim card has been associated with this device for more than "" hours - And the request body property "maxAge" is set to a value equal or greater than "" within the allowed range + And the request body property "maxAge" is set to a value less than "" within the allowed range When the request "checkDeviceSwap" is sent Then the response status code is 200 And the value of response property "$.swapped" == false @@ -189,7 +190,7 @@ Feature: CAMARA Device Swap API, 0.1.0 - Operation checkDeviceSwap @check_device_swap_400.2_invalid_max_age Scenario: Check that the response shows an error when the max age is invalid - Given the request body property "$.maxAge" does not comply with the OAS schema at "/components/schemas/CreateCheckSimSwap" + Given the request body property "$.maxAge" does not comply with the OAS schema at "/components/schemas/CreateCheckDeviceSwap" When the request "checkDeviceSwap" is sent Then the response status code is 400 And the response property "$.status" is 400