Skip to content

Commit

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

Fix: Updated test script
  • Loading branch information
agg3fe authored Apr 3, 2024
2 parents 75ed1eb + cdb0866 commit 7d2e470
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/aas-registry/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ description:
variables:
aas_registry_api_url: "{tavern.env_vars.AAS_REGISTRY_API_URL}"
edc_bpn: "{tavern.env_vars.EDC_BPN}"
decoded_shell_id: 20062250-6b6e-4eba-bf90-7720ddc855e9
encoded_shell_id: "MjAwNjIyNTAtNmI2ZS00ZWJhLWJmOTAtNzcyMGRkYzg1NWU5"
decoded_shell_id: 20062250-6b6e-4eba-bf90-7720ddc855e8
encoded_shell_id: "MjAwNjIyNTAtNmI2ZS00ZWJhLWJmOTAtNzcyMGRkYzg1NWU4"
29 changes: 15 additions & 14 deletions e2e-tests/aas-registry/test_api.tavern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,6 @@ stages:
response:
status_code: 204

- name: Delete shell descriptor by id
request:
url: "{aas_registry_api_url:s}/api/v3/shell-descriptors/{encoded_shell_id:s}"
method: DELETE
headers:
Content-Type: application/json
Authorization: "Bearer {access_token}"
Edc-Bpn: "{edc_bpn:s}"
response:
status_code: 204

- name: Lookup shell without encoding
request:
url: "{aas_registry_api_url:s}/api/v3/lookup/shellsByAssetLink"
Expand All @@ -137,10 +126,22 @@ stages:
Authorization: "Bearer {access_token}"
Edc-Bpn: "{edc_bpn:s}"
json: [{
"name": "PartInstanceID",
"value": "24975539203421"
"name": "PartInstanceID",
"value": "24975539203421"
}]
response:
status_code: 200
json:
result: ["{decoded_shell_id:s}"]
result: ["{decoded_shell_id:s}"]

- name: Delete shell descriptor by id
request:
url: "{aas_registry_api_url:s}/api/v3/shell-descriptors/{encoded_shell_id:s}"
method: DELETE
headers:
Content-Type: application/json
Authorization: "Bearer {access_token}"
Edc-Bpn: "{edc_bpn:s}"
response:
status_code: 204

0 comments on commit 7d2e470

Please sign in to comment.