diff --git a/code/Test_definitions/iot-network-optimization-power-saving.feature b/code/Test_definitions/iot-network-optimization-power-saving.feature index 59215da..5e673e5 100644 --- a/code/Test_definitions/iot-network-optimization-power-saving.feature +++ b/code/Test_definitions/iot-network-optimization-power-saving.feature @@ -24,7 +24,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving And "$.notificationSink" is set to a proper value When the HTTP "POST" request is sent Then the power saving settings will be activated for all the devices specified - And the response status code is 200 + And the response status code is 202 And the response header "Content-Type" is "application/json" and "x-correlator" has same value as the request header "x-correlator" # The response has to comply with the generic response schema which is part of the spec And the response body complies with the OAS schema at "/components/schemas/PowerSavingResponse" @@ -33,7 +33,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving And I receive a callback at "/components/schemas/NotificationSink/sink" with the body compliant to "/components/callbacks/onTransactionCompleted" And "x-correlator" as the same value as the request header "x-correlator" And the callback carries the information defined in "/components/schemas/CloudEventPowerSaving" - And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 200 response of "/features/power-saving" + And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 202 response of "/features/power-saving" And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.activationStatus" set to the expected value And each ("$.activationStatus[*].device") that used multiple identifiers in the request body, must return only the identifier used by the network @@ -45,7 +45,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving And "$.notificationSink" is set to a proper value When the HTTP "POST" request is sent Then the power saving settings will be activated for all the devices specified - And the response status code is 200 + And the response status code is 202 And the response header "Content-Type" is "application/json" and "x-correlator" has same value as the request header "x-correlator" # The response has to comply with the generic response schema which is part of the spec And the response body complies with the OAS schema at "/components/schemas/PowerSavingResponse" and "$.transactionId" is set to a proper value @@ -53,7 +53,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving And I should receive a callback at "/components/schemas/NotificationSink/sink" with the body compliant with "/components/callbacks/onTransactionCompleted" And "x-correlator" as the same value as the request header "x-correlator" And the callback carries the information defined in "/components/schemas/CloudEventPowerSaving" - And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 200 response of "/features/power-saving" + And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 202 response of "/features/power-saving" And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter"$.activationStatus" And the parameter"$.activationStatus" should be set to the expected value as a list of status, one for each device And each ("$.activationStatus[*].device") that used multiple identifiers in the request body, must return only the identifier used by the network @@ -66,7 +66,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving When the HTTP "POST" request is sent Then the power saving settings will be activated for all the devices specified And the activation will follow the parameters specified (e.g., only during the selected time period) - And the response status code is 200 + And the response status code is 202 And the response header "Content-Type" is "application/json" and "x-correlator" has same value as the request header "x-correlator" # The response has to comply with the generic response schema which is part of the spec And the response body complies with the OAS schema at "/components/schemas/PowerSavingResponse" with "$.transactionId" is set to a proper value @@ -74,7 +74,7 @@ Feature: CAMARA IoT Network Optimization API - vwip - Operation power-saving And I should receive a callback at "/components/schemas/NotificationSink/sink" with the body compliant with "/components/callbacks/onTransactionCompleted" And "x-correlator" as the same value as the request header "x-correlator" And the callback carries the information defined in "/components/schemas/CloudEventPowerSaving" - And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 200 response of "/features/power-saving" + And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter "$.transactionId" with the same value as in the 202 response of "/features/power-saving" And "/components/schemas/CloudEventPowerSaving" in the callback should contain the parameter"$.activationStatus" And the parameter"$.activationStatus" should be set to the expected value as a list of status, one for each device And each ("$.activationStatus[*].device") that used multiple identifiers in the request body, must return only the identifier used by the network