Revert "[Cypress] Hardcode fleet server 8.13.0 version in tests (#180… (#181341)

This commit is contained in:
Tomasz Ciecierski 2024-04-25 08:42:58 +02:00 committed by GitHub
parent b3f7c5cf0d
commit 63a56dbabb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -343,8 +343,6 @@ ${JSON.stringify(
fleetServer = await startFleetServer({
kbnClient,
// TODO TC: https://github.com/elastic/kibana/pull/180879 - there was an issue with 8.14.0, this should be removed when it's fixed
version: '8.13.0-SNAPSHOT',
logger: log,
port:
fleetServerPort ?? config.has('servers.fleetserver.port')

View file

@ -12,6 +12,7 @@ import {
startFleetServer,
} from '@kbn/security-solution-plugin/scripts/endpoint/common/fleet_server/fleet_server_services';
import { Manager } from './resource_manager';
import { getLatestAvailableAgentVersion } from './utils';
export class FleetManager extends Manager {
private fleetServer: StartedFleetServer | undefined = undefined;
@ -25,8 +26,7 @@ export class FleetManager extends Manager {
}
public async setup(): Promise<void> {
// TODO TC: https://github.com/elastic/kibana/pull/180879 - there was an issue with 8.14.0, this should be removed when it's fixed
const version = '8.13.0-SNAPSHOT';
const version = await getLatestAvailableAgentVersion(this.kbnClient);
this.fleetServer = await startFleetServer({
kbnClient: this.kbnClient,
logger: this.log,