5875e4b15b
* Add consul-api-double under api * Update config to reflect api change * Remove consul-api-double as a dependency * api -> mock-api * Fixup mocks path for staging
31 lines
606 B
Plaintext
31 lines
606 B
Plaintext
[
|
|
${
|
|
range(
|
|
env(
|
|
'CONSUL_NODE_COUNT',
|
|
Math.floor(
|
|
(
|
|
Math.random() * env('CONSUL_NODE_MAX', 10)
|
|
) + parseInt(env('CONSUL_NODE_MIN', 1))
|
|
)
|
|
)
|
|
).map(
|
|
function(item, i)
|
|
{
|
|
return `
|
|
{
|
|
"Node":"node-${i}",
|
|
"Segment":"",
|
|
"Coord":{
|
|
"Vec":[${range(7).map((item, i) => fake.random.number())}],
|
|
"Error":1.5,
|
|
"Adjustment":0,
|
|
"Height":0.0000${fake.random.number()}
|
|
}
|
|
}
|
|
`;
|
|
}
|
|
)
|
|
}
|
|
]
|