diff --git a/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts index 11db74b6b17f5..b65a13b5b9be9 100644 --- a/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts @@ -24,8 +24,13 @@ interface CreateTestConfigOptions { tier?: 'oblt_logs_essentials'; } -// include settings from elasticsearch controller +// These args replicate the MKI setup from the elasticsearch controller: // https://github.com/elastic/elasticsearch-controller/blob/main/helm/values.yaml +// +// ⚠️ Tests targeting these configs run against MKI. Adding a server arg here may allow +// tests to pass on Kibana CI but will cause failures on MKI if it is not yet supported there. +// If your test needs a feature flag, create a config under feature_flag_configs/ using +// createServerlessFeatureFlagTestConfig from feature_flag.serverless.config.base.ts. const esServerArgsFromController = { es: [], oblt: ['xpack.apm_data.enabled=true'], @@ -33,8 +38,13 @@ const esServerArgsFromController = { chat: [], }; -// include settings from kibana controller +// These args replicate the MKI setup from the kibana controller: // https://github.com/elastic/kibana-controller/blob/main/internal/controllers/kibana/config/config_settings.go +// +// ⚠️ Tests targeting these configs run against MKI. Adding a server arg here may allow +// tests to pass on Kibana CI but will cause failures on MKI if it is not yet supported there. +// If your test needs a feature flag, create a config under feature_flag_configs/ using +// createServerlessFeatureFlagTestConfig from feature_flag.serverless.config.base.ts. const kbnServerArgsFromController = { es: [ // useful for testing (also enabled in MKI QA) @@ -59,8 +69,10 @@ export function createServerlessTestConfig => { if (options.esServerArgs || options.kbnServerArgs) { throw new Error( - `FTR doesn't provision custom ES/Kibana server arguments into the serverless project on MKI. - It may lead to unexpected test failures on Cloud. Please contact #appex-qa.` + `Deployment-agnostic configs run unchanged on MKI. Custom ES/Kibana server args passed here + won't be set on MKI and will cause unexpected test failures on Cloud. + If your test needs a feature flag, create a config under feature_flag_configs/ using + createServerlessFeatureFlagTestConfig from feature_flag.serverless.config.base.ts.` ); } diff --git a/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts index 14a51b6751fee..827ba2418d3ae 100644 --- a/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts @@ -44,8 +44,10 @@ export function createStatefulTestConfig { if (options.esServerArgs || options.kbnServerArgs) { throw new Error( - `FTR doesn't provision custom ES/Kibana server arguments into the ESS deployment. - It may lead to unexpected test failures on Cloud. Please contact #appex-qa.` + `Deployment-agnostic configs run unchanged on ECH (Elastic Cloud). Custom ES/Kibana server args passed here + won't be set on ECH and will cause unexpected test failures. + If your test needs a feature flag, create a config under feature_flag_configs/ using + createStatefulFeatureFlagTestConfig from feature_flag.stateful.config.base.ts.` ); } @@ -94,6 +96,8 @@ export function createStatefulTestConfig