[Search] Unify search plugin step 1 (#95811)

Remove the defaultStrategy override
Move async search strategy to data
Move EQL search strategy to data
Move rest of common/search/session data (Moving whole search/session is blocked by security and taskManager)
This commit is contained in:
Anton Dosov 2021-04-21 14:23:49 +02:00 committed by GitHub
parent 7405a22cf3
commit bd4f461c70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 601 additions and 533 deletions

View file

@ -116,7 +116,7 @@ export default function ({ getService }: FtrProviderContext) {
});
});
it('should return 400 when index type is provided in OSS', async () => {
it('should return 400 when index type is provided in "es" strategy', async () => {
const resp = await supertest.post(`/internal/bsearch`).send({
batch: [
{
@ -130,6 +130,9 @@ export default function ({ getService }: FtrProviderContext) {
},
},
},
options: {
strategy: 'es',
},
},
],
});
@ -151,11 +154,14 @@ export default function ({ getService }: FtrProviderContext) {
after(async () => {
await esArchiver.unload('../../../functional/fixtures/es_archiver/logstash_functional');
});
it('should return 400 for Painless error', async () => {
it('should return 400 "search_phase_execution_exception" for Painless error in "es" strategy', async () => {
const resp = await supertest.post(`/internal/bsearch`).send({
batch: [
{
request: painlessErrReq,
options: {
strategy: 'es',
},
},
],
});