[Discover] Fix functional time picker test permissions (#78564)
This commit is contained in:
parent
c4f05c4758
commit
9c3d2646b2
|
@ -22,16 +22,19 @@ import { FtrProviderContext } from '../../ftr_provider_context';
|
|||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const security = getService('security');
|
||||
const PageObjects = getPageObjects(['common', 'timePicker', 'discover']);
|
||||
|
||||
describe('indexpattern without timefield', () => {
|
||||
before(async () => {
|
||||
await security.testUser.setRoles(['kibana_admin', 'kibana_timefield']);
|
||||
await esArchiver.loadIfNeeded('index_pattern_without_timefield');
|
||||
await kibanaServer.uiSettings.replace({ defaultIndex: 'without-timefield' });
|
||||
await PageObjects.common.navigateToApp('discover');
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
await esArchiver.unload('index_pattern_without_timefield');
|
||||
});
|
||||
|
||||
|
|
|
@ -229,6 +229,21 @@ export default async function ({ readConfigFile }) {
|
|||
kibana: [],
|
||||
},
|
||||
|
||||
kibana_timefield: {
|
||||
elasticsearch: {
|
||||
cluster: [],
|
||||
indices: [
|
||||
{
|
||||
names: ['without-timefield', 'with-timefield'],
|
||||
privileges: ['read', 'view_index_metadata'],
|
||||
field_security: { grant: ['*'], except: [] },
|
||||
},
|
||||
],
|
||||
run_as: [],
|
||||
},
|
||||
kibana: [],
|
||||
},
|
||||
|
||||
kibana_large_strings: {
|
||||
elasticsearch: {
|
||||
cluster: [],
|
||||
|
|
Loading…
Reference in a new issue