The CDR Test Documentation
File version: 1.0.2
This documentation has been created by the DSB to assist participants in the development of compliant APIs
For more details see the CDS standards-testing repository
Last updated 19/07/2022 see the change log for details
Test Suites
SUITE.010: APIs - Energy Standing Data, Usage and DER
Test Scenarios:
- S.EAR.073: Get Service Points v1
- S.EAR.074: Get Service Points Negative v1
- S.EAR.075: Get Service Point Detail v1
- S.EAR.076: Get Service Point Detail Negative v1
- S.EAR.077: Get Usage For Service Point v1
- S.EAR.078: Get Usage For Service Point Negative v1
- S.EAR.079: Get Bulk Usage v1
- S.EAR.080: Get Bulk Usage Negative v1
- S.EAR.081: Get Usage For Specific Service Points v1
- S.EAR.082: Get Usage For Specific Service Points Negative v1
- S.EAR.083: Get DER for Service Point v1
- S.EAR.084: Get DER for Service Point Negative v1
- S.EAR.085: Get Bulk DER v1
- S.EAR.086: Get Bulk DER Negative v1
- S.EAR.087: Get DER For Specific Service Points v1
- S.EAR.088: Get DER For Specific Service Points Negative v1
SUITE.011: APIs - Energy Standing Data, Usage and DER SR
Test Scenarios:
- S.EAS.089: Get Service Points SR v1
- S.EAS.090: Get Service Points Negative SR v1
- S.EAS.091: Get Service Point Detail SR v1
- S.EAS.092: Get Service Point Detail Negative SR v1
- S.EAS.093: Get Usage For Service Point SR v1
- S.EAS.094: Get Usage For Service Point Negative SR v1
- S.EAS.095: Get Usage For Specific Service Points SR v1
- S.EAS.096: Get Usage For Specific Service Points Negative SR v1
- S.EAS.097: Get DER for Service Point SR v1
- S.EAS.098: Get DER for Service Point Negative SR v1
- S.EAS.099: Get DER For Specific Service Points SR v1
- S.EAS.100: Get DER For Specific Service Points Negative SR v1
Test Scenarios
S.EAR.073: Get Service Points v1
Purpose:
Test cases which will return a 2xx status code
References:
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Setup | Authorise sessionAND x-v is set in header |
2 | Execute Test | T.EAR.001: ADR call to DH: Get Service Points - no pagination |
3 | Execute Test | T.EAR.002: ADR call to DH: Get Service Points - with pagination |
S.EAR.074: Get Service Points Negative v1
Purpose:
Test cases which will return codes other than 2xx
References:
Testing Sequence:
S.EAR.075: Get Service Point Detail v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.006: ADR call to DH: Get Service Point Detail |
S.EAR.076: Get Service Point Detail Negative v1
Testing Sequence:
S.EAR.077: Get Usage For Service Point v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.011: ADR call to DH: Get Usage for Service Point Detail - no pagination |
2 | Execute Test | T.EAR.012: ADR call to DH: Get Usage for Service Points - with pagination |
3 | Execute Test | T.EAR.015: ADR call to DH: Get Usage for Service Points - oldest date |
4 | Execute Test | T.EAR.016: ADR call to DH: Get Usage for Service Points - newest date |
S.EAR.078: Get Usage For Service Point Negative v1
Testing Sequence:
S.EAR.079: Get Bulk Usage v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.045: ADR call to DH: Get Bulk Usage |
2 | Execute Test | T.EAR.046: ADR call to DH: Get Bulk Usage - with pagination |
3 | Execute Test | T.EAR.049: ADR call to DH: Get Bulk Usage - oldest date |
4 | Execute Test | T.EAR.050: ADR call to DH: Get Bulk Usage - newest date |
S.EAR.080: Get Bulk Usage Negative v1
Testing Sequence:
S.EAR.081: Get Usage For Specific Service Points v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.022: ADR call to DH: Get Usage for Specific Service Points - no pagination |
2 | Execute Test | T.EAR.023: ADR call to DH: Get Usage for Specific Service Points - with pagination |
3 | Execute Test | T.EAR.026: ADR call to DH: Get Usage for Specific Service Points - oldest date |
4 | Execute Test | T.EAR.027: ADR call to DH: Get Usage for Specific Service Points - newest date |
S.EAR.082: Get Usage For Specific Service Points Negative v1
Testing Sequence:
S.EAR.083: Get DER for Service Point v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.033: ADR call to DH: Get DER for Service Point |
S.EAR.084: Get DER for Service Point Negative v1
Testing Sequence:
S.EAR.085: Get Bulk DER v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.060: ADR call to DH: Get Bulk DER |
2 | Execute Test | T.EAR.061: ADR call to DH: Get Bulk DER - with pagination |
S.EAR.086: Get Bulk DER Negative v1
Testing Sequence:
S.EAR.087: Get DER For Specific Service Points v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAR.038: ADR call to DH: Get DER for Specific Service Points - no pagination |
2 | Execute Test | T.EAR.039: ADR call to DH: Get DER for Specific Service Points - with pagination |
S.EAR.088: Get DER For Specific Service Points Negative v1
Testing Sequence:
S.EAS.089: Get Service Points SR v1
References:
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.001: DH call to SDH: Get Service Points - no pagination |
2 | Execute Test | T.EAS.002: DH call to SDH: Get Service Points - with pagination |
S.EAS.090: Get Service Points Negative SR v1
References:
Testing Sequence:
S.EAS.091: Get Service Point Detail SR v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.005: DH call to SDH: Get Service Point Detail |
S.EAS.092: Get Service Point Detail Negative SR v1
Testing Sequence:
S.EAS.093: Get Usage For Service Point SR v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.009: DH call to SDH: Get Usage for Service Point Detail - no pagination |
2 | Execute Test | T.EAS.010: DH call to SDH: Get Usage for Service Points - with pagination |
3 | Execute Test | T.EAS.014: DH call to SDH: Get Usage for Service Points - newest date |
S.EAS.094: Get Usage For Service Point Negative SR v1
Testing Sequence:
S.EAS.095: Get Usage For Specific Service Points SR v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.019: DH call to SDH: Get Usage for Specific Service Points - no pagination |
2 | Execute Test | T.EAS.020: DH call to SDH: Get Usage for Specific Service Points - with pagination |
3 | Execute Test | T.EAS.023: DH call to SDH: Get Usage for Specific Service Points - oldest date |
4 | Execute Test | T.EAS.024: DH call to SDH: Get Usage for Specific Service Points - newest date |
S.EAS.096: Get Usage For Specific Service Points Negative SR v1
Testing Sequence:
S.EAS.097: Get DER for Service Point SR v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.027: DH call to SDH: Get DER for Service Point |
S.EAS.098: Get DER for Service Point Negative SR v1
Testing Sequence:
S.EAS.099: Get DER For Specific Service Points SR v1
Testing Sequence:
Action No. | Action Type | Detail |
---|---|---|
1 | Execute Test | T.EAS.031: DH call to SDH: Get DER for Specific Service Points - no pagination |
2 | Execute Test | T.EAS.032: DH call to SDH: Get DER for Specific Service Points - with pagination |
S.EAS.100: Get DER For Specific Service Points Negative SR v1
Testing Sequence:
Test Cases
T.EAR.001: ADR call to DH: Get Service Points - no pagination
Positive test case
Obtain a list of service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.004: Validate schema - EnergyServicePointListReponse
T.EAR.002: ADR call to DH: Get Service Points - with pagination
Positive test case
Obtain a paginated list of service points owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAR.004: Validate schema - EnergyServicePointListReponse
T.EAR.003: ADR call to DH: Get Service Points - unsupported version without x-min-v included
Negative test case
DH call to SDH: Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.004: ADR call to DH: Get Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.005: ADR call to DH: Get Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.006: ADR call to DH: Get Service Point Detail
Positive test case
Obtain the details of a service point owned by the consumer that has authorised the current session
Purpose:
Test API with a vaild service point and version
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-service-point-detail
- Postman Example
Execution Pre-conditions:
- The {servicePointId} is set in the Path
- AND value <x-v> is set in the request header to a version supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.001: Validate service point and schema - EnergyServicePointDetailResponse
T.EAR.007: ADR call to DH: Get Service Point Detail - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.008: ADR call to DH: Get Service Point Detail - invalid format of Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The <{servicePointId}> is set in the Path to a value that is
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.009: ADR call to DH: Get Service Point Detail - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.010: ADR call to DH: Get Service Point Detail - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.011: ADR call to DH: Get Usage for Service Point Detail - no pagination
Positive test case
Obtain a list of electricity usage data from a particular service point owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.005: Validate service point and schema - EnergyUsageListResponse
T.EAR.012: ADR call to DH: Get Usage for Service Points - with pagination
Positive test case
Obtain a paginated list of electricity usage data from a particular service point owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-service-point
- Postman Example
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAR.005: Validate service point and schema - EnergyUsageListResponse
T.EAR.013: ADR call to DH: Get Usage for Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.014: ADR call to DH: Get Usage for Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.015: ADR call to DH: Get Usage for Service Points - oldest date
Positive test case
Obtain a list of electricity usage data constrained by oldest date from a particular service point owned by the consumer that has authorised the current session
Purpose:
Test API with <oldest date> parameter
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-service-point
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Execution Pre-conditions:
- <oldest-date> query parameters is provided
- AND <oldest-date> is a valid DateTime string
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.COD.001: Validate the Oldest Date parameter - valid format
- A.EAR.005: Validate service point and schema - EnergyUsageListResponse
T.EAR.016: ADR call to DH: Get Usage for Service Points - newest date
Positive test case
Obtain a list of service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- <newest-date> query parameter is provided
- AND <newest-date> is a valid DateTime string
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CND.001: Validate the Newest Date parameter - valid format
- A.EAR.005: Validate service point and schema - EnergyUsageListResponse
T.EAR.017: ADR call to DH: Get Usage for Service Points - invalid Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.018: ADR call to DH: Get Usage for Service Points - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.019: ADR call to DH: Get Usage for Service Points - invalid format oldest date
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with <oldest date> parameter
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.020: ADR call to DH: Get Usage for Service Points - invalid format newest date
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.021: ADR call to DH: Get Usage For Service Point - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.022: ADR call to DH: Get Usage for Specific Service Points - no pagination
Positive test case
Obtain the electricity usage data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAR.023: ADR call to DH: Get Usage for Specific Service Points - with pagination
Positive test case
Obtain the electricity usage data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points
- Postman Example
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAR.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAR.024: ADR call to DH: Get Usage for Specific Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.025: ADR call to DH: Get Usage for Specific Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.026: ADR call to DH: Get Usage for Specific Service Points - oldest date
Positive test case
Obtain the electricity usage data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API with oldest date parameter
References:
Execution Pre-conditions:
- <oldest-date> query parameters is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.COD.001: Validate the Oldest Date parameter - valid format
- A.EAR.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAR.027: ADR call to DH: Get Usage for Specific Service Points - newest date
Positive test case
Obtain the electricity usage data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- <newest-date> query parameter is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CND.001: Validate the Newest Date parameter - valid format
- A.EAR.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAR.028: ADR call to DH: Get Usage for Specific Service Points - invalid format oldest date
Negative test case
Ensure the endpoint returns oldest-date compatible errors
Purpose:
Test API with oldest date parameter
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.029: ADR call to DH: Get Usage for Specific Service Points - invalid format newest date
Negative test case
Ensure the endpoint returns newest-date compatible errors
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.030: ADR call to DH: Get Usage For Specific Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.031: ADR call to DH: Get Usage for Specific Service Points - invalid body values
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with invalid body values
References:
Execution Pre-conditions:
- The request body is correctly formatted
- AND request payload has missing or invalid values
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.032: ADR call to DH: Get Usage for Specific Service Points - invalid body format
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with a malformed body
References:
Execution Pre-conditions:
- The body is incorrectly formatted
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.033: ADR call to DH: Get DER for Service Point
Positive test case
Obtain a list of DER data from a particular service point owned by the consumer that has authorised the current session
Purpose:
Test API with a vaild service point and version
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-der-for-service-point
- Postman Example
Execution Pre-conditions:
- The {servicePointId} is set in the Path
- AND value <x-v> is set in the request header to a version supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.007: Validate service point and schema - EnergyDerDetailResponse
T.EAR.034: ADR call to DH: Get Service Point Detail - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.035: ADR call to DH: Get Service Point Detail - invalid format of Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The <{servicePointId}> is set in the Path to a value that is
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.036: ADR call to DH: Get Service Point Detail - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.037: ADR call to DH: Get DER for Service Point - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.038: ADR call to DH: Get DER for Specific Service Points - no pagination
Positive test case
Obtain DER data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.008: Validate servicePointIdList body and schema - EnergyDerListResponse
T.EAR.039: ADR call to DH: Get DER for Specific Service Points - with pagination
Positive test case
Obtain DER data for a specific set of service points owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-der-for-specific-service-points
- Postman Example
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAR.008: Validate servicePointIdList body and schema - EnergyDerListResponse
T.EAR.040: ADR call to DH: Get DER for Specific Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.041: ADR call to DH: Get DER for Specific Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.042: ADR call to DH: Get DER for Specific Service Points - invalid body values
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with invalid body values
References:
Execution Pre-conditions:
- The request body is correctly formatted
- AND request payload has missing or invalid values
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.043: ADR call to DH: Get DER for Specific Service Points - invalid body format
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with a malformed body
References:
Execution Pre-conditions:
- The body is incorrectly formatted
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.044: ADR call to DH: Get DER For Specific Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.045: ADR call to DH: Get Bulk Usage
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.EAR.010: Validate schema - EnergyUsageListResponse
T.EAR.046: ADR call to DH: Get Bulk Usage - with pagination
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAR.010: Validate schema - EnergyUsageListResponse
T.EAR.047: ADR call to DH: Get Bulk Usage - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.048: ADR call to DH: Get Bulk Usage - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.049: ADR call to DH: Get Bulk Usage - oldest date
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API with oldest date parameter
References:
Execution Pre-conditions:
- <oldest-date> query parameters is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CCH.001: Validate the client headers - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.COD.001: Validate the Oldest Date parameter - valid format
- A.EAR.010: Validate schema - EnergyUsageListResponse
T.EAR.050: ADR call to DH: Get Bulk Usage - newest date
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- <newest-date> query parameter is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CND.001: Validate the Newest Date parameter - valid format
- A.EAR.010: Validate schema - EnergyUsageListResponse
T.EAR.051: ADR call to DH: Get Bulk Usage - invalid format oldest date
Negative test case
Ensure the endpoint returns oldest-date compatible errors
Purpose:
Test API with an invalid oldest date parameter
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.052: ADR call to DH: Get Bulk Usage - invalid format newest date
Negative test case
Ensure the endpoint returns newest-date compatible errors
Purpose:
Test API with an invalid newest date parameter
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.053: ADR call to DH: Get Bulk Usage - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.054: ADR call to DH: Get Bulk Usage - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.055: ADR call to DH: Get Bulk Usage - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.056: ADR call to DH: Get Bulk Usage - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.057: ADR call to DH: Get Bulk Usage - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.058: ADR call to DH: Get Bulk Usage - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.059: ADR call to DH: Get Bulk Usage - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.060: ADR call to DH: Get Bulk DER
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.CCH.001: Validate the client headers - valid format
- A.CFA.001: Validate FAPI Auth date - valid format
- A.EAR.011: Validate schema - EnergyDerListResponse
T.EAR.061: ADR call to DH: Get Bulk DER - with pagination
Positive test case
Obtain the electricity usage data for all service points owned by the consumer that has authorised the current session
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
- A.CPG.001: Validate pagination - LinksPaginated
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
- A.CFA.001: Validate FAPI Auth date - valid format
- A.CCH.001: Validate the client headers - valid format
- A.CFC.001: Validate FAPI Customer IP Address - is present
- A.EAR.011: Validate schema - EnergyDerListResponse
T.EAR.062: ADR call to DH: Get Bulk DER - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.063: ADR call to DH: Get Bulk DER - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
- A.CPG.002: Validate pagination - Invalid page size value
- A.CPG.003: Validate pagination - Non-numeric <page>
- A.CPG.004: Validate pagination - Max record limit exceeded
- A.CPG.005: Validate pagination - Non-numeric <page-size>
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFI.002: Validate FAPI Interaction ID - not in request
T.EAR.064: ADR call to DH: Get Bulk DER - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.065: ADR call to DH: DHGet Bulk DER - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.066: ADR call to DH: Get Bulk DER - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.067: ADR call to DH: DH: Get Bulk DER - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.068: ADR call to DH: Get Bulk DER - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.069: ADR call to DH: Get Bulk DER - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.070: ADR call to DH: Get Bulk DER - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.071: ADR call to DH: Get Bulk DER - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.072: ADR call to DH: Get Bulk DER - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.073: ADR call to DH: Get Service Points - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.074: ADR call to DH: Get Service Points - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.075: ADR call to DH: Get Service Points - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.076: ADR call to DH: Get Service Points - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.077: ADR call to DH: Get Service Points - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.078: ADR call to DH: Get Service Points - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.079: ADR call to DH: Get Service Point - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.080: ADR call to DH: Get Service Point - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.081: ADR call to DH: Get Service Point - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.082: ADR call to DH: Get Service Point - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.083: ADR call to DH: Get Service Point - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.084: ADR call to DH: Get Service Point - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.085: ADR call to DH: Get Usage For Service Point - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.086: ADR call to DH: Get Usage For Service Point - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.087: ADR call to DH: Get Usage For Service Point - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.088: ADR call to DH: Get Usage For Service Point - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.089: ADR call to DH: Get Usage For Service Point - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.090: ADR call to DH: Get Usage For Service Point - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.091: ADR call to DH: Get Usage for Specific Service Points - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.092: ADR call to DH: Get Usage for Specific Service Points - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.093: ADR call to DH: Get Usage for Specific Service Points - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.094: ADR call to DH: Get Usage for Specific Service Points - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.095: ADR call to DH: Get Usage for Specific Service Points - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.096: ADR call to DH: Get Usage for Specific Service Points - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.097: ADR call to DH: Get DER for Service Point - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.098: ADR call to DH: Get DER for Service Point - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.099: ADR call to DH: Get DER for Service Point - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.100: ADR call to DH: Get DER for Service Point - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.101: ADR call to DH: Get DER for Service Point - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.102: ADR call to DH: Get DER for Service Point - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.103: ADR call to DH: Get DER For Specific Service Points - missing FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.104: ADR call to DH: Get DER For Specific Service Points - invalid FAPI Auth Date
Negative test case
Ensure that the endpoint returns FAPI Auth date errors
Purpose:
Test API when FAPI Auth date is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-auth-date> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.105: ADR call to DH: Get DER For Specific Service Points - missing FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is missing from the header
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.106: ADR call to DH: Get DER For Specific Service Points - invalid FAPI Customer IP Address
Negative test case
Ensure that the endpoint returns FAPI Customer IP address errors
Purpose:
Test API when FAPI Customer IP Address is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-customer-ip-address> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.107: ADR call to DH: Get DER For Specific Service Points - missing CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is missing from the header
References:
Execution Pre-conditions:
- The <x-cds-client-header> is not present in the header
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.108: ADR call to DH: Get DER For Specific Service Points - invalid CDS Client Header
Negative test case
Ensure that the endpoint returns CDS Client Header errors
Purpose:
Test API when CDS Client Header is present but the format is invalid
References:
Execution Pre-conditions:
- The <x-cds-client-header> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.109: ADR call to DH: Get Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.110: ADR call to DH: Get Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.111: ADR call to DH: Get Service Point - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.112: ADR call to DH: Get Service Point - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.113: ADR call to DH: Get Usage For Service Point - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.114: ADR call to DH: Get Usage For Service Point - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.115: ADR call to DH: Get Bulk Usage - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.116: ADR call to DH: Get Bulk Usage - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.117: ADR call to DH: Get Usage for Specific Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.118: ADR call to DH: Get Usage for Specific Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.119: ADR call to DH: Get DER for Service Point - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.120: ADR call to DH: Get DER for Service Point - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.121: ADR call to DH: Get Bulk DER - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.122: ADR call to DH: Get Bulk DER - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.123: ADR call to DH: Get DER For Specific Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.124: ADR call to DH: Get DER For Specific Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.125: ADR call to DH: Get Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints |
End State Assertions:
T.EAR.126: ADR call to DH: Get Service Point - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAR.127: ADR call to DH: Get Usage For Service Point - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAR.128: ADR call to DH: Get Bulk Usage - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.129: ADR call to DH: Get Usage for Specific Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/usage |
End State Assertions:
T.EAR.130: ADR call to DH: Get DER for Service Point - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAR.131: ADR call to DH: Get Bulk DER - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /energy/electricity/servicepoints/der |
End State Assertions:
T.EAR.132: ADR call to DH: Get DER For Specific Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.001: DH call to SDH: Get Service Points - no pagination
Positive test case
Obtain a list of service points requested by the DH
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.004: Validate schema - EnergyServicePointListReponse
T.EAS.002: DH call to SDH: Get Service Points - with pagination
Positive test case
Obtain a paginated list of service points requested by the DH
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAS.004: Validate schema - EnergyServicePointListReponse
T.EAS.003: DH call to SDH: Get Service Points - unsupported version without x-min-v included
Negative test case
DH call to SDH: Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version
- AND the value for <x-v> is in a valid format not supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.004: DH call to SDH: Get Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.005: DH call to SDH: Get Service Point Detail
Positive test case
Obtain the details of a service point requested by the DH
Purpose:
Test API with a vaild service point and version
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path
- AND value <x-v> is set in the request header to a version supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.001: Validate service point and schema - EnergyServicePointDetailResponse
T.EAS.006: DH call to SDH: Get Service Point Detail - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.007: DH call to SDH: Get Service Point Detail - invalid format of Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The <{servicePointId}> is set in the Path to a value that is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.008: DH call to SDH: Get Service Point Detail - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.009: DH call to SDH: Get Usage for Service Point Detail - no pagination
Positive test case
Obtain a list of electricity usage data from a particular service point requested by the DH
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.005: Validate service point and schema - EnergyUsageListResponse
T.EAS.010: DH call to SDH: Get Usage for Service Points - with pagination
Positive test case
Obtain a paginated list of electricity usage data from a particular service requested by the DH
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAS.005: Validate service point and schema - EnergyUsageListResponse
T.EAS.011: DH call to SDH: Get Usage for Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.012: DH call to SDH: Get Usage for Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.013: DH call to SDH: Get Usage for Service Points - oldest date
Positive test case
Obtain a list of electricity usage data constrained by oldest date from a particular service point requested by the DH
Purpose:
Test API with <oldest date> parameter
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-service-point-sr
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Execution Pre-conditions:
- <oldest-date> query parameters is provided
- AND <oldest-date> is a valid DateTime string
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.COD.001: Validate the Oldest Date parameter - valid format
- A.EAS.005: Validate service point and schema - EnergyUsageListResponse
T.EAS.014: DH call to SDH: Get Usage for Service Points - newest date
Positive test case
Obtain a list of service points requested by the DH
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- <newest-date> query parameter is provided
- AND <newest-date> is a valid DateTime string
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CND.001: Validate the Newest Date parameter - valid format
- A.EAS.005: Validate service point and schema - EnergyUsageListResponse
T.EAS.015: DH call to SDH: Get Usage for Service Points - invalid Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.016: DH call to SDH: Get Usage for Service Points - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.017: DH call to SDH: Get Usage for Service Points - invalid format oldest date
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with <oldest date> parameter
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.018: DH call to SDH: Get Usage for Service Points - invalid format newest date
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.019: DH call to SDH: Get Usage for Specific Service Points - no pagination
Positive test case
Obtain the electricity usage data for a specific set of service points requested by the DH
Purpose:
Test API without any pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAS.020: DH call to SDH: Get Usage for Specific Service Points - with pagination
Positive test case
Obtain the electricity usage data for a specific set of service points requested by the DH
Purpose:
Test API with pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAS.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAS.021: DH call to SDH: Get Usage for Specific Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.022: DH call to SDH: Get Usage for Specific Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.023: DH call to SDH: Get Usage for Specific Service Points - oldest date
Negative test case
Obtain the electricity usage data for a specific set of service points requested by the DH
Purpose:
Test API with oldest date parameter
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- <oldest-date> query parameters is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.COD.001: Validate the Oldest Date parameter - valid format
- A.EAS.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAS.024: DH call to SDH: Get Usage for Specific Service Points - newest date
Positive test case
Obtain the electricity usage data for a specific set of service points requested by the DH
Purpose:
Test API without any pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- <newest-date> query parameter is provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CND.001: Validate the Newest Date parameter - valid format
- A.EAS.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
T.EAS.025: DH call to SDH: Get Usage for Specific Service Points - invalid format oldest date
Negative test case
Ensure the endpoint returns oldest-date compatible errors
Purpose:
Test API with oldest date parameter
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.026: DH call to SDH: Get Usage for Specific Service Points - invalid format newest date
Negative test case
Ensure the endpoint returns newest-date compatible errors
Purpose:
Test API without any pagination partameters
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.027: DH call to SDH: Get DER for Service Point
Positive test case
Obtain a list of DER data from a particular service point requested by the DH
Purpose:
Test API with a vaild service point and version
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path
- AND value <x-v> is set in the request header to a version supported by the DH
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.007: Validate service point and schema - EnergyDerDetailResponse
T.EAS.028: DH call to SDH: Get Service Point Detail - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.029: DH call to SDH: Get Service Point Detail - invalid format of Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The <{servicePointId}> is set in the Path to a value that is
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.030: DH call to SDH: Get Service Point Detail - unavailable Service Point ID
Negative test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} is set in the Path to a value that is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.031: DH call to SDH: Get DER for Specific Service Points - no pagination
Positive test case
Obtain DER data for a specific set of service points requested by the DH
Purpose:
Test API without any pagination partameters
References:
Execution Pre-conditions:
- Neither <page-size> or <page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.EAS.008: Validate servicePointIdList body and schema - EnergyDerListResponse
T.EAS.032: DH call to SDH: Get DER for Specific Service Points - with pagination
Positive test case
Obtain DER data for a specific set of service points requested by the DH
Purpose:
Test API with pagination partameters
References:
Execution Pre-conditions:
- <page-size> and<page> query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
- A.CVN.001: Validate version - valid version number [x-v]
- A.CVM.001: Validate version - <x-min-v> is provided
- A.CFI.001: Validate FAPI Interaction ID - included in request
- A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
- A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
- A.CCH.004: No <x-cds-client-header> in header (SR specific)
- A.CAI.001: CDS arrangement id - present and valid (SR specific)
- A.CPG.001: Validate pagination - LinksPaginated
- A.EAS.008: Validate servicePointIdList body and schema - EnergyDerListResponse
T.EAS.033: DH call to SDH: Get DER for Specific Service Points - unsupported version without x-min-v included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the value for <x-v> is in a valid format
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.034: DH call to SDH: Get DER for Specific Service Points - invalid page parameters
Negative test case
Ensure that the endpoint returns pagination errors
Purpose:
Test API with invalid pagination parameters
References:
Execution Pre-conditions:
- <page> OR (<page>
- AND <page-size>) query parameters are provided
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.035: DH call to SDH: Get DER for Specific Service Points - invalid body values
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with invalid body values
References:
Execution Pre-conditions:
- The request body is correctly formatted
- AND request payload has missing or invalid values
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.036: DH call to SDH: Get DER for Specific Service Points - invalid body format
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with a malformed body
References:
Execution Pre-conditions:
- The body is incorrectly formatted
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.037: DH call to SDH: Get Usage for Specific Service Points - invalid body values
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with invalid body values
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The request body is correctly formatted
- AND request payload has missing or invalid values
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.038: DH call to SDH: Get Usage for Specific Service Points - invalid body format
Negative test case
Ensure that the endpoint returns body compatibility errors
Purpose:
Test API with a malformed body
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The body is incorrectly formatted
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.039: DH call to SDH: Get Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID format is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.040: DH call to SDH: Get Service Point Detail - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.041: DH call to SDH: Get Usage For Service Point - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.042: DH call to SDH: Get Usage For Specific Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.043: DH call to SDH: Get DER for Service Point - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.044: DH call to SDH: Get DER For Specific Service Points - invalid FAPI Interaction ID format
Negative test case
Ensure that the endpoint returns FAPI Interaction ID errors
Purpose:
Test API where FAPI Interaction ID fomat is invalid
References:
Execution Pre-conditions:
- The <x-fapi-interaction-id> format is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.045: DH call to SDH: Get Service Points - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.046: DH call to SDH: Get Service Points - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.047: DH call to SDH: Get Service Point Detail - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.048: DH call to SDH: Get Service Point Detail - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.049: DH call to Get Usage For Service Point - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.050: DH call to SDH: Get Usage For Service Point - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.051: DH call to SDH: Get Usage For Specific Service Points - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.052: DH call to SDH: Get Usage For Specific Service Points - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.053: DH call to SDH: Get DER for Service Point - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.054: DH call to SDH: Get DER for Service Point - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.055: DH call to Get DER For Specific Service Points - no arragement id
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is included
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.056: DH call to SDH: Get DER For Specific Service Points - arrangement ID invalid
Negative test case
Ensure that the endpoint returns arrangement id errors
Purpose:
Test API to ensure the arrangement ID is valid
References:
Execution Pre-conditions:
- The <x-cds-arrangement> is present but invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.057: DH call to SDH: Get Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.058: DH call to SDH: Get Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.059: DH call to SDH: Get Service Point Detail - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.060: DH call to SDH: Get Service Point Detail - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.061: DH call to SDH: Get Usage For Service Point - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.062: DH call to SDH: Get Usage For Service Point - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.063: DH call to SDH: Get Usage For Specific Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.064: DH call to SDH: Get Usage For Specific Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.065: DH call to SDH: Get DER for Service Point - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.066: DH call to SDH: Get DER for Service Point - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.067: DH call to SDH: Get DER For Specific Service Points - invalid version value
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version value
References:
Execution Pre-conditions:
- The <x-v> version is not a valid number
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.068: DH call to SDH: Get DER For Specific Service Points - invalid version format
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with invalid version format
References:
Execution Pre-conditions:
- The <x-v> format is not valid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.069: DH call to SDH: Get Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.070: DH call to SDH: Get Service Point Detail - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId} |
End State Assertions:
T.EAS.071: DH call to SDH: Get Usage for Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage |
End State Assertions:
T.EAS.072: DH call to SDH: Get Usage for Specific Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
- https://consumerdatastandardsaustralia.github.io/standards/#get-usage-for-specific-service-points-sr
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/usage |
End State Assertions:
T.EAS.073: DH call to SDH: Get Service Point Detail - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | GET /secondary/energy/electricity/servicepoints/{servicePointId}/der |
End State Assertions:
T.EAS.074: DH call to SDH: Get DER for Specific Service Points - unsupported version when x-min-v is included
Negative test case
Ensure that the endpoint returns version compatibility errors
Purpose:
Test API with a version that is not supported by the DH
References:
Execution Pre-conditions:
- the value <x-v> is set in the request header to a version not supported by the DH
- AND the <x-min-v> is included
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints/der |
End State Assertions:
T.EAS.075: DH call to SDH: Get Service Points - missing servicePointId in body
Positive test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with a missing servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} in the body is missing
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.076: DH call to SDH: Get Service Points - invalid servicePointId in body
Positive test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an invalid servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} in the body is invalid
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
T.EAS.077: DH call to SDH: Get Service Points - unavailable servicePointId in body
Positive test case
Ensure the endpoint returns servicePointId compatible errors
Purpose:
Test API with an unavailable servicePointId
References:
Execution Pre-conditions:
- The {servicePointId} in the body is unavailable
Execution Steps:
Action No. | Action Type | Detail |
---|---|---|
1 | Action | POST /secondary/energy/electricity/servicepoints |
End State Assertions:
No test cases defined
Assertions
A.CPG.001: Validate pagination - LinksPaginated
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the page parameter is included in a GET requestAND the page value is a number and page-size is [1,25,1000,null] |
When | a response is returnedAND the response has a status of 200 |
Then | AND (
the nominated <page number> is returned the "first" link has page=1 the "last" link is greater than or equal to 1 the "self" link has page=<page number> the "prev" link has page equal to 1 or <page number> - 1 the "prev" link has page equal to "last" or <page number> + 1 "meta"/"totalPages" is greater than or equal to <page number> "meta"/"totalRecords" is greater than or equal to <page number> * <page size>
)
|
A.CPG.002: Validate pagination - Invalid page size value
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <page-size> parameter is specifiedAND the value for <page-size> is outside the range [1..1000]OR the <page-size> is a not a positive integer |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/InvalidPageSize"
)
|
A.CPG.003: Validate pagination - Non-numeric <page>
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <page> parameter is included AND the <page> is a not a positive integer |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CPG.004: Validate pagination - Max record limit exceeded
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <page> parameter is includedAND the <page> value is greater than the number of pages available |
When | a response is returned |
Then | AND (
the response has a status of 422 the response body has ErrorListReponse object the error code is "Field/InvalidPage"
)
|
A.CPG.005: Validate pagination - Non-numeric <page-size>
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <page-size> parameter is included AND the page size parameter value is not a positive integer (number) |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CVN.001: Validate version - valid version number [x-v]
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-v> header is included AND the value for the <x-v> is a positive integer |
When | a response is returnedAND the response has a status of 200 |
Then | AND (
<x-v> is in the response header <x-v> is a positive integer
)
|
A.CVN.002: Validate version - invalid version value [x-v]
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the version parameter is included AND the version value is not a valid number is [-1,0,1001] |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CVN.003: Validate version - validate [x-v] format
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the version parameter is includedAND the version value is not a valid number is an alpha (e.g. "foo") |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CVN.004: Validate version - unsupported version without <x-min-v>
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-v> is included in a request headerAND <x-min-v> is NOT includedAND the request version <x-v> is not supported |
When | and a response is returned |
Then | AND (
the response has a status of 406 the response body has ErrorListReponse object error code is "Header/UnsupportedVersion"
)
|
A.CVN.005: Validate version - unsupported version with <x-min-v>
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-v> is included in a request headerAND <x-min-v> is includedAND no version between <x-v> and <x-min-v> is supported |
When | a response is returned |
Then | AND (
the response has a status of 406 the response body has ErrorListReponse object error code is "Header/UnsupportedVersion"
)
|
A.CVM.001: Validate version - <x-min-v> is provided
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-min-v> header is included AND the value for the <x-min-v> is a positive integer |
When | a response is returnedAND the response has a status of 200 |
Then | AND (
<x-v> is in the response header <x-v> = [<x-min-v>, <x-v>] <x-v> is a positive integer
)
|
A.CVM.002: Validate minimum version - validate <x-min-v> format
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-min-v> header is included AND the <x-min-v> is a not a positive integer |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CFI.001: Validate FAPI Interaction ID - included in request
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-fapi-interaction-id> is included in the header of the requestAND the <x-fapi-interaction-id> is in a valid format |
When | a response is returned |
Then | the Data Holder has returned the <x-fapi-interaction-id> from the request in the response header |
A.CFI.002: Validate FAPI Interaction ID - not in request
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-fapi-interaction-id> is NOT included in the header of the request |
When | a response is returned |
Then | the Data Holder has returned an <x-fapi-interaction-id> in the response header |
A.CFI.003: Validate FAPI Interaction ID - invalid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://datatracker.ietf.org/doc/html/rfc4122
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-fapi-interaction-id> is included AND the <x-fapi-interaction-id> is not in a valid format |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/invalid"
)
|
A.CFA.001: Validate FAPI Auth date - valid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://openid.net/specs/openid-financial-api-part-1-ID2.html
- https://datatracker.ietf.org/doc/html/rfc7231#page-90
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authentication |
When | a response is returned AND the response has a status of 200 |
Then | AND (
the <x-fapi-auth-date> is present in the request header is in a valid format
)
|
A.CFA.002: Validate FAPI Auth date - missing from header
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://openid.net/specs/openid-financial-api-part-1-ID2.html
- https://datatracker.ietf.org/doc/html/rfc7231#page-90
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the <x-fapi-auth-date> is NOT present in the request header |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/missing"
)
|
A.CFA.003: Validate FAPI Auth date - invalid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://openid.net/specs/openid-financial-api-part-1-ID2.html
- https://datatracker.ietf.org/doc/html/rfc7231#page-90
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the <x-fapi-auth-date> is in the request headerAND is NOT in a valid format |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/invalid"
)
|
A.CFA.004: No <x-fapi-auth-date> in header (SR specific)
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authentication AND the call is from a DH to a SDH |
When | a response is returnedAND the response has a status of 200 |
Then | the <x-fapi-auth-date> is NOT present in the response header |
A.CFC.001: Validate FAPI Customer IP Address - is present
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authentication |
When | a response is returnedAND the response has a status of 200 |
Then | AND (
the <x-fapi-customer-ip-address> is present in the request header is in a valid IPv4 or IPv6 format
)
|
A.CFC.002: Validate FAPI Customer IP Address - missing from header
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the <x-fapi-customer-ip-address> is NOT present in the request header |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/Missing"
)
|
A.CFC.003: Validate FAPI Customer IP Address - invalid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the <x-fapi-customer-ip-address> is in present the request headerAND is NEITHER in a valid IPv4 or IPv6 format |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/invalid"
)
|
A.CFC.004: No <x-fapi-customer-ip-address> in header (SR specific)
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the call is from a DH to a SDH |
When | a response is returned |
Then | the <x-fapi-customer-ip-address> is NOT present in the response header |
A.CCH.001: Validate the client headers - valid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the call is an attended, i.e. customer present, call |
When | a response is returned AND the response has a status of 200 |
Then | AND (
the <x-cds-client-headers> is present in the request header is Base64 encoded
)
|
A.CCH.002: Validate the client headers - missing from header
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the API requires authenticationAND the <x-cds-client-headers> is mandatoryAND the <x-cds-client-headers> is NOT present in the request header |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/missing"
)
|
A.CCH.003: Validate the client headers - invalid format
References:
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
- https://consumerdatastandardsaustralia.github.io/standards/#authentication-flows
- https://consumerdatastandardsaustralia.github.io/standards/#common-field-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <x-cds-client-headers> present the request headerAND is Not Base64 encoded |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/Invalid"
)
|
A.CCH.004: No <x-cds-client-header> in header (SR specific)
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the call is from a DH to a SDH |
When | a response is returned |
Then | the <x-cds-client-header> is NOT present in the response header |
A.CAI.001: CDS arrangement id - present and valid (SR specific)
References:
- https://consumerdatastandardsaustralia.github.io/standards/#energy
- https://consumerdatastandardsaustralia.github.io/standards/#identifiers-and-subject-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the call is from a DH to a SDH |
When | a response is returned AND the response has a status of 200 |
Then | AND (
the <x-cds-arrangement> is present in the request header is in a valid format
)
|
A.CAI.002: CDS arrangement id - missing from header (SR specific)
References:
- https://consumerdatastandardsaustralia.github.io/standards/#energy
- https://consumerdatastandardsaustralia.github.io/standards/#identifiers-and-subject-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the call is from a DH to a SDHAND the <x-cds-arrangement> is NOT present in the request header |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/Missing"
)
|
A.CAI.003: CDS arrangement id - present but invalid (SR specific)
References:
- https://consumerdatastandardsaustralia.github.io/standards/#energy
- https://consumerdatastandardsaustralia.github.io/standards/#identifiers-and-subject-types
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the call is from a DH to a SDH |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Header/Invalid"
)
|
A.COD.001: Validate the Oldest Date parameter - valid format
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <oldest-date> is included as a query parameterAND the <oldest-date> is in a valid DateString format |
When | a response is returnedAND the response has a status of 200 |
Then | the data is constrained by the date supplied |
A.COD.002: Validation the Oldest Date parameter - invalid format
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <oldest-date> is included as a query parameterAND the <oldest-date> is not in a DateString valid format |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/invalid"
)
|
A.CND.001: Validate the Newest Date parameter - valid format
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <newest-date> is included as a query parameterAND the <newest-date> is in a valid DateString format |
When | a response is returnedAND the response has a status of 200 |
Then | the data is constrained by the date supplied |
A.CND.002: Validation the Newest Date parameter - invalid format
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the <newest-date> is included as a query parameterAND the <newest-date> is not in a valid DateString format |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.CBD.001: Validation of the POST body - malformed body
References:
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
- https://consumerdatastandardsaustralia.github.io/standards/#http-response-codes
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request is a POST requestAND the request body is not in a valid JSON format, i.e. it is malformed |
When | a response is returned |
Then | AND (
the response has a status of 400 the response body has ErrorListReponse object error code is "Field/Invalid"
)
|
A.EAR.001: Validate service point and schema - EnergyServicePointDetailResponse
References:
- https://consumerdatastandardsaustralia.github.io/standards/#tocSenergyservicepointdetailresponse
- https://consumerdatastandardsaustralia.github.io/standards/#energy
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the {servicePointId} value is valid |
When | a response is returned |
Then | AND (
the response has a status of 200 the response body complies with the EnergyServicePointDetailResponse schema
)
|
A.EAR.002: Validate service point - invalid value
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the requested service point is permanently unavailable. (No subsequent request for the service point will be successful.) |
When | a response is returned |
Then | AND (
the response has a status of 404 the response body has ErrorListReponse object error code is "Authorisation/InvalidServicePoint"
)
|
A.EAR.003: Validate service point - unavailable
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is includedAND the requested service point is temporarily unavailable. (Subsequent requests for the service point may be successful.) |
When | a response is returned |
Then | AND (
the response has a status of 404 the response body has ErrorListReponse object error code is "Authorisation/UnavailableServicePoint"
)
|
A.EAR.004: Validate schema - EnergyServicePointListReponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request to call the API is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyServiceListResponse schema
)
|
A.EAR.005: Validate service point and schema - EnergyUsageListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is includedAND the {servicePointId} value is valid AND the request is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code of 200 the response body complies with the EnergyUsageListResponse schema
)
|
A.EAR.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload to call the API is formatted correctly AND contains the mandatory fields |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyUsageListResponse schema
)
|
A.EAR.007: Validate service point and schema - EnergyDerDetailResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the {servicePointId} value is valid |
When | a response is returned |
Then | AND (
the response has a status of 200 the response body complies with the EnergyDerDetailResponse schema
)
|
A.EAR.008: Validate servicePointIdList body and schema - EnergyDerListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload to call the API is formatted correctly AND contains the mandatory fields |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyDerListResponse schema
)
|
A.EAR.009: Validate servicePointIdList - invalid body values
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload does not contain the required fieldsOR the request payload is NOT well formatted |
When | a response is returned |
Then | AND (
the response has a status code 422 the response body has ErrorListReponse error code is "Field/Invalid"
)
|
A.EAR.010: Validate schema - EnergyUsageListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request to call the API is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyUsageListResponse schema
)
|
A.EAR.011: Validate schema - EnergyDerListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request to call the API is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyDerListResponse schema
)
|
A.EAS.001: Validate service point and schema - EnergyServicePointDetailResponse
References:
- https://consumerdatastandardsaustralia.github.io/standards/#tocSenergyservicepointdetailresponse
- https://consumerdatastandardsaustralia.github.io/standards/#energy
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the {servicePointId} value is valid |
When | a response is returned |
Then | AND (
the response has a status of 200 the response body complies with the EnergyServicePointDetailResponse schema
)
|
A.EAS.002: Validate service point - invalid NMI value
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the requested service point is permanently unavailable. No subsequent request for the service point will be successful. |
When | a response is returned |
Then | AND (
the response has a status of 404 the response body has ErrorListReponse object error code is "Authorisation/InvalidServicePoint"
)
|
A.EAS.003: Validate service point - unavailable NMI
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the requested service point is temporarily unavailable. Subsequent requests for the service point may be successful. |
When | a response is returned |
Then | AND (
the response has a status of 404 the response body has ErrorListReponse object error code is "Authorisation/UnavailableServicePoint"
)
|
A.EAS.004: Validate schema - EnergyServicePointListReponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request to call the API is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyServiceListResponse schema
)
|
A.EAS.005: Validate service point and schema - EnergyUsageListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the {servicePointId} value is valid AND the request is formatted correctly |
When | a response is returned |
Then | AND (
the response has a status code of 200 the response body complies with the EnergyUsageListResponse schema
)
|
A.EAS.006: Validate servicePointIdList body and schema - EnergyUsageListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload to call the API is formatted correctly AND contains the mandatory fields |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyUsageListResponse schema
)
|
A.EAS.007: Validate service point and schema - EnergyDerDetailResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the {servicePointId} is included AND the {servicePointId} value is valid |
When | a response is returned |
Then | AND (
the response has a status of 200 the response body complies with the EnergyDerDetailResponse schema
)
|
A.EAS.008: Validate servicePointIdList body and schema - EnergyDerListResponse
References:
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload to call the API is formatted correctly AND contains the mandatory fields |
When | a response is returned |
Then | AND (
the response has a status code 200 the response body complies with the EnergyDerListResponse schema
)
|
A.EAS.009: Validate servicePointIdList - invalid body values
References:
- https://consumerdatastandardsaustralia.github.io/standards/#tocSerrorlistresponse
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload does not contain the required fieldsOR the request payload is NOT well formatted |
When | a response is returned |
Then | AND (
the response has a status code 400 the response body complies with the ErrorListReponse schema error code is "Field/Invalid"
)
|
A.EAS.010: Validate servicePointIdList - invalid servicePointId in body
References:
- https://consumerdatastandardsaustralia.github.io/standards/#tocSerrorlistresponse
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload contains an invalid servicePointID |
When | a response is returned |
Then | AND (
the response has a status code 422 the response body complies with the ErrorListReponse schema error code is "Authorisation/InvalidServicePoint"
)
|
A.EAS.011: Validate servicePointIdList - unavailable servicePointId in body
References:
- https://consumerdatastandardsaustralia.github.io/standards/#tocSerrorlistresponse
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
Severity:
Critical (Test Fails)
Assertion Logic:
Given | the request payload contains a valid servicePointID that is unavailable |
When | a response is returned |
Then | AND (
the response has a status code 422 the response body complies with the ErrorListReponse schema error code is "Authorisation/UnavailableServicePoint"
)
|