Fix/loadtests9 #81
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 || '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: | | |
ls -al /opt/google | |
ls -al /opt/google/chrome | |
/opt/google/chrome/chrome --version | |
- uses: browser-actions/setup-chrome@v1 | |
with: | |
chrome-version: 130.0.6723.91 | |
install-chromedriver: true | |
- name: DEBUG | |
run: | | |
whereis chromedriver | |
whereis chrome | |
chrome --version | |
chromedriver --version | |
/opt/google/chrome/chrome --version | |
- 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=DEBUG | |
-JFRONTEND_API_URL=${{needs.vars.outputs.frontend_api_url}} | |
-JUSER=${{vars.BCEID_USER}} | |
-JPASSWORD=${{secrets.BCEID_PASSWORD}} | |
-JCHROME_DRIVER_PATH=/usr/local/share/chromedriver-linux64/chromedriver | |
- uses: actions/[email protected] | |
with: | |
name: upload amend term oversize artifact | |
path: tests/regression/results | |
- uses: actions/[email protected] | |
with: | |
name: jmeter log | |
path: jmeter_log.log |