Skip to content

Commit 274c4da

Browse files
authored
Revert "Adding test user to maps tests under documents source folder (#77245)"
This reverts commit 719cda5.
1 parent 7f3ec3f commit 274c4da

File tree

4 files changed

+0
-57
lines changed

4 files changed

+0
-57
lines changed

x-pack/test/functional/apps/maps/documents_source/docvalue_fields.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@ export default function ({ getPageObjects, getService }) {
1010
const PageObjects = getPageObjects(['maps']);
1111
const inspector = getService('inspector');
1212
const testSubjects = getService('testSubjects');
13-
const security = getService('security');
1413

1514
describe('docvalue_fields', () => {
1615
before(async () => {
17-
await security.testUser.setRoles(['global_maps_read', 'test_logstash_reader'], false);
1816
await PageObjects.maps.loadSavedMap('document example');
1917
});
2018

21-
after(async () => {
22-
await security.testUser.restoreDefaults();
23-
});
24-
2519
async function getResponse() {
2620
await inspector.open();
2721
await inspector.openInspectorRequestsView();

x-pack/test/functional/apps/maps/documents_source/search_hits.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,12 @@ import expect from '@kbn/expect';
99
export default function ({ getPageObjects, getService }) {
1010
const PageObjects = getPageObjects(['maps']);
1111
const inspector = getService('inspector');
12-
const security = getService('security');
1312

1413
describe('search hits', () => {
1514
before(async () => {
16-
await security.testUser.setRoles(
17-
[
18-
'global_maps_all',
19-
'test_logstash_reader',
20-
'antimeridian_points_reader',
21-
'antimeridian_shapes_reader',
22-
],
23-
false
24-
);
2515
await PageObjects.maps.loadSavedMap('document example');
2616
});
2717

28-
after(async () => {
29-
await security.testUser.restoreDefaults();
30-
});
31-
3218
async function getRequestTimestamp() {
3319
await inspector.open();
3420
await inspector.openInspectorRequestsView();

x-pack/test/functional/apps/maps/documents_source/top_hits.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@ export default function ({ getPageObjects, getService }) {
1212
const PageObjects = getPageObjects(['maps', 'common']);
1313
const inspector = getService('inspector');
1414
const find = getService('find');
15-
const security = getService('security');
1615

1716
describe('geo top hits', () => {
1817
describe('split on string field', () => {
1918
before(async () => {
20-
await security.testUser.setRoles(['global_maps_all', 'test_logstash_reader'], false);
2119
await PageObjects.maps.loadSavedMap('document example top hits');
2220
});
2321

24-
after(async () => {
25-
await security.testUser.restoreDefaults();
26-
});
27-
2822
it('should not fetch any search hits', async () => {
2923
await inspector.open();
3024
await inspector.openInspectorRequestsView();

x-pack/test/functional/config.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,6 @@ export default async function ({ readConfigFile }) {
287287
],
288288
},
289289

290-
global_maps_read: {
291-
kibana: [
292-
{
293-
feature: {
294-
maps: ['read'],
295-
},
296-
spaces: ['*'],
297-
},
298-
],
299-
},
300-
301290
geoshape_data_reader: {
302291
elasticsearch: {
303292
indices: [
@@ -308,26 +297,6 @@ export default async function ({ readConfigFile }) {
308297
],
309298
},
310299
},
311-
antimeridian_points_reader: {
312-
elasticsearch: {
313-
indices: [
314-
{
315-
names: ['antimeridian_points*'],
316-
privileges: ['read', 'view_index_metadata'],
317-
},
318-
],
319-
},
320-
},
321-
antimeridian_shapes_reader: {
322-
elasticsearch: {
323-
indices: [
324-
{
325-
names: ['antimeridian_shapes*'],
326-
privileges: ['read', 'view_index_metadata'],
327-
},
328-
],
329-
},
330-
},
331300

332301
meta_for_geoshape_data_reader: {
333302
elasticsearch: {

0 commit comments

Comments
 (0)