mirror of
https://github.com/status-im/consul.git
synced 2025-01-23 12:11:05 +00:00
1ef18c4b67
* 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
20 lines
402 B
Plaintext
20 lines
402 B
Plaintext
[
|
|
{
|
|
"ID":"${ location.pathname.get(3) }",
|
|
"Name":"${ location.pathname.get(3) } Token",
|
|
"Type":"${fake.helpers.randomize(['client', 'management'])}",
|
|
"Rules":${
|
|
JSON.stringify(
|
|
`agent "${fake.hacker.noun()}" {
|
|
policy = "write"
|
|
}
|
|
node "node-0" {
|
|
policy = "read"
|
|
}`
|
|
)
|
|
},
|
|
"CreateIndex":4,
|
|
"ModifyIndex":4
|
|
}
|
|
]
|