Fix/loadtests9 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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}}-dops.apps.silver.devops.gov.bc.ca" >> GITHUB_OUTPUT | |
echo "frontend_api_url=onroutebc-${{inputs.release}}-frontend.apps.silver.devops.gov.bc.ca" >> GITHUB_OUTPUT | |
echo "vehicles_api_url=onroutebc-${{inputs.release}}-vehicles.apps.silver.devops.gov.bc.ca" >> GITHUB_OUTPUT | |
amend_term_oversize: | |
name: Amend Term Oversize | |
needs: [ vars ] | |
environment: ${{ inputs.environment }} | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nanasess/setup-chromedriver@v2 | |
- uses: rbhadti94/[email protected] | |
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}} | |
- uses: actions/[email protected] | |
with: | |
name: jmeter-test-results-frontend | |
path: tests/regression/results |