mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
This commit is contained in:
parent
ee3b2f5030
commit
b1c0879b11
2 changed files with 20 additions and 1 deletions
|
@ -17,6 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const browser = getService('browser');
|
||||
const PageObjects = getPageObjects(['settings', 'common']);
|
||||
const testSubjects = getService('testSubjects');
|
||||
const security = getService('security');
|
||||
const es = getService('es');
|
||||
const indexPatterns = getService('indexPatterns');
|
||||
const toasts = getService('toasts');
|
||||
|
@ -26,9 +27,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
before(async function () {
|
||||
await browser.setWindowSize(1200, 800);
|
||||
await security.testUser.setRoles([
|
||||
'kibana_admin',
|
||||
'test_field_formatters',
|
||||
'test_logstash_reader',
|
||||
]);
|
||||
await esArchiver.load('test/functional/fixtures/es_archiver/discover');
|
||||
await kibanaServer.uiSettings.replace({});
|
||||
await kibanaServer.uiSettings.update({});
|
||||
});
|
||||
|
||||
after(async function afterAll() {
|
||||
|
|
|
@ -178,6 +178,20 @@ export default async function ({ readConfigFile }) {
|
|||
},
|
||||
kibana: [],
|
||||
},
|
||||
test_field_formatters: {
|
||||
elasticsearch: {
|
||||
cluster: [],
|
||||
indices: [
|
||||
{
|
||||
names: ['field_formats_management_functional_tests*'],
|
||||
privileges: ['read', 'view_index_metadata'],
|
||||
field_security: { grant: ['*'], except: [] },
|
||||
},
|
||||
],
|
||||
run_as: [],
|
||||
},
|
||||
kibana: [],
|
||||
},
|
||||
//for sample data - can remove but not add sample data.( not ml)- for ml use built in role.
|
||||
kibana_sample_admin: {
|
||||
elasticsearch: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue