diff --git a/CHANGELOG.md b/CHANGELOG.md index a933c9fc..a35a70ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 0.4.2 ### Added +- Added lookup api test in aas-registry-e2e-test action ## fixed - KICS findings fixed diff --git a/e2e-tests/aas-registry/test_api.tavern.yaml b/e2e-tests/aas-registry/test_api.tavern.yaml index fcbb0aea..df6bbde6 100644 --- a/e2e-tests/aas-registry/test_api.tavern.yaml +++ b/e2e-tests/aas-registry/test_api.tavern.yaml @@ -70,6 +70,10 @@ stages: json: id: "{decoded_shell_id:s}" idShort: twin of a break (Testing) + specificAssetIds: [{ + "name":"PartInstanceID", + "value":"24975539203421" + }] response: status_code: 201 headers: @@ -92,7 +96,10 @@ stages: displayName: [] idShort: twin of a break (Testing) id: "{decoded_shell_id:s}" - specificAssetIds: [] + specificAssetIds: [{ + "name":"PartInstanceID", + "value":"24975539203421" + }] submodelDescriptors: [] - name: Update shell descriptor by id @@ -118,4 +125,21 @@ stages: Authorization: "Bearer {access_token}" Edc-Bpn: "{edc_bpn:s}" response: - status_code: 204 \ No newline at end of file + status_code: 204 + + - name: Lookup shell without encoding + request: + url: "{aas_registry_api_url:s}/api/v3/lookup/shellsByAssetLink" + method: POST + headers: + Content-Type: application/json + Authorization: "Bearer {access_token}" + Edc-Bpn: "{edc_bpn:s}" + json: [{ + "name": "PartInstanceID", + "value": "24975539203421" + }] + response: + status_code: 200 + json: + result: ["{decoded_shell_id:s}"] \ No newline at end of file