mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* Fix reporting api tests for cloud * Add default value Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
This commit is contained in:
parent
3652661104
commit
aadb238577
1 changed files with 5 additions and 1 deletions
|
@ -132,7 +132,11 @@ export function createScenarios({ getService }: Pick<FtrProviderContext, 'getSer
|
|||
.set('kbn-xsrf', 'xxx')
|
||||
.send({ jobParams });
|
||||
};
|
||||
const generateCsv = async (job: JobParamsCSV, username = 'elastic', password = 'changeme') => {
|
||||
const generateCsv = async (
|
||||
job: JobParamsCSV,
|
||||
username = 'elastic',
|
||||
password = process.env.TEST_KIBANA_PASS || 'changeme'
|
||||
) => {
|
||||
const jobParams = rison.encode(job as object as RisonValue);
|
||||
return await supertestWithoutAuth
|
||||
.post(`/api/reporting/generate/csv_searchsource`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue