diff --git a/code/Test_definitions/LocationRetrieval.feature b/code/Test_definitions/LocationRetrieval.feature index 5ac4c8b0..3cdabf28 100644 --- a/code/Test_definitions/LocationRetrieval.feature +++ b/code/Test_definitions/LocationRetrieval.feature @@ -1,6 +1,6 @@ Feature: Get a device location (POST /retrieve) - @Test_Retrieve_location_not_by_ipv4Address + @location_retrieval_01_by_phoneNumber_or_ipv4Address_or_networkAccessIdentifier Scenario: Get the location of a device Given a valid device identified by a And a provided maxAge of 80 seconds @@ -15,7 +15,7 @@ Feature: Get a device location (POST /retrieve) | ipv6Address | 2001:db8:85a3:8d3:1319:8a2e:370:7344 | - @Test_Retrieve_location_by_ipv4Address + @location_retrieval_02_by_ipv4Address Scenario: Get the location of a device Given a valid device identified by a And a provided maxAge of 80 seconds @@ -29,7 +29,7 @@ Feature: Get a device location (POST /retrieve) | 84.125.93.10 | 84.125.93.10 | null | - @Test_Retrieve_location_Invalid_MaxAge + @location_retrieval_03_Invalid_MaxAge Scenario: Input an invalid maxAge value (less than 60) Given a valid device identified with phoneNumber +34666111333 When a retrieve request is made with a valid maxAge parameter of 59 @@ -37,7 +37,7 @@ Feature: Get a device location (POST /retrieve) And the response body should contain an error message indicating an invalid argument - @Test_Retrieve_location_Missing_MaxAge + @location_retrieval_04_Missing_MaxAge Scenario: Input did not feature a maxAge Given a valid device identified with phoneNumber +34666111333 When a retrieve request is made without a maxAge parameter @@ -45,14 +45,14 @@ Feature: Get a device location (POST /retrieve) And the response body should contain an error message indicating an invalid argument - @Test_Missing_Device_Identifier + @location_retrieval_05_Missing_Device_Identifier Scenario: Perform a request without a device identifier When a Check SimSwap request is made without a deviceIdentifier Then the response status code should be 400 And the response should contain an error message indicating a missing field - @Test_Unknown_Device_Identifier + @location_retrieval_06_Unknown_Device_Identifier Scenario: Input an unknown device identifier Given a device identified by +33999999999 When a retrieve request is made @@ -60,7 +60,7 @@ Feature: Get a device location (POST /retrieve) And the response should contain an error message indicating that the specified resource is not found - @Test_Unauthorized_Request + @location_retrieval_07_Unauthorized_Request Scenario: Perform an unauthorized request Given that the requester is unauthorized When a retrieve request is made @@ -68,7 +68,7 @@ Feature: Get a device location (POST /retrieve) And the response should contain an error message indicating unauthorized access - @Test_Inconsistency_Access_Token_Payload + @location_retrieval_08_Inconsistency_Access_Token_Payload Scenario: Perform an request Given the phoneNumber +33666111333 is retrieved from the authentification step And the phoneNumber is provided in the body @@ -80,4 +80,4 @@ Feature: Get a device location (POST /retrieve) | bodyPhoneNumber| code | | null | 200 | | +33666111333 | 200 | - | +33666111339 | 401 | \ No newline at end of file + | +33666111339 | 401 |