diff --git a/.github/workflows/tavern.yml b/.github/workflows/tavern.yml index fa8f519ba4..1d3bd81668 100644 --- a/.github/workflows/tavern.yml +++ b/.github/workflows/tavern.yml @@ -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. @@ -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' }} diff --git a/local/testing/api-tests/irs-api-tests.tavern.yaml b/local/testing/api-tests/irs-api-tests.tavern.yaml index 73afe8f02c..c84b21c3ea 100644 --- a/local/testing/api-tests/irs-api-tests.tavern.yaml +++ b/local/testing/api-tests/irs-api-tests.tavern.yaml @@ -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 @@ -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