Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand All @@ -45,15 +45,15 @@ 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
# The received callback must be compliant and should carry the aspected values
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
Expand All @@ -66,15 +66,15 @@ 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
# The received callback must be compliant and should carry the aspected values
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
Expand Down
Loading