Skip to content

Commit

Permalink
Merge pull request #898 from catenax-ng/fix/#503-Fix-tests-Tavern-Cuc…
Browse files Browse the repository at this point in the history
…umber-Tests

Fix/#503 fix tests tavern cucumber tests
  • Loading branch information
mkanal authored Apr 30, 2024
2 parents 1150e9e + b4cbdeb commit cc1bec8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/tavern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,28 @@ on:
global-asset-id-asBuilt:
type: string
description: Global-asset-id to use for the asBuilt tests.
default: 'urn:uuid:6d505432-8b31-4966-9514-4b753372683f'
default: 'urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d'
required: true
bpn-asBuilt:
type: string
description: BPN to use for the asBuilt global-asset-id.
default: 'BPNL00000003AVTH'
required: true
global-asset-id-ess-asBuilt:
type: string
description: Global-asset-id to use for the asBuilt tests.
default: 'urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7'
required: true
bpn-ess-asBuilt:
type: string
description: BPN to use for the asBuilt global-asset-id.
default: 'BPNL00000003CRHK'
required: true
bpn-ess-incident:
type: string
description: Incident BPN to search for which violates against environmental and social standards.
default: 'BPNS00000003B6LU'
required: true
execution-ticket:
type: string
description: JIRA execution ticket to safe results in.
Expand Down Expand Up @@ -68,6 +83,9 @@ jobs:
REGULAR_USER_API_KEY_ESS: ${{ secrets.INT_REGULAR_USER_API_KEY }}
ADMIN_USER_API_KEY_ESS: ${{ secrets.INT_ADMIN_USER_API_KEY }}
GLOBAL_ASSET_ID_AS_PLANNED: ${{ github.event.inputs.global-asset-id-asPlanned || 'urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e' }}
GLOBAL_ASSET_ID_ESS_AS_BUILT: ${{ github.event.inputs.global-asset-id-ess-asBuilt || 'urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7' }}
BPN_ESS_AS_BUILT: ${{ github.event.inputs.bpn-ess-asBuilt || 'BPNL00000003CRHK' }}
BPN_ESS_INCIDENT: ${{ github.event.inputs.bpn-ess-incident || 'BPNS00000003B6LU' }}
BPN_AS_PLANNED: ${{ github.event.inputs.bpn-asPlanned || 'BPNL00000003AYRE' }}
GLOBAL_ASSET_ID_AS_BUILT: ${{ github.event.inputs.global-asset-id-asBuilt || 'urn:uuid:6d505432-8b31-4966-9514-4b753372683f' }}
BPN_AS_BUILT: ${{ github.event.inputs.bpn-asBuilt || 'BPNL00000003AVTH' }}
Expand Down
8 changes: 4 additions & 4 deletions local/testing/api-tests/irs-api-tests.tavern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ stages:
url: "{tavern.env_vars.IRS_ESS_HOST}/ess/bpn/investigations"
json:
key:
globalAssetId111: urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7
bpn111: BPNL00000003CRHK
globalAssetId111: "{tavern.env_vars.GLOBAL_ASSET_ID_ESS_AS_BUILT}"
bpn111: "{tavern.env_vars.BPN_ESS_AS_BUILT}"
incidentBPNSs111:
- BPNS00000003B6LU
- "{tavern.env_vars.BPN_ESS_INCIDENT}"
method: POST
headers:
content-type: application/json
Expand Down Expand Up @@ -1043,7 +1043,7 @@ stages:
---


test_name: Make sure job with status RUNNING is responsed with http code 206
test_name: Make sure job with status RUNNING is responding with http code 206

strict:
- headers:off
Expand Down

0 comments on commit cc1bec8

Please sign in to comment.