Skip to content

Commit

Permalink
[PPANTT-194] fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella committed Dec 9, 2024
1 parent 62fc782 commit 604dc61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions performance-test/src/gps-mbd-service_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import http from 'k6/http';
import { postToGPSMBDService } from './modules/client.js';
import { check } from 'k6';
import { SharedArray } from 'k6/data';

Expand Down Expand Up @@ -33,7 +33,7 @@ function postcondition() {
}

export default function () {
let response = http.post(`${gpsMbdHost}/mbd/paymentOption`, "00000000000");
let response = postToGPSMBDService(`${gpsMbdHost}/mbd/paymentOption`, "00000000000");
console.info(`GPS MBD Service buildMbdPaymentOption status ${response.status}`);

let responseBody = JSON.parse(response.body);
Expand Down
4 changes: 2 additions & 2 deletions performance-test/src/modules/client.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import http from 'k6/http';

const subKey = `${__ENV.OCP_APIM_SUBSCRIPTION_KEY}`;
const subKey = `${__ENV.API_SUBSCRIPTION_KEY}`;

export function example(url, ciFiscalCode) {
export function postToGPSMBDService(url, ciFiscalCode) {
let headers = {
'Ocp-Apim-Subscription-Key': subKey,
"Content-Type": "application/json"
Expand Down

0 comments on commit 604dc61

Please sign in to comment.