[Maps] un-skip X-Pack API Integration Tests.x-pack/test/api_integration/apis/maps/get_grid_tile.js (#148346)

Fixes https://github.com/elastic/kibana/issues/148122

https://github.com/elastic/elasticsearch/pull/91956 added Geohex
aggregation on geo_shape field and also changed how resolutions are
mapped on vector tiles. 85264a33fffffff has resolution 5 and
84264a3ffffffff has resolution 4. The new resolution mappings are in
https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/vector-tile/src/main/java/org/elasticsearch/xpack/vectortile/rest/GridAggregation.java#L122.
Resolution mapping was changed to avoid hitting bucket limits which are
easier to hit with large shapes and hex binning on geo_shape.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2023-01-05 08:19:20 -05:00 committed by GitHub
parent 2e15fb5207
commit 0a0ea799ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,7 @@ function findFeature(layer, callbackFn) {
export default function ({ getService }) {
const supertest = getService('supertest');
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/148122
describe.skip('getGridTile', () => {
describe('getGridTile', () => {
const URL = `/api/maps/mvt/getGridTile/3/2/3.pbf\
?geometryFieldName=geo.coordinates\
&hasLabels=false\
@ -145,20 +144,20 @@ export default function ({ getService }) {
expect(gridFeature.id).to.be(undefined);
expect(gridFeature.properties).to.eql({
_count: 1,
_key: '85264a33fffffff',
_key: '84264a3ffffffff',
'avg_of_bytes.value': 9252,
});
// assert feature geometry is hex
expect(gridFeature.loadGeometry()).to.eql([
[
{ x: 102, y: 669 },
{ x: 96, y: 676 },
{ x: 86, y: 674 },
{ x: 83, y: 664 },
{ x: 111, y: 698 },
{ x: 89, y: 710 },
{ x: 67, y: 696 },
{ x: 67, y: 669 },
{ x: 89, y: 657 },
{ x: 99, y: 659 },
{ x: 102, y: 669 },
{ x: 112, y: 672 },
{ x: 111, y: 698 },
],
]);
});
@ -183,11 +182,11 @@ export default function ({ getService }) {
expect(labelFeature.id).to.be(undefined);
expect(labelFeature.properties).to.eql({
_count: 1,
_key: '85264a33fffffff',
_key: '84264a3ffffffff',
'avg_of_bytes.value': 9252,
_mvt_label_position: true,
});
expect(labelFeature.loadGeometry()).to.eql([[{ x: 93, y: 667 }]]);
expect(labelFeature.loadGeometry()).to.eql([[{ x: 89, y: 684 }]]);
});
it('should return vector tile with meta layer', async () => {