Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Aug 4, 2023
1 parent 48b947c commit 1e725fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { DataViewField, DataView } from '@kbn/data-views-plugin/common';
import { UseAssetDetailsStateProps } from '../../../hooks/use_asset_details_state';

export const assetDetailsState: UseAssetDetailsStateProps['state'] = {
node: {
asset: {
name: 'host1',
id: 'host1-macOS',
ip: '192.168.0.1',
Expand All @@ -29,7 +29,7 @@ export const assetDetailsState: UseAssetDetailsStateProps['state'] = {
showActionsColumn: true,
},
},
nodeType: 'host',
assetType: 'host',
dateRange: {
from: '2023-04-09T11:07:49Z',
to: '2023-04-09T11:23:49Z',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,35 @@ export const orderedFlyoutTabs: Tab[] = [
name: i18n.translate('xpack.infra.nodeDetails.tabs.overview.title', {
defaultMessage: 'Overview',
}),
'data-test-subj': 'hostsView-flyout-tabs-overview',
},
{
id: FlyoutTabIds.METADATA,
name: i18n.translate('xpack.infra.nodeDetails.tabs.metadata.title', {
defaultMessage: 'Metadata',
}),
'data-test-subj': 'hostsView-flyout-tabs-metadata',
},
{
id: FlyoutTabIds.PROCESSES,
name: i18n.translate('xpack.infra.metrics.nodeDetails.tabs.processes', {
defaultMessage: 'Processes',
}),
'data-test-subj': 'hostsView-flyout-tabs-processes',
},
{
id: FlyoutTabIds.LOGS,
name: i18n.translate('xpack.infra.nodeDetails.tabs.logs.title', {
defaultMessage: 'Logs',
}),
'data-test-subj': 'hostsView-flyout-tabs-logs',
},
{
id: FlyoutTabIds.ANOMALIES,
name: i18n.translate('xpack.infra.nodeDetails.tabs.anomalies', {
defaultMessage: 'Anomalies',
}),
'data-test-subj': 'hostsView-flyout-tabs-anomalies',
},
{
id: FlyoutTabIds.OSQUERY,
name: i18n.translate('xpack.infra.nodeDetails.tabs.osquery', {
defaultMessage: 'Osquery',
}),
'data-test-subj': 'hostsView-flyout-tabs-Osquery',
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export const createTelemetryClientMock = (): jest.Mocked<ITelemetryClient> => ({
reportHostFlyoutFilterRemoved: jest.fn(),
reportHostFlyoutFilterAdded: jest.fn(),
reportHostsViewTotalHostCountRetrieved: jest.fn(),
reportAssetDetailsFlyoutViewed: jest.fn(),
});
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('TelemetryService', () => {

expect(setupParams.analytics.reportEvent).toHaveBeenCalledTimes(1);
expect(setupParams.analytics.reportEvent).toHaveBeenCalledWith(
InfraTelemetryEventTypes.HOSTS_VIEW_QUERY_SUBMITTED,
InfraTelemetryEventTypes.ASSET_DETAILS_FLYOUT_VIEWED,
{
componentName: 'infraAssetDetailsFlyout',
assetType: 'host',
Expand Down

0 comments on commit 1e725fe

Please sign in to comment.