Skip to content

Fix/loadtests9

Fix/loadtests9 #36

---
name: Regression Tests
on:
pull_request:
workflow_dispatch:
inputs:
### Required
release:
description: 'PR number, test or prod.'
default: test
required: true
type: string
environment:
description: 'namespace to deploy to (dev/test/uat/prod)'
default: test
required: true
type: choice
options: [dev,test,uat,prod]
username:
description: 'username of test account to use'
default: ''
required: true
type: string
password:
description: 'password of test account to use'
default: ''
required: true
type: string
jobs:
vars:
name: Set Variables
outputs:
dops_api_url: ${{ steps.vars.outputs.dops_api_url }}
frontend_api_url: ${{ steps.vars.outputs.frontend_api_url }}
vehicles_api_url: ${{ steps.vars.outputs.vehicles_api_url }}
runs-on: ubuntu-22.04
steps:
- name: vars
id: vars
run: |
echo "dops_api_url=onroutebc-${{inputs.release || 'test'}}-dops.apps.silver.devops.gov.bc.ca" >> $GITHUB_OUTPUT
echo "frontend_api_url=onroutebc-${{inputs.release || 'test'}}-frontend.apps.silver.devops.gov.bc.ca" >> $GITHUB_OUTPUT
echo "vehicles_api_url=onroutebc-${{inputs.release || 'test'}}-vehicles.apps.silver.devops.gov.bc.ca" >> $GITHUB_OUTPUT
amend_term_oversize:
name: Amend Term Oversize
needs: [ vars ]
environment: ${{ inputs.environment || 'test' }}
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
ref: 'fix/loadtests9'
- name: DEBUG
run: |
find . | grep tests
- uses: nanasess/setup-chromedriver@v2
- uses: rbhadti94/[email protected]
with:
testFilePath: tests/regression/orbc_load_test_plan_frontend_amend_term_oversize.jmx
outputReportsFolder: /tmp/results
plugins: "jpgc-webdriver"
args: |
--loglevel=DEBUG
--jmeterlogfile=/tmp/jmeter.log
-JFRONTEND_API_URL=${{needs.vars.outputs.frontend_api_url}}
-JUSER=${{vars.BCEID_USER}}
-JPASSWORD=${{secrets.BCEID_PASSWORD}}
-JCHROME_DRIVER_PATH=/usr/local/bin
- uses: actions/[email protected]
with:
name: upload amend term oversize artifact
path: tests/regression/results
- uses: actions/[email protected]
with:
name: DEBUG - log
path: jmeter_log.log