Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using test_user with minimum privileges for discover_async_scripted_fields test #71988

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const log = getService('log');
const testSubjects = getService('testSubjects');

const PageObjects = getPageObjects(['common', 'settings', 'discover', 'timePicker']);
const queryBar = getService('queryBar');
const security = getService('security');

describe('async search with scripted fields', function () {
this.tags(['skipFirefox']);

before(async function () {
await esArchiver.load('kibana_scripted_fields_on_logstash');
await esArchiver.loadIfNeeded('logstash_functional');
await security.testUser.setRoles(['test_logstash_reader', 'global_discover_read']);
// changing the timepicker default here saves us from having to set it in Discover (~8s)
await kibanaServer.uiSettings.update({
'timepicker:timeDefaults':
Expand All @@ -36,6 +37,7 @@ export default function ({ getService, getPageObjects }) {
await kibanaServer.uiSettings.update({});
await esArchiver.unload('logstash_functional');
await esArchiver.load('empty_kibana');
await security.testUser.restoreDefaults();
});

it('query should show failed shards pop up', async function () {
Expand Down