[API] Update cluster mocks

This commit is contained in:
Oleg Shuralev 2020-01-19 20:50:24 +03:00
parent c327908493
commit 4b176b87b4
No known key found for this signature in database
GPG key ID: 0459DF80E1A2FD1B
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,6 @@
const randomBroker = () => ({
bytesInPerSec: Math.ceil(Math.random() * 10000),
bytesOutPerSec: Math.ceil(Math.random() * 10000),
bytesInPerSec: Math.ceil(Math.random() * 10_000),
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
segmentSize: Math.ceil(Math.random() * 1_000_000_000),
partitionReplicas: 134,
});

View file

@ -11,6 +11,8 @@ module.exports = function (fastify, opts, next) {
brokerCount: 1,
onlinePartitionCount: 20,
topicCount: 2,
bytesInPerSec: Math.ceil(Math.random() * 10_000),
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
},
{
id: 'dMMQx-WRh77BKYas_g2ZTz',
@ -20,6 +22,8 @@ module.exports = function (fastify, opts, next) {
brokerCount: 0,
onlinePartitionCount: 0,
topicCount: 0,
bytesInPerSec: Math.ceil(Math.random() * 10_000),
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
},
]);
});