Skip to content

Commit

Permalink
[FTR] Add serverless ES project controller settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Sep 26, 2023
1 parent 329e845 commit 27e1450
Show file tree
Hide file tree
Showing 19 changed files with 79 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x-pack/test_serverless/api_integration/config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ export function createTestConfig(options: CreateTestConfigOptions) {
...services,
...options.services,
},
esTestCluster: {
...svlSharedConfig.get('esTestCluster'),
serverArgs: [
...svlSharedConfig.get('esTestCluster.serverArgs'),
...(options.esServerArgs ?? []),
],
},
kbnTestServer: {
...svlSharedConfig.get('kbnTestServer'),
serverArgs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ export default createTestConfig({
kbnServerArgs: ['--xpack.observability.unsafe.thresholdRule.enabled=true'],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml
esServerArgs: ['xpack.ml.dfa.enabled=false', 'xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ export default createTestConfig({
},
suiteTags: { exclude: ['skipSvlOblt'] },
services,

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml
esServerArgs: ['xpack.ml.dfa.enabled=false', 'xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default createTestConfig({
kbnServerArgs: [],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export default createTestConfig({
reportName: 'Serverless Search API Integration Tests',
},
suiteTags: { exclude: ['skipSvlSearch'] },

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default createTestConfig({
kbnServerArgs: [],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/security/config/elasticsearch.yml
esServerArgs: ['xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export default createTestConfig({
reportName: 'Serverless Security API Integration Tests',
},
suiteTags: { exclude: ['skipSvlSec'] },

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/security/config/elasticsearch.yml
esServerArgs: ['xpack.ml.nlp.enabled=false'],
});
7 changes: 7 additions & 0 deletions x-pack/test_serverless/functional/config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export function createTestConfig(options: CreateTestConfigOptions) {

pageObjects,
services,
esTestCluster: {
...svlSharedConfig.get('esTestCluster'),
serverArgs: [
...svlSharedConfig.get('esTestCluster.serverArgs'),
...(options.esServerArgs ?? []),
],
},
kbnTestServer: {
...svlSharedConfig.get('kbnTestServer'),
serverArgs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ export default createTestConfig({
resolve(REPO_ROOT, 'examples'),
resolve(REPO_ROOT, 'x-pack/examples'),
]),

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml
esServerArgs: ['xpack.ml.dfa.enabled=false', 'xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default createTestConfig({
kbnServerArgs: [],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml
esServerArgs: ['xpack.ml.dfa.enabled=false', 'xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export default createTestConfig({
reportName: 'Serverless Observability Functional Tests',
},
suiteTags: { exclude: ['skipSvlOblt'] },

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml
esServerArgs: ['xpack.ml.dfa.enabled=false', 'xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ export default createTestConfig({
resolve(REPO_ROOT, 'examples'),
resolve(REPO_ROOT, 'x-pack/examples'),
]),

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default createTestConfig({
kbnServerArgs: [],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ export default createTestConfig({
junit: {
reportName: 'Serverless Search Screenshot Creation',
},

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export default createTestConfig({
reportName: 'Serverless Search Functional Tests',
},
suiteTags: { exclude: ['skipSvlSearch'] },

// include settings from project controller
// https://github.com/elastic/project-controller/tree/main/internal/project/esproject/config
esServerArgs: ['xpack.ml.ad.enabled=false', 'xpack.ml.dfa.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ export default createTestConfig({
resolve(REPO_ROOT, 'examples'),
resolve(REPO_ROOT, 'x-pack/examples'),
]),

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/security/config/elasticsearch.yml
esServerArgs: ['xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ export default createTestConfig({
kbnServerArgs: [],
// load tests in the index file
testFiles: [require.resolve('./index.feature_flags.ts')],

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/security/config/elasticsearch.yml
esServerArgs: ['xpack.ml.nlp.enabled=false'],
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export default createTestConfig({
reportName: 'Serverless Security Functional Tests',
},
suiteTags: { exclude: ['skipSvlSec'] },

// include settings from project controller
// https://github.com/elastic/project-controller/blob/main/internal/project/security/config/elasticsearch.yml
esServerArgs: ['xpack.ml.nlp.enabled=false'],
});
1 change: 1 addition & 0 deletions x-pack/test_serverless/shared/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { InheritedServices } from '../../api_integration/services';

export interface CreateTestConfigOptions {
serverlessProject: 'es' | 'oblt' | 'security';
esServerArgs?: string[];
kbnServerArgs?: string[];
testFiles: string[];
junit: { reportName: string };
Expand Down

0 comments on commit 27e1450

Please sign in to comment.