CLI: Search perf test data (#17422)

* Search perf testdata cli task

* Test index

* REmoved test index
This commit is contained in:
Torkel Ödegaard
2019-06-06 10:05:08 +02:00
committed by GitHub
parent 606825703f
commit ad3f9c6663
3 changed files with 127 additions and 1 deletions
+9
View File
@@ -7,6 +7,7 @@ import { releaseTask } from './tasks/grafanaui.release';
import { changelogTask } from './tasks/changelog';
import { cherryPickTask } from './tasks/cherrypick';
import { precommitTask } from './tasks/precommit';
import { searchTestDataSetupTask } from './tasks/searchTestDataSetup';
program.option('-d, --depreciate <scripts>', 'Inform about npm script deprecation', v => v.split(','));
@@ -72,6 +73,14 @@ program
await execTask(precommitTask)({});
});
program
.command('searchTestData')
.option('-c, --count <number_of_dashboards>', 'Specify number of dashboards')
.description('Setup test data for search')
.action(async cmd => {
await execTask(searchTestDataSetupTask)({ count: cmd.count });
});
program.parse(process.argv);
if (program.depreciate && program.depreciate.length === 2) {