[Security Solution][Cypress] Move sourcerer tests under threat hunting investigations (#184875)

## Summary

Threat hunting investigations is taking over sourcerer code.
Codeownership was updated previously. This PR moves over the cypress
tests.
This commit is contained in:
Yara Tercero 2024-06-11 10:09:36 -07:00 committed by GitHub
parent e35800d029
commit d452a6228b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 35 deletions

View file

@ -5,23 +5,23 @@
* 2.0.
*/
import { login } from '../../../../tasks/login';
import { visitWithTimeRange } from '../../../../tasks/navigation';
import { openTimelineUsingToggle } from '../../../../tasks/security_main';
import { openTimelineFieldsBrowser, populateTimeline } from '../../../../tasks/timeline';
import { login } from '../../../tasks/login';
import { visitWithTimeRange } from '../../../tasks/navigation';
import { openTimelineUsingToggle } from '../../../tasks/security_main';
import { openTimelineFieldsBrowser, populateTimeline } from '../../../tasks/timeline';
import { hostsUrl, ALERTS_URL } from '../../../../urls/navigation';
import { hostsUrl, ALERTS_URL } from '../../../urls/navigation';
import { createRule } from '../../../../tasks/api_calls/rules';
import { createRule } from '../../../tasks/api_calls/rules';
import { getNewRule } from '../../../../objects/rule';
import { refreshPage } from '../../../../tasks/security_header';
import { waitForAlertsToPopulate } from '../../../../tasks/create_new_rule';
import { createField } from '../../../../tasks/create_runtime_field';
import { openAlertsFieldBrowser } from '../../../../tasks/alerts';
import { GET_DATA_GRID_HEADER } from '../../../../screens/common/data_grid';
import { GET_TIMELINE_HEADER } from '../../../../screens/timeline';
import { deleteRuntimeField } from '../../../../tasks/api_calls/sourcerer';
import { getNewRule } from '../../../objects/rule';
import { refreshPage } from '../../../tasks/security_header';
import { waitForAlertsToPopulate } from '../../../tasks/create_new_rule';
import { createField } from '../../../tasks/create_runtime_field';
import { openAlertsFieldBrowser } from '../../../tasks/alerts';
import { GET_DATA_GRID_HEADER } from '../../../screens/common/data_grid';
import { GET_TIMELINE_HEADER } from '../../../screens/timeline';
import { deleteRuntimeField } from '../../../tasks/api_calls/sourcerer';
const alertRunTimeField = 'field.name.alert.page';
const timelineRuntimeField = 'field.name.timeline';

View file

@ -7,10 +7,10 @@
import { DEFAULT_INDEX_PATTERN } from '@kbn/security-solution-plugin/common/constants';
import { login } from '../../../../tasks/login';
import { visitWithTimeRange } from '../../../../tasks/navigation';
import { login } from '../../../tasks/login';
import { visitWithTimeRange } from '../../../tasks/navigation';
import { hostsUrl } from '../../../../urls/navigation';
import { hostsUrl } from '../../../urls/navigation';
import {
addIndexToDefault,
deselectSourcererOptions,
@ -25,9 +25,9 @@ import {
openSourcerer,
resetSourcerer,
saveSourcerer,
} from '../../../../tasks/sourcerer';
import { postDataView } from '../../../../tasks/api_calls/common';
import { SOURCERER } from '../../../../screens/sourcerer';
} from '../../../tasks/sourcerer';
import { postDataView } from '../../../tasks/api_calls/common';
import { SOURCERER } from '../../../screens/sourcerer';
const siemDataViewTitle = 'Security Default Data View';
const dataViews = ['auditbeat-*,fakebeat-*', 'auditbeat-*,*beat*,siem-read*,.kibana*,fakebeat-*'];

View file

@ -7,11 +7,11 @@
import { ROLES } from '@kbn/security-solution-plugin/common/test';
import { hostsUrl } from '../../../../urls/navigation';
import { postDataView } from '../../../../tasks/api_calls/common';
import { TOASTER } from '../../../../screens/configure_cases';
import { visit } from '../../../../tasks/navigation';
import { login } from '../../../../tasks/login';
import { hostsUrl } from '../../../urls/navigation';
import { postDataView } from '../../../tasks/api_calls/common';
import { TOASTER } from '../../../screens/configure_cases';
import { visit } from '../../../tasks/navigation';
import { login } from '../../../tasks/login';
const dataViews = ['auditbeat-*,fakebeat-*', 'auditbeat-*,*beat*,siem-read*,.kibana*,fakebeat-*'];

View file

@ -10,10 +10,10 @@ import {
DEFAULT_INDEX_PATTERN,
} from '@kbn/security-solution-plugin/common/constants';
import { login } from '../../../../tasks/login';
import { visitWithTimeRange } from '../../../../tasks/navigation';
import { login } from '../../../tasks/login';
import { visitWithTimeRange } from '../../../tasks/navigation';
import { TIMELINES_URL } from '../../../../urls/navigation';
import { TIMELINES_URL } from '../../../urls/navigation';
import {
clickAlertCheckbox,
deselectSourcererOptions,
@ -29,13 +29,13 @@ import {
refreshUntilAlertsIndexExists,
resetSourcerer,
saveSourcerer,
} from '../../../../tasks/sourcerer';
import { openTimelineUsingToggle } from '../../../../tasks/security_main';
import { waitForFleetSetup } from '../../../../tasks/fleet_integrations';
import { SOURCERER } from '../../../../screens/sourcerer';
import { createTimeline, deleteTimelines } from '../../../../tasks/api_calls/timelines';
import { getTimelineModifiedSourcerer } from '../../../../objects/timeline';
import { closeTimeline, openTimelineById } from '../../../../tasks/timeline';
} from '../../../tasks/sourcerer';
import { openTimelineUsingToggle } from '../../../tasks/security_main';
import { waitForFleetSetup } from '../../../tasks/fleet_integrations';
import { SOURCERER } from '../../../screens/sourcerer';
import { createTimeline, deleteTimelines } from '../../../tasks/api_calls/timelines';
import { getTimelineModifiedSourcerer } from '../../../objects/timeline';
import { closeTimeline, openTimelineById } from '../../../tasks/timeline';
const siemDataViewTitle = 'Security Default Data View';
const dataViews = ['logs-*', 'metrics-*', '.kibana-event-log-*'];