From d823dabb9d42b0d7dffbebc4ee8de766c2bdaa98 Mon Sep 17 00:00:00 2001 From: Eric Murray Date: Thu, 30 Jul 2026 14:58:13 +0100 Subject: [PATCH 1/2] Enhance response validation for data volume checks Added validation for 'lastStatusTime' property in response body. --- .../Test_definitions/device-data-volume-checkDataVolume.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Test_definitions/device-data-volume-checkDataVolume.feature b/code/Test_definitions/device-data-volume-checkDataVolume.feature index f672f21..b88ea68 100644 --- a/code/Test_definitions/device-data-volume-checkDataVolume.feature +++ b/code/Test_definitions/device-data-volume-checkDataVolume.feature @@ -33,6 +33,7 @@ Feature: CAMARA Device Data Volume API, vwip - Operation checkDataVolume And the response body complies with the OAS schema at "#/components/schemas/CheckDataVolumeResponse" And the remaining data volume is above the requested threshold And the response body property "$.thresholdExceeded" is present and has value "true" + And the response body property "$.lastStatusTime" is present and either has a valid date-time format for a time in the past, or is null @device_data_volume_checkDataVolume_200.02_check_threshold_not_exceeded Scenario: Check if the remaining data volume for a device is not above a given threshold @@ -45,6 +46,7 @@ Feature: CAMARA Device Data Volume API, vwip - Operation checkDataVolume And the response body complies with the OAS schema at "#/components/schemas/CheckDataVolumeResponse" And the remaining data volume is below the requested threshold And the response body property "$.thresholdExceeded" is present and has value "false" + And the response body property "$.lastStatusTime" is present and either has a valid date-time format for a time in the past, or is null ################# # Error scenarios for management of input parameter device From ce777c4871525a355a24733d316777267ff5117a Mon Sep 17 00:00:00 2001 From: Eric Murray Date: Thu, 30 Jul 2026 14:59:26 +0100 Subject: [PATCH 2/2] Add lastStatusTime validation to response body Added validation for lastStatusTime property in response body. --- .../device-data-volume-retrieveDataVolume.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/code/Test_definitions/device-data-volume-retrieveDataVolume.feature b/code/Test_definitions/device-data-volume-retrieveDataVolume.feature index 1acdf9a..5aed7f8 100644 --- a/code/Test_definitions/device-data-volume-retrieveDataVolume.feature +++ b/code/Test_definitions/device-data-volume-retrieveDataVolume.feature @@ -33,6 +33,7 @@ Feature: CAMARA Device Data Volume API, vwip - Operation retrieveDataVolume And the response header "x-correlator" has same value as the request header "x-correlator" And the response body complies with the OAS schema at "#/components/schemas/RetrieveDataVolumeResponse" And the response body property "$.dataVolumeCategory" is present and has value "<200MiB", "<1GiB", "<5GiB", or ">=5GiB" + And the response body property "$.lastStatusTime" is present and either has a valid date-time format for a time in the past, or is null ################# # Error scenarios for management of input parameter device