From 159320c00ea29c7891dabf3f5278ae166a9385ab Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 13 Oct 2026 11:22:12 +0100 Subject: [PATCH] fix: added missing test scenario for 429 error --- code/Test_definitions/simple-edge-discovery.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/Test_definitions/simple-edge-discovery.feature b/code/Test_definitions/simple-edge-discovery.feature index 8597b54..836f69d 100644 --- a/code/Test_definitions/simple-edge-discovery.feature +++ b/code/Test_definitions/simple-edge-discovery.feature @@ -189,3 +189,15 @@ Feature: CAMARA Simple Edge Discovery API, wip - Operation readClosestEdgeCloudZ And the response property "$.status" is 401 And the response property "$.code" is "UNAUTHENTICATED" And the response property "$.message" contains a user friendly text + + @simple_edge_discovery_error_scenario_14_429_Too_Many_Requests +  #To test this scenario environment has to be configured to reject requests reaching the threshold limit set. + Scenario: Request is rejected due to threshold policy + Given a valid request for "readClosestEdgeCloudZone" + And the header "Authorization" is set to a valid access token + And the threshold of requests has been reached + When the request "readClosestEdgeCloudZone" is sent + Then the response status code is 429 + And the response property "$.status" is 429 + And the response property "$.code" is "TOO_MANY_REQUESTS" + And the response property "$.message" contains a user friendly text