Skip to content

Use Case - TT02

Use Case - TT02 #14267

Workflow file for this run

name: Use Case - TT02
on:
workflow_dispatch:
schedule:
- cron: '*/15 * * * *'
jobs:
usecase-test:
environment: TT02
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run use case tests for data endpoint
run: |
cd test/k6
docker-compose run k6 run /src/tests/data.js -e env=${{ vars.ENV }} -e username=${{ secrets.USE_CASE_USER_NAME}} -e userpwd=${{ secrets.USER_PASSWORD}} -e org=${{ vars.ORG }} -e app=${{ vars.APP }} -e apimSubsKey=${{ secrets.APIM_SUBSKEY }}
- name: Run use case tests for sign endpoint
if: always()
run: |
cd test/k6
docker-compose run k6 run /src/tests/sign.js -e env=${{ vars.ENV }} -e username=${{ secrets.USE_CASE_USER_NAME}} -e userpwd=${{ secrets.USER_PASSWORD}} -e org=${{ vars.ORG }} -e app=${{ vars.APP }} -e apimSubsKey=${{ secrets.APIM_SUBSKEY }}
- name: Build failure report
if: failure()
run: |
report=":warning: Storage use case test failure in TT02 :warning: \n"
report+="\n Workflow available here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "stepreport="$report >> $GITHUB_ENV
- name: Report failure to Slack
if: failure()
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "${{ env.stepreport }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_PROD }}