Skip to content

Commit

Permalink
Merge pull request #365 from bci-oss/adjust-integration-test-with-loo…
Browse files Browse the repository at this point in the history
…kup-api

Feat: Adjust integration test with lookup api
  • Loading branch information
tunacicek authored Apr 3, 2024
2 parents 58a49ab + 61a045d commit 61875cc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
28 changes: 26 additions & 2 deletions e2e-tests/aas-registry/test_api.tavern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -118,4 +125,21 @@ stages:
Authorization: "Bearer {access_token}"
Edc-Bpn: "{edc_bpn:s}"
response:
status_code: 204
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}"]

0 comments on commit 61875cc

Please sign in to comment.