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
29 lines
681 B
Plaintext
29 lines
681 B
Plaintext
[
|
|
${
|
|
range(
|
|
env(
|
|
'CONSUL_KV_COUNT',
|
|
Math.floor(
|
|
(
|
|
Math.random() * env('CONSUL_KV_MAX', 10)
|
|
) + parseInt(env('CONSUL_KV_MIN', 1))
|
|
)
|
|
)
|
|
).map(
|
|
function(item, i) {
|
|
return `"${
|
|
range(
|
|
fake.random.number(
|
|
{max: env('CONSUL_KV_MAX_DEPTH', 0)}
|
|
)
|
|
).reduce(
|
|
function(prev, item, i, arr) {
|
|
return `${prev}/${fake.lorem.word()}-${i}`
|
|
},
|
|
`${i}-${i === 0 ? 'key-value' : fake.lorem.word()}`
|
|
)}"`;
|
|
}
|
|
)
|
|
}
|
|
]
|