Skip to content

Commit

Permalink
Merge pull request #49 from pagopa/PAGOPA-1083-test-gpd-payments-run-…
Browse files Browse the repository at this point in the history
…performance-test

Pagopa 1083 test gpd payments run performance test
  • Loading branch information
pasqualespica authored Jul 21, 2023
2 parents b2790b4 + 891721c commit 09c4aef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions performance-test/run_performance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export donations_sub_key=${DONATIONS_SUBSCRIPTION_KEY}
export soap_sub_key=${SOAP_SUBSCRIPTION_KEY}
export debt_position_number=${DEBT_POSITION_NUMBER}

docker rm nginx
docker rm k6

stack_name=$(cd .. && basename "$PWD")
docker compose -p "${stack_name}" up -d --remove-orphans --force-recreate --build
docker logs -f k6
Expand Down
2 changes: 1 addition & 1 deletion performance-test/src/send_rt_V2_workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function (data) {

const receiptId = makeidMix(33);

let idx = exec.instance.vusActive * exec.vu.iterationInScenario + exec.vu.idInInstance;
let idx = exec.scenario.iterationInInstance;
let pair = data.pds[idx];

const creditorInstitutionCode = pair[0];
Expand Down
2 changes: 1 addition & 1 deletion performance-test/src/send_rt_workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function (data) {

const receiptId = makeidMix(33);

let idx = exec.instance.vusActive * exec.vu.iterationInScenario + exec.vu.idInInstance;
let idx = exec.scenario.iterationInInstance;
let pair = data.pds[idx];

const creditorInstitutionCode = pair[0];
Expand Down

0 comments on commit 09c4aef

Please sign in to comment.