open-consul/ui/packages/consul-ui/mock-api/v1/peerings

27 lines
575 B
Plaintext

[
${
range(
env('CONSUL_PEER_COUNT', Math.floor((Math.random() * 10) + 1))
).map(i => `
{
"ID": "${fake.random.uuid()}-${i}",
"Name": "${fake.hacker.noun()}-peer-${i}",
"State": "${fake.helpers.randomize([
'ACTIVE',
'PENDING',
'ESTABLISHING',
'FAILING',
'DELETING',
'TERMINATED',
'UNDEFINED'
])}",
"ImportedServiceCount": ${fake.random.number({min: 0, max: 4000})},
"ExportedServiceCount": ${fake.random.number({min: 0, max: 4000})},
"CreateIndex": 16,
"ModifyIndex": 16
}
`)}
]