Skip to content

Commit

Permalink
Feature/load tests2 (#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot authored Aug 13, 2024
1 parent b4f7db9 commit cf75f10
Show file tree
Hide file tree
Showing 7 changed files with 14,877 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,4 @@ jobs:
# Remove old build runs, build pods and deployment pods
oc delete po --field-selector=status.phase==Succeeded
55 changes: 55 additions & 0 deletions .github/workflows/loadtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: Loadtests

on:
workflow_call:
inputs:
### Required
dops_api_url:
description: 'The url endpoint for the dops'
default: onroutebc-test-dops.apps.silver.devops.gov.bc.ca
required: true
type: string
frontend_api_url:
description: 'The url endpoint for the frontend'
default: onroutebc-test-frontend.apps.silver.devops.gov.bc.ca
required: true
type: string
vehciles_api_url:
description: 'The url endpoint for vehicles'
default: onroutebc-test-vehicles.apps.silver.devops.gov.bc.ca
required: true
type: string
bearer_token:
description: "The bearer token pertaining to the user running the tests"
required: true
type: string

jobs:
loadtests:
name: Loadtests
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
timeout-minutes: 1
steps:
- uses: actions/checkout@v4

- name: Run All JMeter Tests In tests Folder
uses: rbhadti94/[email protected]
with:
testFilePath: vehicles/test/load_tests/*
outputReportsFolder: results
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JDOPS_API_URL=${{inputs.dops_api_url}}
-JFRONTEND_API_URL=${{inputs.frontend_api_url}}
-JVEHICLES_API_URL=${{inputs.vehicles_api_url}}
-JRESULTS_DIR=results
- uses: actions/[email protected]
with:
name: jmeter-test-results
path: results/

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,7 @@ test-report.xml
.vscode

Chart.lock


#Load Test Results
*/test/load_tests/results/
853 changes: 853 additions & 0 deletions dops/test/load_tests/orbc_load_test_plan_dops.jmx

Large diffs are not rendered by default.

12,492 changes: 12,492 additions & 0 deletions frontend/test/load_tests/orbc_load_test_plan_frontend.jmx

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

1,472 changes: 1,472 additions & 0 deletions vehicles/test/load_tests/orbc_load_test_plan_vehicles_dev.jmx

Large diffs are not rendered by default.

0 comments on commit cf75f10

Please sign in to comment.