From dcc7d2e10d7ed235604556c428937a688b5311fa Mon Sep 17 00:00:00 2001 From: FabrizioMoggio <87469955+FabrizioMoggio@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:49:45 +0200 Subject: [PATCH 1/4] Inconsistences https://github.com/camaraproject/TrafficInfluence/issues/75 --- .../traffic-influence-postTrafficInfluence.feature | 2 +- .../traffic-influence-postTrafficInfluenceDevice.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/Test_definitions/traffic-influence-postTrafficInfluence.feature b/code/Test_definitions/traffic-influence-postTrafficInfluence.feature index f81df7a..e34ebf7 100644 --- a/code/Test_definitions/traffic-influence-postTrafficInfluence.feature +++ b/code/Test_definitions/traffic-influence-postTrafficInfluence.feature @@ -43,7 +43,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluence and @TI_Resource_LCM_Optional_Parameters_Valid_CREATE Scenario: Create Traffic Influence (TI) Resource with also optional parameters Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId") - And any other optional parameters (e.g. "$.AppInstanceId", "$.zone" etc.) + And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) And the request body is set to a valid request body When the HTTP "POST" request is sent Then it should be created a new TI Resource diff --git a/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature b/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature index 0de448a..9f4b06f 100644 --- a/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature +++ b/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature @@ -64,7 +64,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluenceDevi @TI_Resource_LCM_Optional_Parameters_Valid_CREATE_2-legs Scenario: Create Traffic Influence (TI) Resource with also optional parameters with 2 legs Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId", "$.device") - And any other optional parameters (e.g. "$.AppInstanceId", "$.zone" etc.) + And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) And the request body is set to a valid request body When the HTTP "POST" request is sent Then it should be created a new TI Resource @@ -84,7 +84,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluenceDevi @TI_Resource_LCM_Optional_Parameters_Valid_CREATE_3-legs Scenario: Create Traffic Influence (TI) Resource with also optional parameters with 3 legs Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId") - And any other optional parameters (e.g. "$.AppInstanceId", "$.zone" etc.) with the request body set to a valid request body + And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) with the request body set to a valid request body And The header "Authorization" is set to a valid access token identifying a device When the HTTP "POST" request is sent Then it should be created a new TI Resource From feaf62426f30f5c93a6510606ca77ab9dc28a8ec Mon Sep 17 00:00:00 2001 From: FabrizioMoggio <87469955+FabrizioMoggio@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:52:02 +0200 Subject: [PATCH 2/4] zone inconsistencies https://github.com/camaraproject/TrafficInfluence/issues/75 --- .../traffic-influence-postTrafficInfluenceDevice.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature b/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature index 9f4b06f..97285ba 100644 --- a/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature +++ b/code/Test_definitions/traffic-influence-postTrafficInfluenceDevice.feature @@ -64,7 +64,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluenceDevi @TI_Resource_LCM_Optional_Parameters_Valid_CREATE_2-legs Scenario: Create Traffic Influence (TI) Resource with also optional parameters with 2 legs Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId", "$.device") - And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) + And any other optional parameters (e.g. "$.appInstanceId", "$.edgeCloudZoneId" etc.) And the request body is set to a valid request body When the HTTP "POST" request is sent Then it should be created a new TI Resource @@ -84,7 +84,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluenceDevi @TI_Resource_LCM_Optional_Parameters_Valid_CREATE_3-legs Scenario: Create Traffic Influence (TI) Resource with also optional parameters with 3 legs Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId") - And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) with the request body set to a valid request body + And any other optional parameters (e.g. "$.appInstanceId", "$.edgeCloudZoneId" etc.) with the request body set to a valid request body And The header "Authorization" is set to a valid access token identifying a device When the HTTP "POST" request is sent Then it should be created a new TI Resource From 6d00706eb32100fd1196be9468fb10322cde47f3 Mon Sep 17 00:00:00 2001 From: FabrizioMoggio <87469955+FabrizioMoggio@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:54:11 +0200 Subject: [PATCH 3/4] zone --- .../traffic-influence-postTrafficInfluence.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Test_definitions/traffic-influence-postTrafficInfluence.feature b/code/Test_definitions/traffic-influence-postTrafficInfluence.feature index e34ebf7..2514c87 100644 --- a/code/Test_definitions/traffic-influence-postTrafficInfluence.feature +++ b/code/Test_definitions/traffic-influence-postTrafficInfluence.feature @@ -43,7 +43,7 @@ Feature: CAMARA Traffic Influence API, vwip - Operation postTrafficInfluence and @TI_Resource_LCM_Optional_Parameters_Valid_CREATE Scenario: Create Traffic Influence (TI) Resource with also optional parameters Given the request body property with mandatory valid parameters ("$.apiConsumerId", "$.appId") - And any other optional parameters (e.g. "$.appInstanceId", "$.zone" etc.) + And any other optional parameters (e.g. "$.appInstanceId", "$.edgeCloudZoneId" etc.) And the request body is set to a valid request body When the HTTP "POST" request is sent Then it should be created a new TI Resource From e03c9eb4c671077e1e0876a9cbcfa7513ac1a8b7 Mon Sep 17 00:00:00 2001 From: FabrizioMoggio <87469955+FabrizioMoggio@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:59:20 +0200 Subject: [PATCH 4/4] 409 https://github.com/camaraproject/TrafficInfluence/issues/76 --- code/API_definitions/traffic-influence.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/API_definitions/traffic-influence.yaml b/code/API_definitions/traffic-influence.yaml index a62ade9..040e87d 100644 --- a/code/API_definitions/traffic-influence.yaml +++ b/code/API_definitions/traffic-influence.yaml @@ -606,6 +606,8 @@ paths: $ref: "#/components/responses/Generic403" "404": $ref: '#/components/responses/Generic404' + "409": + $ref: "#/components/responses/Generic409" "422": $ref: "#/components/responses/Generic422" "429":