Skip to content

Commit

Permalink
[Fleet] Set all keyword and text fields for `index.query.default_fiel…
Browse files Browse the repository at this point in the history
…d` index template setting (elastic#91791)

* Set all keyword and text fields for `index.query.default_field` setting

* Update tests and snapshots

* Fix test

* Add default field limit safeguard

* Add logging when beyond limit

* Update tests to mock app context (because I added logger usage)

* Update api integration test

* Rename consts
  • Loading branch information
jen-huang authored and kibanamachine committed Mar 4, 2021
1 parent 47524b7 commit 2c60dd6
Show file tree
Hide file tree
Showing 7 changed files with 744 additions and 611 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import {
elasticsearchServiceMock,
loggingSystemMock,
savedObjectsServiceMock,
} from 'src/core/server/mocks';

import { coreMock } from '../../../../src/core/server/mocks';
import { licensingMock } from '../../../plugins/licensing/server/mocks';

import { encryptedSavedObjectsMock } from '../../encrypted_saved_objects/server/mocks';
import { securityMock } from '../../security/server/mocks';

import type { FleetAppContext } from './plugin';
import type { PackagePolicyServiceInterface } from './services/package_policy';
import type { AgentPolicyServiceInterface, AgentService } from './services';
coreMock,
} from '../../../../../src/core/server/mocks';
import { licensingMock } from '../../../../plugins/licensing/server/mocks';
import { encryptedSavedObjectsMock } from '../../../encrypted_saved_objects/server/mocks';
import { securityMock } from '../../../security/server/mocks';
import type { PackagePolicyServiceInterface } from '../services/package_policy';
import type { AgentPolicyServiceInterface, AgentService } from '../services';
import type { FleetAppContext } from '../plugin';

export const createAppContextStartContractMock = (): FleetAppContext => {
return {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2c60dd6

Please sign in to comment.