generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (58 loc) · 1.87 KB
/
loadtest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: Loadtests
on:
workflow_dispatch:
inputs:
### Required
num_threads:
description: 'Number of concurrent threads (USERS) for each test in sequence'
default: 200
required: true
type: integer
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
vehicles_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: 60
steps:
- uses: actions/checkout@v4
- name: Run All JMeter Tests In tests Folder
uses: rbhadti94/[email protected]
with:
testFilePath: loadtests
outputReportsFolder: loadtests/results
args: |
--loglevel INFO
--jmeterlogconf=log.conf
-JBEARER_TOKEN=${{inputs.bearer_token}}
-JNUM_THREADS=${{inputs.num_threads}}
-JFRONTEND_API_URL=${{inputs.frontend_api_url}}
-JDOPS_API_URL=${{inputs.dops_api_url}}
-JVEHICLES_API_URL=${{inputs.vehicles_api_url}}
-JRESULTS_DIR=loadtests/results
- run: |
ls -al results/
- uses: actions/[email protected]
with:
name: jmeter-test-results
path: loadtests/results