2017-09-19 14:47:10 +00:00
|
|
|
export default function(server) {
|
|
|
|
server.createList('agent', 3);
|
|
|
|
server.createList('node', 50);
|
2017-10-07 01:27:36 +00:00
|
|
|
|
|
|
|
server.createList('namespace', 3);
|
|
|
|
|
2017-11-29 23:36:34 +00:00
|
|
|
server.createList('job', 10);
|
|
|
|
server.createList('job', 5, { failedPlacements: true });
|
2017-10-14 18:01:28 +00:00
|
|
|
|
|
|
|
server.createList('token', 3);
|
|
|
|
logTokens(server);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* eslint-disable */
|
|
|
|
function logTokens(server) {
|
|
|
|
console.log('TOKENS:');
|
|
|
|
server.db.tokens.forEach(token => {
|
|
|
|
console.log(`
|
|
|
|
Name: ${token.name}
|
|
|
|
Secret: ${token.secretId}
|
|
|
|
Accessor: ${token.accessorId}
|
|
|
|
|
|
|
|
`);
|
|
|
|
});
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|
2017-10-14 18:01:28 +00:00
|
|
|
/* eslint-enable */
|