Skip to content

Commit

Permalink
we don't need security.setRoles to fix this test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg committed Nov 5, 2020
1 parent 4882651 commit 5d58e20
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/functional/apps/management/_import_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'settings', 'header', 'savedObjects']);
const testSubjects = getService('testSubjects');
const log = getService('log');
const security = getService('security');

describe('import objects', function describeIndexTests() {
describe('.ndjson file', () => {
beforeEach(async function () {
// await esArchiver.load('empty_kibana');
await kibanaServer.uiSettings.replace({});
await PageObjects.settings.navigateTo();
await esArchiver.load('management');
Expand Down Expand Up @@ -224,15 +222,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

describe('.json file', () => {
before(async function () {
// There must be some saved objects in difference indices which can cause failures when
// run against Kibana with security enabled like on Cloud
await security.testUser.setRoles(['kibana_admin', 'superuser'], false);
});
after(async function () {
await security.testUser.restoreDefaults();
});

beforeEach(async function () {
// delete .kibana index and then wait for Kibana to re-create it
await kibanaServer.uiSettings.replace({});
Expand Down

0 comments on commit 5d58e20

Please sign in to comment.