[FIPS] Update fips test overrides (#215745)

Closes https://github.com/elastic/kibana/issues/215743

## Summary

Allow for undefined serverArgs when FIPS test configs are overridden.
This commit is contained in:
Sid 2025-03-25 09:06:52 +01:00 committed by GitHub
parent aede310812
commit bf5af0d011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,9 @@
// This will only apply overrides when running in FIPS mode
export function applyFipsOverrides(vars: any) {
vars.esTestCluster = { ...(vars.esTestCluster ?? {}) };
vars.esTestCluster.license = 'trial';
vars.esTestCluster.serverArgs = vars.esTestCluster.serverArgs ?? [];
const skipTags = vars.suiteTags?.exclude ?? [];
skipTags.push('skipFIPS');