Skip to content

Fix/loadtests9

Fix/loadtests9 #15

---
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
- uses: nanasess/setup-chromedriver@v2
- uses: rbhadti94/apache-jmeter-action@v0.5.0
with:
testFilePath: tests/regression/orbc_load_test_plan_frontend_amend_term_oversize.jmx
outputReportsFolder: tests/regression/results
plugins: "jpgc-webdriver"
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JFRONTEND_API_URL=${{needs.vars.outputs.frontend_api_url}}
-JRESULTS_DIR=tests/regression/results/
-JUSER=${{vars.BCEID_USER}}
-JPASSWORD=${{secrets.BCEID_PASSWORD}}
-JCHROME_DRIVER_PATH=/usr/local/bin
- uses: actions/upload-artifact@v4.3.6
with:
name: jmeter-test-results-frontend
path: tests/regression/results