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

Test user for maps tests under import geoJSON tests #86015

Merged
merged 20 commits into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
02c2b07
test user assignment for files under import geoJSON tests
bhavyarm Dec 9, 2020
105c4ba
figuring out roles for uploading files
bhavyarm Dec 14, 2020
73616d8
Merge branch 'master' into testMapUserImportGroup
bhavyarm Dec 14, 2020
73c5652
undo commenting out user role
bhavyarm Dec 14, 2020
cf7b8eb
casing the role name
bhavyarm Dec 14, 2020
eb6a4ba
Merge branch 'master' into testMapUserImportGroup
bhavyarm Dec 14, 2020
5a379e2
role debugging
bhavyarm Dec 14, 2020
1b6ac62
Merge branch 'master' into testMapUserImportGroup
bhavyarm Dec 15, 2020
0ca0c31
adding test user to maps tests under import JSON folder
bhavyarm Dec 15, 2020
50ca108
Merge branch 'master' into testMapUserImportGroup
kibanamachine Dec 15, 2020
8591d62
Merge branch 'master' into testMapUserImportGroup
kibanamachine Dec 15, 2020
db5d6d8
Merge branch 'master' into testMapUserImportGroup
kibanamachine Dec 16, 2020
aeac1c8
Merge branch 'master' into testMapUserImportGroup
bhavyarm Feb 2, 2021
c091d16
Merge branch 'testMapUserImportGroup' of github.com:bhavyarm/kibana i…
bhavyarm Feb 2, 2021
6a44104
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 3, 2021
ad13cf6
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 3, 2021
7d987ae
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 3, 2021
1aa6aa9
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 3, 2021
da002e9
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 3, 2021
6824794
Merge branch 'master' into testMapUserImportGroup
kibanamachine Feb 4, 2021
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 @@ -8,18 +8,24 @@
import expect from '@kbn/expect';
import path from 'path';

export default function ({ getPageObjects }) {
export default function ({ getPageObjects, getService }) {
const PageObjects = getPageObjects(['maps', 'common']);

const IMPORT_FILE_PREVIEW_NAME = 'Import File';
const FILE_LOAD_DIR = 'test_upload_files';
const DEFAULT_LOAD_FILE_NAME = 'point.json';
const security = getService('security');

describe('GeoJSON import layer panel', () => {
before(async () => {
await security.testUser.setRoles(['global_maps_all', 'geoall_data_writer']);
bhavyarm marked this conversation as resolved.
Show resolved Hide resolved
await PageObjects.maps.openNewMap();
});

after(async () => {
await security.testUser.restoreDefaults();
});

beforeEach(async () => {
await PageObjects.maps.clickAddLayer();
await PageObjects.maps.selectGeoJsonUploadSource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['maps', 'common']);
const testSubjects = getService('testSubjects');
const log = getService('log');
const security = getService('security');

const IMPORT_FILE_PREVIEW_NAME = 'Import File';
const FILE_LOAD_DIR = 'test_upload_files';
Expand All @@ -37,9 +38,17 @@ export default function ({ getService, getPageObjects }) {

describe('On GeoJSON index name & pattern operation complete', () => {
before(async () => {
await security.testUser.setRoles(
['global_maps_all', 'geoall_data_writer', 'global_index_pattern_management_all'],
false
);
await PageObjects.maps.openNewMap();
});

after(async () => {
await security.testUser.restoreDefaults();
});

beforeEach(async () => {
await PageObjects.maps.clickAddLayer();
await PageObjects.maps.selectGeoJsonUploadSource();
Expand Down
22 changes: 22 additions & 0 deletions x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,28 @@ export default async function ({ readConfigFile }) {
},
},

geoall_data_writer: {
elasticsearch: {
indices: [
{
names: ['*'],
privileges: ['create', 'read', 'view_index_metadata', 'monitor', 'create_index'],
},
],
},
},

global_index_pattern_management_all: {
kibana: [
{
feature: {
indexPatterns: ['all'],
},
spaces: ['*'],
},
],
},

global_devtools_read: {
kibana: [
{
Expand Down