[Security Solution][Ingest Manager][Endpoint] Optional ingest manager (#71198)
This commit is contained in:
parent
66c531d903
commit
e1253ed047
|
@ -11,7 +11,6 @@
|
|||
"embeddable",
|
||||
"features",
|
||||
"home",
|
||||
"ingestManager",
|
||||
"taskManager",
|
||||
"inspector",
|
||||
"licensing",
|
||||
|
@ -21,6 +20,7 @@
|
|||
],
|
||||
"optionalPlugins": [
|
||||
"encryptedSavedObjects",
|
||||
"ingestManager",
|
||||
"ml",
|
||||
"newsfeed",
|
||||
"security",
|
||||
|
@ -33,6 +33,7 @@
|
|||
"requiredBundles": [
|
||||
"kibanaUtils",
|
||||
"esUiShared",
|
||||
"kibanaReact"
|
||||
"kibanaReact",
|
||||
"ingestManager"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -324,10 +324,12 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
|
|||
|
||||
public start(core: CoreStart, plugins: StartPlugins) {
|
||||
KibanaServices.init({ ...core, ...plugins, kibanaVersion: this.kibanaVersion });
|
||||
plugins.ingestManager.registerPackageConfigComponent(
|
||||
'endpoint',
|
||||
ConfigureEndpointPackageConfig
|
||||
);
|
||||
if (plugins.ingestManager) {
|
||||
plugins.ingestManager.registerPackageConfigComponent(
|
||||
'endpoint',
|
||||
ConfigureEndpointPackageConfig
|
||||
);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export interface StartPlugins {
|
|||
data: DataPublicPluginStart;
|
||||
embeddable: EmbeddableStart;
|
||||
inspector: InspectorStart;
|
||||
ingestManager: IngestManagerStart;
|
||||
ingestManager?: IngestManagerStart;
|
||||
newsfeed?: NewsfeedStart;
|
||||
triggers_actions_ui: TriggersActionsStart;
|
||||
uiActions: UiActionsStart;
|
||||
|
|
|
@ -8,14 +8,14 @@ import { httpServerMock } from '../../../../../src/core/server/mocks';
|
|||
import { EndpointAppContextService } from './endpoint_app_context_services';
|
||||
|
||||
describe('test endpoint app context services', () => {
|
||||
// it('should return undefined on getAgentService if dependencies are not enabled', async () => {
|
||||
// const endpointAppContextService = new EndpointAppContextService();
|
||||
// expect(endpointAppContextService.getAgentService()).toEqual(undefined);
|
||||
// });
|
||||
// it('should return undefined on getManifestManager if dependencies are not enabled', async () => {
|
||||
// const endpointAppContextService = new EndpointAppContextService();
|
||||
// expect(endpointAppContextService.getManifestManager()).toEqual(undefined);
|
||||
// });
|
||||
it('should return undefined on getAgentService if dependencies are not enabled', async () => {
|
||||
const endpointAppContextService = new EndpointAppContextService();
|
||||
expect(endpointAppContextService.getAgentService()).toEqual(undefined);
|
||||
});
|
||||
it('should return undefined on getManifestManager if dependencies are not enabled', async () => {
|
||||
const endpointAppContextService = new EndpointAppContextService();
|
||||
expect(endpointAppContextService.getManifestManager()).toEqual(undefined);
|
||||
});
|
||||
it('should throw error on getScopedSavedObjectsClient if start is not called', async () => {
|
||||
const endpointAppContextService = new EndpointAppContextService();
|
||||
expect(() =>
|
||||
|
|
Loading…
Reference in a new issue