diff --git a/packages/serverless/settings/security_project/index.ts b/packages/serverless/settings/security_project/index.ts index dbbf6e506eda8..0fd820640bb98 100644 --- a/packages/serverless/settings/security_project/index.ts +++ b/packages/serverless/settings/security_project/index.ts @@ -23,5 +23,4 @@ export const SECURITY_PROJECT_SETTINGS = [ settings.SECURITY_SOLUTION_NEWS_FEED_URL_ID, settings.SECURITY_SOLUTION_ENABLE_NEWS_FEED_ID, settings.SECURITY_SOLUTION_DEFAULT_ALERT_TAGS_KEY, - settings.SECURITY_SOLUTION_ENABLE_ASSET_CRITICALITY_SETTING, ]; diff --git a/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality/use_asset_criticality.test.ts b/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality/use_asset_criticality.test.ts index bd6a6aae0604b..d4671a5bc628a 100644 --- a/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality/use_asset_criticality.test.ts +++ b/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality/use_asset_criticality.test.ts @@ -60,15 +60,6 @@ describe('useAssetCriticality', () => { expect(mockFetchAssetCriticalityPrivileges).toHaveBeenCalled(); }); - - it('does not call privileges API when UI Settings is disabled', async () => { - mockUseHasSecurityCapability.mockReturnValue(true); - mockUseUiSettings.mockReturnValue([false]); - - await renderQuery(() => useAssetCriticalityPrivileges('test_entity_name'), 'isSuccess'); - - expect(mockFetchAssetCriticalityPrivileges).not.toHaveBeenCalled(); - }); }); describe('useAssetCriticalityData', () => { diff --git a/x-pack/plugins/security_solution/public/explore/hosts/components/hosts_table/index.test.tsx b/x-pack/plugins/security_solution/public/explore/hosts/components/hosts_table/index.test.tsx index 8d20fed91a66a..606bd77ebcc45 100644 --- a/x-pack/plugins/security_solution/public/explore/hosts/components/hosts_table/index.test.tsx +++ b/x-pack/plugins/security_solution/public/explore/hosts/components/hosts_table/index.test.tsx @@ -180,31 +180,6 @@ describe('Hosts Table', () => { expect(queryByTestId('tableHeaderCell_node.criticality_5')).toBeInTheDocument(); }); - test('it does not render "Asset Criticality" column when Asset Criticality is not enabled in Kibana settings', () => { - mockUseMlCapabilities.mockReturnValue({ isPlatinumOrTrialLicense: true }); - mockUseHasSecurityCapability.mockReturnValue(true); - mockUseUiSetting.mockReturnValue([false]); - - const { queryByTestId } = render( - - - - ); - - expect(queryByTestId('tableHeaderCell_node.criticality_5')).not.toBeInTheDocument(); - }); - describe('Sorting on Table', () => { let wrapper: ReturnType;