Skip to content

Commit

Permalink
Revert "[7.x] Optimizing DLStest (#35615)" (#35707)
Browse files Browse the repository at this point in the history
This reverts commit f1e388e.
  • Loading branch information
Spencer authored Apr 27, 2019
1 parent ad6676b commit f796785
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 688 deletions.
11 changes: 5 additions & 6 deletions x-pack/test/functional/apps/security/doc_level_security_roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function ({ getService, getPageObjects }) {
const retry = getService('retry');
const log = getService('log');
const screenshot = getService('screenshots');
const kibanaServer = getService('kibanaServer');
const PageObjects = getPageObjects([
'security',
'common',
Expand All @@ -27,15 +26,17 @@ export default function ({ getService, getPageObjects }) {
await esArchiver.loadIfNeeded('security/dlstest');
browser.setWindowSize(1600, 1000);

});
await PageObjects.settings.createIndexPattern('dlstest', null);

it('should add new role myroleEast', async function () {
await PageObjects.settings.navigateTo();
await PageObjects.security.clickElasticsearchRoles();
});

it('should add new role myroleEast', async function () {
await PageObjects.security.addRole('myroleEast', {
elasticsearch: {
'indices': [{
'names': ['dlstest*'],
'names': ['dlstest'],
'privileges': ['read', 'view_index_metadata'],
'query': '{"match": {"region": "EAST"}}'
}]
Expand All @@ -52,7 +53,6 @@ export default function ({ getService, getPageObjects }) {
});

it('should add new user userEAST ', async function () {
await PageObjects.settings.navigateTo();
await PageObjects.security.clickElasticsearchUsers();
await PageObjects.security.addUser({
username: 'userEast', password: 'changeme',
Expand All @@ -68,7 +68,6 @@ export default function ({ getService, getPageObjects }) {
it('user East should only see EAST doc', async function () {
await PageObjects.security.logout();
await PageObjects.security.login('userEast', 'changeme');
await kibanaServer.uiSettings.replace({ 'defaultIndex': 'dlstest*' });
await PageObjects.common.navigateToApp('discover');
await retry.try(async () => {
const hitCount = await PageObjects.discover.getHitCount();
Expand Down
Binary file modified x-pack/test/functional/es_archives/security/dlstest/data.json.gz
Binary file not shown.
Loading

0 comments on commit f796785

Please sign in to comment.