aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src/test/resources/k6/writeWithoutRelations.js
diff options
context:
space:
mode:
Diffstat (limited to 'aai-resources/src/test/resources/k6/writeWithoutRelations.js')
-rw-r--r--aai-resources/src/test/resources/k6/writeWithoutRelations.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/aai-resources/src/test/resources/k6/writeWithoutRelations.js b/aai-resources/src/test/resources/k6/writeWithoutRelations.js
index bb4b839..1201020 100644
--- a/aai-resources/src/test/resources/k6/writeWithoutRelations.js
+++ b/aai-resources/src/test/resources/k6/writeWithoutRelations.js
@@ -23,7 +23,7 @@ import { randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.3.0/index.js';
export const options = {
vus: 3,
- duration: `${__ENV.DURATION_SECONDS}s`,
+ duration: `${__ENV.DURATION_SECONDS || 10}s`,
thresholds: {
http_req_failed: ["rate<0.01"], // http errors should be less than 1%
http_req_duration: [
@@ -68,7 +68,7 @@ function generatePServer(someInt) {
});
}
-const baseUrl = `http://localhost:${__ENV.API_PORT}/aai/${__ENV.API_VERSION}`;
+const baseUrl = `http://localhost:${__ENV.API_PORT || 8447}/aai/${__ENV.API_VERSION || 'v29'}`;
const path = `/cloud-infrastructure/pservers/pserver`;
const url = baseUrl + path;
const encodedCredentials = 'QUFJOkFBSQ==';