[8.14] [ES|QL] Unskip search tests and add version (#181114) (#181256)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[ES|QL] Unskip search tests and add version
(#181114)](https://github.com/elastic/kibana/pull/181114)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-04-21T16:46:05Z","message":"[ES|QL]
Unskip search tests and add version (#181114)\n\n- Closes
https://github.com/elastic/kibana/issues/181090\r\n- Closes
https://github.com/elastic/kibana/issues/181091\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b288ab4880958100287a1f7457af0d4693adf98f","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:DataDiscovery","backport:prev-minor","Feature:ES|QL","v8.15.0"],"title":"[ES|QL]
Unskip search tests and add
version","number":181114,"url":"https://github.com/elastic/kibana/pull/181114","mergeCommit":{"message":"[ES|QL]
Unskip search tests and add version (#181114)\n\n- Closes
https://github.com/elastic/kibana/issues/181090\r\n- Closes
https://github.com/elastic/kibana/issues/181091\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b288ab4880958100287a1f7457af0d4693adf98f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/181114","number":181114,"mergeCommit":{"message":"[ES|QL]
Unskip search tests and add version (#181114)\n\n- Closes
https://github.com/elastic/kibana/issues/181090\r\n- Closes
https://github.com/elastic/kibana/issues/181091\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b288ab4880958100287a1f7457af0d4693adf98f"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
This commit is contained in:
Kibana Machine 2024-04-21 14:24:18 -04:00 committed by GitHub
parent f100e0f5fd
commit adc946a202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View file

@ -8,6 +8,7 @@
import expect from '@kbn/expect';
import request from 'superagent';
import { ESQL_LATEST_VERSION } from '@kbn/esql-utils';
import { inflateResponse } from '@kbn/bfetch-plugin/public/streaming';
import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common';
import { BFETCH_ROUTE_VERSION_LATEST } from '@kbn/bfetch-plugin/common';
@ -402,8 +403,7 @@ export default function ({ getService }: FtrProviderContext) {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/181090
describe.skip('esql', () => {
describe('esql', () => {
it(`should return request meta`, async () => {
const resp = await supertest
.post(`/internal/bsearch`)
@ -414,6 +414,7 @@ export default function ({ getService }: FtrProviderContext) {
request: {
params: {
query: 'from .kibana | limit 1',
version: ESQL_LATEST_VERSION,
},
},
options: {
@ -442,6 +443,7 @@ export default function ({ getService }: FtrProviderContext) {
request: {
params: {
query: 'fro .kibana | limit 1',
version: ESQL_LATEST_VERSION,
},
},
options: {

View file

@ -8,6 +8,7 @@
import request from 'superagent';
import { inflateResponse } from '@kbn/bfetch-plugin/public/streaming';
import expect from '@kbn/expect';
import { ESQL_LATEST_VERSION } from '@kbn/esql-utils';
import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common';
import { BFETCH_ROUTE_VERSION_LATEST } from '@kbn/bfetch-plugin/common';
import type { FtrProviderContext } from '../../ftr_provider_context';
@ -24,8 +25,7 @@ function parseBfetchResponse(resp: request.Response, compressed: boolean = false
export default function ({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
// FLAKY: https://github.com/elastic/kibana/issues/181091
describe.skip('bsearch', () => {
describe('bsearch', () => {
describe('ES|QL', () => {
it(`should return getColumns response in expected shape`, async () => {
const resp = await supertest
@ -38,6 +38,7 @@ export default function ({ getService }: FtrProviderContext) {
request: {
params: {
query: 'from logstash-* | keep geo.coordinates | limit 0',
version: ESQL_LATEST_VERSION,
},
},
options: {
@ -73,6 +74,7 @@ export default function ({ getService }: FtrProviderContext) {
dropNullColumns: true,
query:
'from logstash-* | keep geo.coordinates, @timestamp | sort @timestamp | limit 1',
version: ESQL_LATEST_VERSION,
},
},
options: {

View file

@ -172,5 +172,6 @@
"@kbn/aiops-log-rate-analysis",
"@kbn/apm-data-view",
"@kbn/core-saved-objects-api-server",
"@kbn/esql-utils",
]
}