Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Security Solution] update text for Isolation action submissions (#105956) #106149

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all 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: '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