[Security Solution] update text for Isolation action submissions (#105956)
This commit is contained in:
parent
75c573a368
commit
15285bf03b
|
@ -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', {
|
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', {
|
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 =>
|
export const OTHER_ENDPOINTS = (endpoints: number): string =>
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe('UserActionHostIsolationCommentEvent', () => {
|
||||||
it('renders with the correct action and hostname', async () => {
|
it('renders with the correct action and hostname', async () => {
|
||||||
const wrapper = mount(<HostIsolationCommentEvent {...defaultProps()} />);
|
const wrapper = mount(<HostIsolationCommentEvent {...defaultProps()} />);
|
||||||
expect(wrapper.find(`[data-test-subj="actions-link-e1"]`).first().exists()).toBeTruthy();
|
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 () => {
|
it('navigates to app on link click', async () => {
|
||||||
|
|
|
@ -54,13 +54,13 @@ export const ACTIVITY_LOG = {
|
||||||
isolatedAction: i18n.translate(
|
isolatedAction: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.isolated',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.isolated',
|
||||||
{
|
{
|
||||||
defaultMessage: 'isolated host',
|
defaultMessage: 'submitted request: Isolate host',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
unisolatedAction: i18n.translate(
|
unisolatedAction: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.unisolated',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.unisolated',
|
||||||
{
|
{
|
||||||
defaultMessage: 'released host',
|
defaultMessage: 'submitted request: Release host',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -68,25 +68,25 @@ export const ACTIVITY_LOG = {
|
||||||
isolationSuccessful: i18n.translate(
|
isolationSuccessful: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationSuccessful',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationSuccessful',
|
||||||
{
|
{
|
||||||
defaultMessage: 'host isolation successful',
|
defaultMessage: 'Host isolation request received by Endpoint',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
isolationFailed: i18n.translate(
|
isolationFailed: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationFailed',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.isolationFailed',
|
||||||
{
|
{
|
||||||
defaultMessage: 'host isolation failed',
|
defaultMessage: 'Host isolation request received by Endpoint with errors',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
unisolationSuccessful: i18n.translate(
|
unisolationSuccessful: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationSuccessful',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationSuccessful',
|
||||||
{
|
{
|
||||||
defaultMessage: 'host release successful',
|
defaultMessage: 'Release host request received by Endpoint',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
unisolationFailed: i18n.translate(
|
unisolationFailed: i18n.translate(
|
||||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationFailed',
|
'xpack.securitySolution.endpointDetails.activityLog.logEntry.response.unisolationFailed',
|
||||||
{
|
{
|
||||||
defaultMessage: 'host release failed',
|
defaultMessage: 'Release host request received by Endpoint with errors',
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue