fix with users

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2024-04-19 14:24:21 +02:00
parent e2ed7391bc
commit defbafb55e
2 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ export const options = {
GROUPS_PER_USER: `${obj[1]}`,
PARENTS_PER_GROUP: `${obj[2]}`,
PAGE_SIZE: `${obj[3]}`,
WITH_GROUPS: `${obj[4]}`,
WITH_GROUPS: `${obj[4] ? "true" : "false"}`,
},
tags: {
testid: `user_list_${obj[0]}_${obj[1]}_${obj[2]}_${obj[3]}_${obj[4] ? "with_groups" : "without_groups"}`,
@ -46,7 +46,7 @@ export const options = {
groups_per_user: `${obj[1]}`,
parents_per_group: `${obj[2]}`,
page_size: `${obj[3]}`,
with_groups: `${obj[4]}`,
with_groups: `${obj[4] ? "true" : "false"}`,
},
},
]),
@ -57,7 +57,7 @@ export default function () {
const user_count = Number(__ENV.USER_COUNT);
const groups_per_user = Number(__ENV.GROUPS_PER_USER);
const parents_per_group = Number(__ENV.PARENTS_PER_GROUP);
const with_groups = Number(__ENV.WITH_GROUPS);
const with_groups = __ENV.WITH_GROUPS;
const domain = `user-list-${user_count}-${groups_per_user}-${parents_per_group}.${host}:9000`;
const page_size = Number(__ENV.PAGE_SIZE);
const pages = Math.round(user_count / page_size);