mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix roles for discover ccs test (#130204)
* Fix roles for discover ccs test * Update roles based on config
This commit is contained in:
parent
1dce1d8d97
commit
6f6a332fb2
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
describe('discover integration with data view editor', function describeIndexTests() {
|
||||
before(async function () {
|
||||
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
|
||||
const roles = config.get('esTestCluster.ccs')
|
||||
? ['kibana_admin', 'test_logstash_reader', 'ccs_remote_search']
|
||||
: ['kibana_admin', 'test_logstash_reader'];
|
||||
await security.testUser.setRoles(roles);
|
||||
await esNode.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
|
||||
await kibanaServer.savedObjects.clean({ types: ['saved-search', 'index-pattern'] });
|
||||
await kibanaServer.importExport.load(kbnDirectory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue