mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Defend Workflows] Enable Endpoint Automated Actions feature flag (#159733)
This commit is contained in:
parent
31c51e3f84
commit
c37be07479
2 changed files with 15 additions and 1 deletions
|
@ -59,7 +59,7 @@ export const allowedExperimentalValues = Object.freeze({
|
|||
/**
|
||||
* Enables the automated endpoint response action in rule + alerts
|
||||
*/
|
||||
endpointResponseActionsEnabled: false,
|
||||
endpointResponseActionsEnabled: true,
|
||||
|
||||
/**
|
||||
* Enables the alert details page currently only accessible via the alert details flyout and alert table context menu
|
||||
|
|
|
@ -28,7 +28,9 @@ import { TimelineTabs } from '../../../../common/types/timeline';
|
|||
import { useInvestigationTimeEnrichment } from '../../containers/cti/event_enrichment';
|
||||
import { useGetUserCasesPermissions, useKibana } from '../../lib/kibana';
|
||||
import { defaultRowRenderers } from '../../../timelines/components/timeline/body/renderers';
|
||||
import { useIsExperimentalFeatureEnabled } from '../../hooks/use_experimental_features';
|
||||
|
||||
jest.mock('../../hooks/use_experimental_features');
|
||||
jest.mock('../../../timelines/components/timeline/body/renderers', () => {
|
||||
return {
|
||||
defaultRowRenderers: [
|
||||
|
@ -198,6 +200,18 @@ describe('EventDetails', () => {
|
|||
});
|
||||
|
||||
describe('osquery tab', () => {
|
||||
let featureFlags: { endpointResponseActionsEnabled: boolean; responseActionsEnabled: boolean };
|
||||
|
||||
beforeEach(() => {
|
||||
featureFlags = { endpointResponseActionsEnabled: false, responseActionsEnabled: true };
|
||||
|
||||
const useIsExperimentalFeatureEnabledMock = (feature: keyof typeof featureFlags) =>
|
||||
featureFlags[feature];
|
||||
|
||||
(useIsExperimentalFeatureEnabled as jest.Mock).mockImplementation(
|
||||
useIsExperimentalFeatureEnabledMock
|
||||
);
|
||||
});
|
||||
it('should not be rendered if not provided with specific raw data', () => {
|
||||
expect(alertsWrapper.find('[data-test-subj="osqueryViewTab"]').exists()).toEqual(false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue