[8.14][Security Solutions][Endpoint] Update test dependencies after beats consolidation in 8.14 (#181265)

## Summary

As of 8.14 auditbeat, filebeat, heartbeat, metricbeat, osquerybeat, and
packetbeat have been combined into a single agentbeat. The test that
depended on filebeat earlier now uses this new beats filename.

closes elastic/kibana/issues/170370

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
This commit is contained in:
Ash 2024-04-22 11:52:09 +02:00 committed by GitHub
parent dd6483732d
commit 5b40e10120
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,8 @@ import { enableAllPolicyProtections } from '../../../tasks/endpoint_policy';
import { createEndpointHost } from '../../../tasks/create_endpoint_host';
import { deleteAllLoadedEndpointData } from '../../../tasks/delete_all_endpoint_data';
const AGENT_BEAT_FILE_PATH_SUFFIX = '/components/agentbeat';
describe('Response console', { tags: ['@ess', '@serverless'] }, () => {
beforeEach(() => {
login();
@ -80,7 +82,7 @@ describe('Response console', { tags: ['@ess', '@serverless'] }, () => {
});
cy.get('tbody > tr').should('have.length.greaterThan', 0);
cy.get('tbody > tr > td').should('contain', '/components/filebeat');
cy.get('tbody > tr > td').should('contain', AGENT_BEAT_FILE_PATH_SUFFIX);
});
});
@ -89,7 +91,7 @@ describe('Response console', { tags: ['@ess', '@serverless'] }, () => {
openResponseConsoleFromEndpointList();
// get running processes
getRunningProcesses('/components/filebeat').then((pid) => {
getRunningProcesses(AGENT_BEAT_FILE_PATH_SUFFIX).then((pid) => {
// kill the process using PID
inputConsoleCommand(`kill-process --pid ${pid}`);
submitCommand();
@ -102,7 +104,7 @@ describe('Response console', { tags: ['@ess', '@serverless'] }, () => {
openResponseConsoleFromEndpointList();
// get running processes
getRunningProcesses('/components/filebeat').then((pid) => {
getRunningProcesses(AGENT_BEAT_FILE_PATH_SUFFIX).then((pid) => {
// suspend the process using PID
inputConsoleCommand(`suspend-process --pid ${pid}`);
submitCommand();