Skip to content

Commit

Permalink
[Security Solution] update text for Isolation action submissions (ela…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog authored and kibanamachine committed Jul 19, 2021
1 parent 50d6106 commit c86b3a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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: 'submitted isolate request on host',
});

export const RELEASED_HOST = i18n.translate('xpack.cases.caseView.releasedHost', {
defaultMessage: 'released host',
defaultMessage: 'submitted release request 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('submitted isolate request on host host1');
});

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 request: Isolate host',
}
),
unisolatedAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.unisolated',
{
defaultMessage: 'released host',
defaultMessage: 'submitted request: Release host',
}
),
},
response: {
isolationSuccessful: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationSuccessful',
{
defaultMessage: 'host isolation successful',
defaultMessage: 'Host isolation request received by Endpoint',
}
),
isolationFailed: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationFailed',
{
defaultMessage: 'host isolation failed',
defaultMessage: 'Host isolation request received by Endpoint with errors',
}
),
unisolationSuccessful: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationSuccessful',
{
defaultMessage: 'host release successful',
defaultMessage: 'Release host request received by Endpoint',
}
),
unisolationFailed: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationFailed',
{
defaultMessage: 'host release failed',
defaultMessage: 'Release host request received by Endpoint with errors',
}
),
},
Expand Down

0 comments on commit c86b3a4

Please sign in to comment.