Skip to content

Commit

Permalink
Fixing test license type
Browse files Browse the repository at this point in the history
  • Loading branch information
kc13greiner committed Nov 8, 2024
1 parent 7454e8a commit 08561e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kbn-test/src/es/test_es_cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,14 @@ export function createTestEsCluster<

const esArgs = assignArgs(defaultEsArgs, customEsArgs);

const testLicense: ArtifactLicense = getFips() === 1 ? 'trial' : license ? license : 'basic';

const config = {
version: esVersion,
installPath: Path.resolve(basePath, clusterName),
sourcePath: Path.resolve(REPO_ROOT, '../elasticsearch'),
license: testLicense,
password,
...(getFips() === 1 ? { license: 'trial' } : license ? { license } : { license: 'basic' }),
basePath,
esArgs,
resources: files,
Expand Down

0 comments on commit 08561e4

Please sign in to comment.