Skip to content

Commit

Permalink
[PPANTT-194] configured performance test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella committed Dec 9, 2024
1 parent a978d2d commit 62fc782
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .devops/performance-test-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ parameters:
- "constant"
- # TODO: add your values
default: "constant"
- name: "SCRIPT"
displayName: "Script name"
- name: "DB_NAME"
displayName: "DB name"
type: string
values:
- yourscriptname # TODO: add your script
- gpdk6
variables:
${{ if eq(parameters['ENVIRONMENT'], 'dev') }}:
poolImage: 'pagopa-dev-loadtest-linux'
Expand All @@ -44,8 +44,9 @@ steps:
docker pull grafana/k6
displayName: Pull k6 image
# TODO: add your env params
- script: |
cd ./performance-test
sh ./run_performance_test.sh ${{ parameters.ENVIRONMENT }} ${{ parameters.TEST_TYPE }} ${{ parameters.SCRIPT }} afmcalculatork6 $(API_SUBSCRIPTION_KEY)
displayName: Run k6 ${{ parameters.SCRIPT }} on ${{ parameters.ENVIRONMENT }}
sh ./run_performance_test.sh ${{ parameters.ENVIRONMENT }} ${{ parameters.TEST_TYPE }} gps-mbd-service_test ${{ parameters.DB_NAME}} $OCP_APIM_SUBSCRIPTION_KEY
displayName: Run k6 gps-mbd-service_test on ${{ parameters.ENVIRONMENT }}
env:
OCP_APIM_SUBSCRIPTION_KEY: ${{ variables.API_SUBSCRIPTION_KEY }}

0 comments on commit 62fc782

Please sign in to comment.