in src/commands/entity-store-perf.ts [148:178]
mac: generateMacAddresses(valueStartIndex, fieldLength),
type: 'server',
architecture: ['x86_64'],
},
};
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const changeHostName = (doc: Record<string, any>, addition: string) => {
const newName = `${doc.host.hostname}-${addition}`;
doc.host.hostname = newName;
doc.host.name = newName;
doc.host.id = newName;
return doc;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const changeUserName = (doc: Record<string, any>, addition: string) => {
const newName = `${doc.user.name}-${addition}`;
doc.user.name = newName;
doc.user.id = newName;
return doc;
};
const generateUserFields = ({
idPrefix,
entityIndex,
}: GeneratorOptions): UserFields => {
const id = `${idPrefix}-user-${entityIndex}`;
return {
entity: {