Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export const UNKNOWN_RULE = i18n.translate('xpack.cases.caseView.unknownRule.lab
});

export const ISOLATED_HOST = i18n.translate('xpack.cases.caseView.isolatedHost', {
defaultMessage: 'isolated host',
defaultMessage: 'isolate submitted on host',
});

export const RELEASED_HOST = i18n.translate('xpack.cases.caseView.releasedHost', {
defaultMessage: 'released host',
defaultMessage: 'release submitted on host',
});

export const OTHER_ENDPOINTS = (endpoints: number): string =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('UserActionHostIsolationCommentEvent', () => {
it('renders with the correct action and hostname', async () => {
const wrapper = mount(<HostIsolationCommentEvent {...defaultProps()} />);
expect(wrapper.find(`[data-test-subj="actions-link-e1"]`).first().exists()).toBeTruthy();
expect(wrapper.text()).toBe('isolated host host1');
expect(wrapper.text()).toBe('isolate submitted on host host1');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Using ISOLATED_HOST variable would be better to avoid change texts in tests.

});

it('navigates to app on link click', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,39 +54,39 @@ export const ACTIVITY_LOG = {
isolatedAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.isolated',
{
defaultMessage: 'isolated host',
defaultMessage: 'submitted isolate host',
}
),
unisolatedAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.unisolated',
{
defaultMessage: 'released host',
defaultMessage: 'submitted release host',
}
),
},
response: {
isolationSuccessful: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationSuccessful',
{
defaultMessage: 'host isolation successful',
defaultMessage: 'host isolation acknowledged',
}
),
isolationFailed: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationFailed',
{
defaultMessage: 'host isolation failed',
defaultMessage: 'host isolation acknowledged with errors',
}
),
unisolationSuccessful: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationSuccessful',
{
defaultMessage: 'host release successful',
defaultMessage: 'host release acknowledged',
}
),
unisolationFailed: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationFailed',
{
defaultMessage: 'host release failed',
defaultMessage: 'host release acknowledged with errors',
}
),
},
Expand Down