Skip to content

Commit

Permalink
Revert "[Cypress] Hardcode fleet server 8.13.0 version in tests (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsonpl authored and kpatticha committed Apr 26, 2024
1 parent df5c4f8 commit da09923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/osquery_cypress/fleet_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit da09923

Please sign in to comment.