-
+
{!dataView ? null : loadingState === DataLoadingState.loaded && totalHits === 0 ? (
) : (
@@ -498,14 +450,12 @@ export const AllAssets = ({
showTimeCol={false}
settings={settings}
onFetchMoreRecords={loadMore}
- externalControlColumns={externalControlColumns}
+ rowAdditionalLeadingControls={externalControlColumns}
externalCustomRenderers={externalCustomRenderers}
externalAdditionalControls={externalAdditionalControls}
gridStyleOverride={gridStyle}
rowLineHeightOverride="24px"
dataGridDensityState={DataGridDensity.EXPANDED}
- showFullScreenButton
- // showKeyboardShortcuts
/>
)}
diff --git a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/sample_data.ts b/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/sample_data.ts
deleted file mode 100644
index 6037a7ebfb85d..0000000000000
--- a/x-pack/solutions/security/plugins/security_solution/public/asset_inventory/sample_data.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License
- * 2.0; you may not use this file except in compliance with the Elastic License
- * 2.0.
- */
-import { type DataTableRecord } from '@kbn/discover-utils/types';
-
-export const mockData = [
- {
- id: '1',
- raw: {},
- flattened: {
- 'asset.risk': 89,
- 'asset.name': 'kube-scheduler-cspm-control',
- 'asset.criticality': 'high_impact',
- 'asset.source': 'cloud-sec-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '2',
- raw: {},
- flattened: {
- 'asset.risk': 88,
- 'asset.name': 'elastic-agent-LK3r',
- 'asset.criticality': 'low_impact',
- 'asset.source': 'security-ci',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '3',
- raw: {},
- flattened: {
- 'asset.risk': 89,
- 'asset.name': 'app-server-1',
- 'asset.criticality': 'high_impact',
- 'asset.source': 'sa-testing',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '4',
- raw: {},
- flattened: {
- 'asset.risk': 87,
- 'asset.name': 'database-backup-control',
- 'asset.criticality': 'high_impact',
- 'asset.source': 'elastic-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '5',
- raw: {},
- flattened: {
- 'asset.risk': 69,
- 'asset.name': 'elastic-agent-XyZ3',
- 'asset.criticality': 'low_impact',
- 'asset.source': 'elastic-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '6',
- raw: {},
- flattened: {
- 'asset.risk': 65,
- 'asset.name': 'kube-controller-cspm-monitor',
- 'asset.criticality': 'unassigned_impact',
- 'asset.source': 'cloud-sec-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '7',
- raw: {},
- flattened: {
- 'asset.risk': 89,
- 'asset.name': 'storage-service-AWS-EU-1',
- 'asset.criticality': 'medium_impact',
- 'asset.source': 'cloud-sec-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '8',
- raw: {},
- flattened: {
- 'asset.risk': 19,
- 'asset.name': 'web-server-LB2',
- 'asset.criticality': 'low_impact',
- 'asset.source': 'cloud-sec-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
- {
- id: '9',
- raw: {},
- flattened: {
- 'asset.risk': 85,
- 'asset.name': 'DNS-controller-azure-sec',
- 'asset.criticality': 'unassigned_impact',
- 'asset.source': 'cloud-sec-dev',
- '@timestamp': '2025-01-01T00:00:00.000Z',
- },
- },
-] as DataTableRecord[];
diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/asset_inventory/asset_inventory_page.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/asset_inventory/asset_inventory_page.cy.ts
index 4ac47753e2d35..3247eb8cd7fec 100644
--- a/x-pack/test/security_solution_cypress/cypress/e2e/asset_inventory/asset_inventory_page.cy.ts
+++ b/x-pack/test/security_solution_cypress/cypress/e2e/asset_inventory/asset_inventory_page.cy.ts
@@ -13,7 +13,7 @@ import { setKibanaSetting } from '../../tasks/api_calls/kibana_advanced_settings
import { ASSET_INVENTORY_URL } from '../../urls/navigation';
const NO_PRIVILEGES_BOX = getDataTestSubjectSelector('noPrivilegesPage');
-const ALL_ASSETS_TITLE = getDataTestSubjectSelector('all-assets-title');
+const ALL_ASSETS_TITLE = getDataTestSubjectSelector('asset-inventory-test-subj-page-title');
const disableAssetInventory = () => {
setKibanaSetting(SECURITY_SOLUTION_ENABLE_ASSET_INVENTORY_SETTING, false);