diff --git a/.buildkite/ftr_base_serverless_configs.yml b/.buildkite/ftr_base_serverless_configs.yml index 50393bb00f794..7e036096910f1 100644 --- a/.buildkite/ftr_base_serverless_configs.yml +++ b/.buildkite/ftr_base_serverless_configs.yml @@ -2,9 +2,16 @@ disabled: # Base config files, only necessary to inform config finding script # Serverless deployment-agnostic default config for api-integration tests - - x-pack/test/api_integration/deployment_agnostic/default_configs/serverless.config.base.ts - - x-pack/test/api_integration/deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts + - x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts + - x-pack/platform/test/api_integration_deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts # Serverless base config files - x-pack/test_serverless/api_integration/config.base.ts - x-pack/test_serverless/functional/config.base.ts - x-pack/test_serverless/shared/config.base.ts + +enabled: + # Serverless deployment-agnostic configs to run platform api-integration tests + - x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.serverless.config.ts + - x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.serverless.config.ts + - x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.serverless.config.ts + - x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts diff --git a/.buildkite/ftr_oblt_serverless_configs.yml b/.buildkite/ftr_oblt_serverless_configs.yml index 1d17ebbd3cec8..7f329cfb2e594 100644 --- a/.buildkite/ftr_oblt_serverless_configs.yml +++ b/.buildkite/ftr_oblt_serverless_configs.yml @@ -41,7 +41,6 @@ enabled: - x-pack/test_serverless/functional/test_suites/observability/config.telemetry.ts # serverless config files that run deployment-agnostic tests - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts - - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts - x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts diff --git a/.buildkite/ftr_platform_stateful_configs.yml b/.buildkite/ftr_platform_stateful_configs.yml index e1cabf919fef7..59a7a4600d5a8 100644 --- a/.buildkite/ftr_platform_stateful_configs.yml +++ b/.buildkite/ftr_platform_stateful_configs.yml @@ -1,9 +1,9 @@ disabled: # Stateful base config for deployment-agnostic tests + - x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts + - x-pack/platform/test/api_integration_deployment_agnostic/default_configs/feature_flag.stateful.config.base.ts - x-pack/test/api_integration/deployment_agnostic/default_configs/stateful.config.base.ts - x-pack/test/api_integration/deployment_agnostic/default_configs/feature_flag.stateful.config.base.ts - - x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/serverless.config.base.ts - - x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/stateful.config.base.ts # Base config files, only necessary to inform config finding script - src/platform/test/functional/config.base.js @@ -363,8 +363,6 @@ enabled: - x-pack/performance/journeys_e2e/apm_service_inventory.ts - x-pack/performance/journeys_e2e/infra_hosts_view.ts - x-pack/test/custom_branding/config.ts - # stateful config files that run deployment-agnostic tests - - x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts # configs migrated to the new Kibana architecture - x-pack/platform/test/api_integration/apis/aiops/config.ts - x-pack/platform/test/api_integration/apis/cloud/config.ts @@ -410,3 +408,5 @@ enabled: - x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts - x-pack/platform/test/saved_object_api_integration/low-level/config.ts - x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts + # stateful config files that run deployment-agnostic tests + - x-pack/platform/test/api_integration_deployment_agnostic/configs/stateful/platform.stateful.config.ts diff --git a/.buildkite/ftr_search_serverless_configs.yml b/.buildkite/ftr_search_serverless_configs.yml index 2ac1b5e1a0033..4b8fc6967c3f8 100644 --- a/.buildkite/ftr_search_serverless_configs.yml +++ b/.buildkite/ftr_search_serverless_configs.yml @@ -25,5 +25,3 @@ enabled: - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group10.ts - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group11.ts - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group12.ts - # serverless config files that run deployment-agnostic tests - - x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.serverless.config.ts diff --git a/.buildkite/ftr_security_serverless_configs.yml b/.buildkite/ftr_security_serverless_configs.yml index 73116ced22b01..b181aa5898ddf 100644 --- a/.buildkite/ftr_security_serverless_configs.yml +++ b/.buildkite/ftr_security_serverless_configs.yml @@ -131,6 +131,5 @@ enabled: - x-pack/test/security_solution_api_integration/test_suites/ai4dsoc/cases/search_ai_lake_tier/configs/serverless.config.ts - x-pack/test/security_solution_api_integration/test_suites/ai4dsoc/nlp_cleanup_task/search_ai_lake_tier/configs/serverless.config.ts # serverless config files that run deployment-agnostic tests - - x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.serverless.config.ts - x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.config.ts - x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.copy_to_space.config.ts diff --git a/.buildkite/pipelines/es_serverless/verify_es_serverless_image.yml b/.buildkite/pipelines/es_serverless/verify_es_serverless_image.yml index 29ad5901ec014..b8723371f2105 100644 --- a/.buildkite/pipelines/es_serverless/verify_es_serverless_image.yml +++ b/.buildkite/pipelines/es_serverless/verify_es_serverless_image.yml @@ -54,7 +54,7 @@ steps: env: FTR_CONFIGS_SCRIPT: "TEST_ES_SERVERLESS_IMAGE=$ES_SERVERLESS_IMAGE .buildkite/scripts/steps/test/ftr_configs.sh" JEST_INTEGRATION_SCRIPT: "TEST_ES_SERVERLESS_IMAGE=$ES_SERVERLESS_IMAGE .buildkite/scripts/steps/test/jest_integration.sh" - FTR_CONFIG_PATTERNS: "**/test_serverless/**,**/test/security_solution_api_integration/**/serverless.config.ts,x-pack/test/api_integration/deployment_agnostic/configs/serverless/**" + FTR_CONFIG_PATTERNS: "**/test_serverless/**,**/test/security_solution_api_integration/**/serverless.config.ts,x-pack/test/api_integration/deployment_agnostic/configs/serverless/**,x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/**" FTR_EXTRA_ARGS: "$FTR_EXTRA_ARGS" LIMIT_CONFIG_TYPE: "functional,integration" retry: diff --git a/.eslintrc.js b/.eslintrc.js index c85bb49aae76b..16fba02ff6b73 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -776,7 +776,8 @@ module.exports = { 'x-pack/test/apm_api_integration/**/*.ts', 'x-pack/test/functional/apps/**/*.js', 'x-pack/solutions/observability/plugins/apm/**/*.js', - 'x-pack/platform/test/*/{tests,test_suites,apis,apps,deployment_agnostic}/**/*', + 'x-pack/platform/test/*/{tests,test_suites,apis,apps}/**/*', + 'x-pack/platform/test/*api_integration*/**/*', 'x-pack/platform/test/*/*config.*ts', 'x-pack/solutions/*/test/**/{tests,test_suites,apis,apps,deployment_agnostic,fixtures}/**/*', 'x-pack/solutions/*/test/**/*config.*ts', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 00c6e61d502b4..5ae1befa452f5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1349,6 +1349,8 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/test_serverless/api_integration/test_suites/observability/config.logs_essentials.ts @elastic/observability-ui @elastic/appex-qa /x-pack/test_serverless/api_integration/test_suites/observability/index.logs_essentials.ts @elastic/observability-ui /x-pack/test_serverless/api_integration/test_suites/observability/logs_essentials_only @elastic/observability-ui +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.index.ts @elastic/observability-ui +/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts @elastic/observability-ui ### Observability Plugins @@ -1359,6 +1361,15 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/test/observability_ai_assistant_functional @elastic/obs-ai-assistant /x-pack/test/functional/es_archives/observability/ai_assistant @elastic/obs-ai-assistant /x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.index.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.index.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.stateful.config.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.index.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.serverless.config.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.index.ts @elastic/obs-ai-assistant +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.stateful.config.ts @elastic/obs-ai-assistant + # Infra Obs ## This plugin mostly contains the codebase for the infra services, but also includes some code for the Logs UI app. ## To keep @elastic/obs-ux-logs-team as codeowner of the plugin manifest without requiring a review for all the other code changes @@ -1371,7 +1382,15 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions ## infra/{common,docs,public,server}/{sub-folders}/ -> @elastic/obs-ux-infra_services-team # obs-ux-infra_services-team /x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/ @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.index.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.index.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts @elastic/obs-ux-infra_services-team /x-pack/test/api_integration/deployment_agnostic/apis/observability/infra/ @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.index.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.index.ts @elastic/obs-ux-infra_services-team +/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts @elastic/obs-ux-infra_services-team /x-pack/test/functional/page_objects/asset_details.ts @elastic/obs-ux-infra_services-team # Assigned per https://github.com/elastic/kibana/pull/200157/files/c83fae62151fe634342c498aca69b686b739fe45#r1842202022 /x-pack/test/functional/page_objects/infra_* @elastic/obs-ux-infra_services-team /x-pack/test/functional/es_archives/infra @elastic/obs-ux-infra_services-team @@ -1467,6 +1486,12 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions /x-pack/test/api_integration/deployment_agnostic/services/alerting_api @elastic/obs-ux-management-team /x-pack/test/api_integration/deployment_agnostic/services/slo_api @elastic/obs-ux-management-team /x-pack/test/api_integration/deployment_agnostic/apis/observability/synthetics/ @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.index.ts @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.synthetics.index.ts @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.synthetics.serverless.config.ts @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.synthetics.index.ts @elastic/obs-ux-management-team +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.synthetics.stateful.config.ts @elastic/obs-ux-management-team /x-pack/test/api_integration/deployment_agnostic/services/synthetics_monitors @elastic/obs-ux-management-team /x-pack/test/api_integration/deployment_agnostic/services/synthetics_private_location @elastic/obs-ux-management-team /x-pack/test/api_integration/deployment_agnostic/apis/observability/incident_management/ @elastic/obs-ux-management-team @@ -1575,6 +1600,8 @@ x-pack/solutions/observability/plugins/observability/server/lib/esql_extensions # Streams /x-pack/test/api_integration/deployment_agnostic/apis/observability/streams @elastic/streams-program-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.index.ts @elastic/streams-program-team +/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts @elastic/streams-program-team /x-pack/test/api_integration/fixtures/kbn_archiver/streams @elastic/streams-program-team ### END Observability Plugins @@ -1868,7 +1895,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /src/platform/packages/shared/kbn-es/src/stateful_resources/roles.yml @elastic/appex-qa /x-pack/test/api_integration/deployment_agnostic/ftr_provider_context.d.ts @elastic/appex-qa /x-pack/test/api_integration/deployment_agnostic/README.md @elastic/appex-qa -/x-pack/test/api_integration/deployment_agnostic/*configs/ @elastic/appex-qa +/x-pack/platform/test/api_integration_deployment_agnostic/*configs/ @elastic/appex-qa /x-pack/test/api_integration/deployment_agnostic/services/ @elastic/appex-qa /x-pack/platform/test/api_integration_deployment_agnostic/ @elastic/appex-qa /x-pack/platform/test/kibana.jsonc @elastic/appex-qa @@ -1890,6 +1917,10 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/test/apm_api_integration @elastic/appex-qa # temporarily due to SKA tests relocation /x-pack/test/common/utils/observability @elastic/appex-qa # temporarily due to SKA tests relocation /x-pack/test/common/utils/uptime @elastic/appex-qa # temporarily due to SKA tests relocation +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.index.ts @elastic/appex-qa # temporarily due to SKA tests relocation +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.serverless.config.ts @elastic/appex-qa # temporarily due to SKA tests relocation +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.index.ts @elastic/appex-qa # temporarily due to SKA tests relocation +/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.stateful.config.ts @elastic/appex-qa # temporarily due to SKA tests relocation /x-pack/platform/test/serverless @elastic/appex-qa # Core @@ -1975,8 +2006,8 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security /x-pack/platform/test/api_integration/apis/status @elastic/kibana-core /x-pack/platform/test/api_integration/apis/stats @elastic/kibana-core /x-pack/platform/test/api_integration/apis/kibana/stats @elastic/kibana-core -/x-pack/test/api_integration/deployment_agnostic/apis/core/ @elastic/kibana-core -/x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/ @elastic/kibana-core +/x-pack/platform/test/api_integration_deployment_agnostic/apis/core/ @elastic/kibana-core +/x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/ @elastic/kibana-core /x-pack/test_serverless/functional/test_suites/security/config.saved_objects_management.ts @elastic/kibana-core /config/ @elastic/kibana-core /config/serverless.yml @elastic/kibana-core @elastic/kibana-security @@ -2255,7 +2286,7 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se /src/platform/test/functional/apps/saved_objects_management @elastic/kibana-management /src/platform/test/functional/apps/console/*.ts @elastic/kibana-management /src/platform/test/api_integration/apis/console/*.ts @elastic/kibana-management -/x-pack/test/api_integration/deployment_agnostic/apis/console/ @elastic/kibana-management +/x-pack/platform/test/api_integration_deployment_agnostic/apis/console/ @elastic/kibana-management /src/platform/test/accessibility/apps/management.ts @elastic/kibana-management /src/platform/test/accessibility/apps/console.ts @elastic/kibana-management /x-pack/test/api_integration/services/index_management.ts @elastic/kibana-management @@ -2282,8 +2313,8 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se /x-pack/test_serverless/functional/test_suites/common/dev_tools/ @elastic/kibana-management /x-pack/test_serverless/**/test_suites/common/grok_debugger/ @elastic/kibana-management /x-pack/platform/test/api_integration/apis/management/ @elastic/kibana-management -/x-pack/test/api_integration/deployment_agnostic/apis/management/ @elastic/kibana-management -/x-pack/test/api_integration/deployment_agnostic/apis/painless_lab/ @elastic/kibana-management +/x-pack/platform/test/api_integration_deployment_agnostic/apis/management/ @elastic/kibana-management +/x-pack/platform/test/api_integration_deployment_agnostic/apis/painless_lab/ @elastic/kibana-management /x-pack/test/functional/apps/rollup_job/ @elastic/kibana-management /x-pack/platform/test/api_integration/apis/grok_debugger @elastic/kibana-management /x-pack/test/accessibility/apps/group1/advanced_settings.ts @elastic/kibana-management diff --git a/x-pack/platform/test/alerting_api_integration/basic/config.ts b/x-pack/platform/test/alerting_api_integration/basic/config.ts index e986c42ebbe14..9f2374f7d1bfe 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/config.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('basic', { disabledPlugins: [], license: 'basic', diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/cases_webhook.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/cases_webhook.ts index 2a504ab3f3e57..5214ab71389ac 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/cases_webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/cases_webhook.ts @@ -11,7 +11,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function casesWebhookTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/email.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/email.ts index d5c15ef6a48c3..d4c3d3d7f1db9 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/email.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/email.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function emailTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/es_index.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/es_index.ts index 3250c2e771ca6..e41a69ea36dbb 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/es_index.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/es_index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function indexTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/jira.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/jira.ts index 826753add4d30..c2328cc64fdcd 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/jira.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/jira.ts @@ -11,7 +11,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function jiraTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/pagerduty.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/pagerduty.ts index 6dea2a2461715..4af44176843f6 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/pagerduty.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/pagerduty.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function pagerdutyTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/resilient.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/resilient.ts index a28d4eee8c8d0..ce3a74e6f1866 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/resilient.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/resilient.ts @@ -11,7 +11,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function resilientTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/server_log.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/server_log.ts index bfda207df521f..1cfebd72fa25d 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/server_log.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/server_log.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function serverLogTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/servicenow.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/servicenow.ts index 067243f103ccc..fd0b14f5f8e06 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/servicenow.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/servicenow.ts @@ -11,7 +11,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function servicenowTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/slack.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/slack.ts index 0624acb999c5b..95977047704f5 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/slack.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/slack.ts @@ -10,7 +10,6 @@ import getPort from 'get-port'; import { getSlackServer } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function slackTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/swimlane.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/swimlane.ts index 59c44c954c214..7a061f1958d86 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/swimlane.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/swimlane.ts @@ -11,7 +11,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function swimlaneTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/webhook.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/webhook.ts index 7b280c40a38c2..5e5b8577917ca 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/connector_types/webhook.ts @@ -10,7 +10,6 @@ import getPort from 'get-port'; import { getWebhookServer } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function webhookTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/index.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/index.ts index 937a4121b39a0..ba92441da34ba 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/actions/index.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/actions/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function connectorsTests({ loadTestFile }: FtrProviderContext) { describe('Connectors', () => { loadTestFile(require.resolve('./connector_types/cases_webhook')); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/basic_noop_alert_type.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/basic_noop_alert_type.ts index 1c810c315a720..e7d240bbfb8a9 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/basic_noop_alert_type.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/basic_noop_alert_type.ts @@ -8,7 +8,6 @@ import { getTestRuleData } from '../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function basicRuleTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/enabled_rule_types.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/enabled_rule_types.ts index 171ad05431f19..89d0a9653657d 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/enabled_rule_types.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/enabled_rule_types.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function enabledRuleTypesTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/gold_noop_alert_type.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/gold_noop_alert_type.ts index d378761ad23a6..7720f5fea1c53 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/gold_noop_alert_type.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/gold_noop_alert_type.ts @@ -8,7 +8,6 @@ import { getTestRuleData } from '../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function emailTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/index.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/index.ts index 1addb415eef52..89bc7cfd06851 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/index.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/alerts/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('Alerts', () => { loadTestFile(require.resolve('./gold_noop_alert_type')); diff --git a/x-pack/platform/test/alerting_api_integration/basic/tests/index.ts b/x-pack/platform/test/alerting_api_integration/basic/tests/index.ts index a09dfff64e4c7..c7b030f3187b3 100644 --- a/x-pack/platform/test/alerting_api_integration/basic/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/basic/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile, getService, diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/config.ts index f999da061b90b..3c2eb97136fca 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts index 965bbe1c052e7..30d5a99e041b4 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts @@ -25,7 +25,6 @@ import { } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function apiKeyBackfillTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete.ts index aefae4d197929..061e68369a754 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete.ts @@ -14,7 +14,6 @@ import type { TaskManagerDoc } from '../../../../../common/lib'; import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function deleteBackfillTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete_rule.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete_rule.ts index 6b6530e6b3d96..93e919b780c70 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete_rule.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete_rule.ts @@ -16,7 +16,6 @@ import type { TaskManagerDoc } from '../../../../../common/lib'; import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function deleteRuleForBackfillTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/find.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/find.ts index 57c9bee5b5aa8..0e5653b0edc7e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/find.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/find.ts @@ -12,7 +12,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function findBackfillTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/get.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/get.ts index 5d68a8f45d69e..d5ad9d05cd660 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/get.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/get.ts @@ -12,7 +12,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getBackfillTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/index.ts index 50f8f196af047..172a3f93ed65e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function backfillTests({ loadTestFile }: FtrProviderContext) { describe('backfill rule runs', () => { loadTestFile(require.resolve('./api_key')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/schedule.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/schedule.ts index 06b6b2877a56f..d07080140bd4d 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/schedule.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/schedule.ts @@ -18,7 +18,6 @@ import { checkAAD, getTestRuleData, getUrlPrefix, ObjectRemover } from '../../.. import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { TEST_ACTIONS_INDEX, getScheduledTask } from './test_utils'; -// eslint-disable-next-line import/no-default-export export default function scheduleBackfillTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find.ts index 7344b50970212..e53eb23ce1403 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find.ts @@ -12,7 +12,6 @@ import { SuperuserAtSpace1, UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createFindTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find_internal.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find_internal.ts index 089f637ea4d9b..9505996666a11 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/find_internal.ts @@ -23,7 +23,6 @@ import { import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createFindTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/fill_gap_by_id.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/fill_gap_by_id.ts index 3045842786285..4f678929d83c9 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/fill_gap_by_id.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/fill_gap_by_id.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function fillGapByIdTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/find.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/find.ts index f04c82c73260b..2832b39b726dc 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/find.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/find.ts @@ -14,7 +14,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function findGapsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_gaps_summary_by_rule_ids.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_gaps_summary_by_rule_ids.ts index 39e79dd755e33..b082c65c1dced 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_gaps_summary_by_rule_ids.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_gaps_summary_by_rule_ids.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function getGapsSummaryByRuleIdsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_rules_with_gaps.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_rules_with_gaps.ts index cb880c9cbc852..2a083c3677bde 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_rules_with_gaps.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/get_rules_with_gaps.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function getRuleIdsWithGapsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/index.ts index 97970bcf36fa1..a20ac7ff64a64 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function gapsTests({ loadTestFile }: FtrProviderContext) { describe('rule gaps', () => { loadTestFile(require.resolve('./find')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/update_gaps.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/update_gaps.ts index cc8984f40ae58..4bd52ab8acf5c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/update_gaps.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/gap/update_gaps.ts @@ -13,7 +13,6 @@ import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../../com import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib/get_event_log'; -// eslint-disable-next-line import/no-default-export export default function updateGapsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/index.ts index 955aee26c4525..13526283b222a 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerts - Group 1', () => { describe('alerts', () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/index.ts index 776155b2bdb51..b60c8b1778fbd 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group1/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces enabled', function () { loadTestFile(require.resolve('./alerting')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config.ts index 6392b9b7114ef..af275ad311fae 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts index 4d0f9523fae5a..9927c28a536a5 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/config_non_dedicated_task_runner.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/bulk_enqueue.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/bulk_enqueue.ts index 78750d8772701..82bc3dd438573 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/bulk_enqueue.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/bulk_enqueue.ts @@ -12,7 +12,6 @@ import { systemActionScenario, UserAtSpaceScenarios } from '../../../scenarios'; import { getEventLog, getUrlPrefix, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts index f311ad4d2f5d2..17967ca8ad61b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types.ts index 5d86f6d97d8ed..9d0b8abdb5ad3 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listActionTypesTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/bedrock.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/bedrock.ts index a5c1e0d224f86..0b4a21236ee99 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/bedrock.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/bedrock.ts @@ -28,7 +28,6 @@ const defaultConfig = { defaultModel: 'us.anthropic.claude-3-7-sonnet-20250219-v1:0', }; -// eslint-disable-next-line import/no-default-export export default function bedrockTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts index 899e336b06f76..28cc77b00f7d6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts @@ -18,7 +18,6 @@ import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function casesWebhookTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts index 46e8d561c9f74..bf2e8d2826135 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts @@ -22,7 +22,6 @@ const secrets = { token: 'token12345', }; -// eslint-disable-next-line import/no-default-export export default function d3SecurityTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts index 530f0e8871c96..41f62cee0dc57 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts @@ -15,7 +15,6 @@ import type { IValidatedEvent } from '@kbn/event-log-plugin/generated/schemas'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function emailTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts index d1e6493f23a04..fcdbcc83a32cd 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts @@ -13,7 +13,6 @@ import { getEventLog } from '../../../../../common/lib'; const ES_TEST_INDEX_NAME = 'functional-test-actions-index'; -// eslint-disable-next-line import/no-default-export export default function indexTest({ getService }: FtrProviderContext) { const es: Client = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index_preconfigured.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index_preconfigured.ts index 7d6332db85614..ce9c03f7f528f 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index_preconfigured.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index_preconfigured.ts @@ -13,7 +13,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont const ACTION_ID = 'preconfigured-es-index-action'; const ES_TEST_INDEX_NAME = 'functional-test-actions-index-preconfigured'; -// eslint-disable-next-line import/no-default-export export default function indexTest({ getService }: FtrProviderContext) { const es: Client = getService('es'); const esDeleteAllIndices = getService('esDeleteAllIndices'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gemini.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gemini.ts index 47837e2eb481c..4ef53d5d65bdc 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gemini.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gemini.ts @@ -35,7 +35,6 @@ const secrets = { }), }; -// eslint-disable-next-line import/no-default-export export default function geminiTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/inference.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/inference.ts index 5de728416158e..aaddd4cfe3b79 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/inference.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/inference.ts @@ -25,7 +25,6 @@ const secrets = { const defaultConfig = { provider: 'openai' }; -// eslint-disable-next-line import/no-default-export export default function InferenceConnectorTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts index 62a420df1378f..7b608f543589c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts @@ -19,7 +19,6 @@ import { MAX_OTHER_FIELDS_LENGTH } from '@kbn/stack-connectors-plugin/common/jir import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function jiraTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/oauth_access_token.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/oauth_access_token.ts index 189162cae5cfd..7add0d75afbab 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/oauth_access_token.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/oauth_access_token.ts @@ -17,7 +17,6 @@ import { } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function oAuthAccessTokenTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/openai.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/openai.ts index 47fd95b8efca7..f58974db77864 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/openai.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/openai.ts @@ -25,7 +25,6 @@ const secrets = { const defaultConfig = { apiProvider: 'OpenAI' }; -// eslint-disable-next-line import/no-default-export export default function genAiTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts index 19ac3affc7148..d20b2e40d6cdb 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts @@ -16,7 +16,6 @@ import { TaskErrorSource } from '@kbn/task-manager-plugin/common'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function opsgenieTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts index 919c5e7ba1b5c..af7baa68183a7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts @@ -17,7 +17,6 @@ import { import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function pagerdutyTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts index c06262cc6c331..f4ef2947ca8a1 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts @@ -13,7 +13,6 @@ import { ResilientSimulator } from '@kbn/actions-simulators-plugin/server/resili import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function resilientTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts index b9cd2ccb1ec20..00ef28ce55403 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts @@ -11,7 +11,6 @@ import type { IValidatedEvent } from '@kbn/event-log-plugin/server'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function serverLogTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts index a967c191dffee..1c3a7454cf993 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts @@ -18,7 +18,6 @@ import { TaskErrorSource } from '@kbn/task-manager-plugin/common'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function serviceNowITOMTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts index d42ce34b95eec..d282fb88c8284 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts @@ -19,7 +19,6 @@ import { MAX_ADDITIONAL_FIELDS_LENGTH } from '@kbn/stack-connectors-plugin/commo import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function serviceNowITSMTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts index 69c29cc8b7077..28aa1e2df317b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts @@ -19,7 +19,6 @@ import { MAX_ADDITIONAL_FIELDS_LENGTH } from '@kbn/stack-connectors-plugin/commo import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function serviceNowSIRTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts index c1e496be6740f..85be969713e61 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function slackTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts index b0aabaee0b61a..0817ff16077a7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts @@ -16,7 +16,6 @@ import { getSlackServer } from '@kbn/actions-simulators-plugin/server/plugin'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function slackTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts index 0235cbdb2a086..6cd95286111bd 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts @@ -17,7 +17,6 @@ import { TaskErrorSource } from '@kbn/task-manager-plugin/common'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function swimlaneTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/thehive.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/thehive.ts index 13704c69bd881..223c8ef02d20d 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/thehive.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/thehive.ts @@ -17,7 +17,6 @@ const secrets = { apiKey: 'token12345', }; -// eslint-disable-next-line import/no-default-export export default function theHiveTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts index 8d01bae56c81a..15e7da6d9f92f 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts @@ -33,7 +33,6 @@ const webhook = { secret: 'secret', }; -// eslint-disable-next-line import/no-default-export export default function tinesTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const configService = getService('config'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts index 38bb42dab3fdc..3d36dd65bef58 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts @@ -17,7 +17,6 @@ import { import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; import { getEventLog } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function torqTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts index 555191206009d..f8d2530601da5 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts @@ -34,7 +34,6 @@ function parsePort(url: Record): Record { before(async () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts index 0183c74d6a5a2..92e2f55f17701 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts @@ -77,7 +77,6 @@ const executeSubAction = async ({ return response; }; -// eslint-disable-next-line import/no-default-export export default function createActionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_feature_descriptions.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_feature_descriptions.ts index 567ec8d69c5cf..599e58951c825 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_feature_descriptions.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_feature_descriptions.ts @@ -10,7 +10,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context const SUB_FEATURE_DESC_PREFIX = 'Includes: '; -// eslint-disable-next-line import/no-default-export export default function subFeatureDescriptionsTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts index e3931e4e54709..992a6a1dcb6de 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts @@ -13,7 +13,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { checkAAD, getUrlPrefix, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function updateConnectorTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/aggregate.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/aggregate.ts index d95b1f93f850e..48770d6d1a62b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/aggregate.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/aggregate.ts @@ -11,7 +11,6 @@ import { Space1AllAtSpace1, SuperuserAtSpace1, UserAtSpaceScenarios } from '../. import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAggregateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/index.ts index 8daf77d9d1679..2ab8833de7e25 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertDeletionTests({ loadTestFile }: FtrProviderContext) { describe('alert deletion', () => { loadTestFile(require.resolve('./preview')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/preview.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/preview.ts index 6fd90515e78eb..4af5babb15519 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/preview.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/preview.ts @@ -25,7 +25,6 @@ import { getTestAlertDocs, } from './alert_deletion_test_utils'; -// eslint-disable-next-line import/no-default-export export default function previewAlertDeletionTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/schedule.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/schedule.ts index 7723d8eb4764e..320117d43107f 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/schedule.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/schedule.ts @@ -43,7 +43,6 @@ import { getActiveAlert, } from './alert_deletion_test_utils'; -// eslint-disable-next-line import/no-default-export export default function alertDeletionTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/task_state.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/task_state.ts index 5a45c814b7e86..74ebc6a4985a0 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/task_state.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/alert_deletion/task_state.ts @@ -21,7 +21,6 @@ import { } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertDeletionTaskStateTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/index.ts index 69f9584907c40..f630c762085c9 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerts', () => { before(async () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_all.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_all.ts index 8c2ed15382781..e136adbac904e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_all.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_all.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createMuteAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_instance.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_instance.ts index cab3f9da2d69c..cd18dab20f7a1 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_instance.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/mute_instance.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createMuteAlertInstanceTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_all.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_all.ts index 0c6d9c564c643..a64966f51b08a 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_all.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_all.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnmuteAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_instance.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_instance.ts index 9d49963bd80c1..6e61e7bb870ac 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_instance.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/unmute_instance.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createMuteAlertInstanceTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts index c90cb2fa5aed2..b13660513f072 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts @@ -23,7 +23,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createUpdateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update_api_key.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update_api_key.ts index 47b0ce1e86ef5..04f0fa9072a9b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update_api_key.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update_api_key.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUpdateApiKeyTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/index.ts index 13962ccd71a35..c4a1b025e1b28 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces enabled - Group 2', function () { loadTestFile(require.resolve('./telemetry')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/alerting_and_actions_telemetry.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/alerting_and_actions_telemetry.ts index b2af390ca9de6..460c662b1de59 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/alerting_and_actions_telemetry.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/alerting_and_actions_telemetry.ts @@ -13,7 +13,6 @@ import type { TaskManagerDoc } from '../../../../common/lib'; import { getUrlPrefix, getEventLog, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertingAndActionsTelemetryTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/config.ts index e6336b7092087..6e23de1f63cc7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/index.ts index 9ac30839499e2..0ef8ecd039c1e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group2/tests/telemetry/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function telemetryTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerting and Actions Telemetry', () => { before(async () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config.ts index f999da061b90b..3c2eb97136fca 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config_with_schedule_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config_with_schedule_circuit_breaker.ts index e6441be2e7226..4ec618271de22 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config_with_schedule_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/config_with_schedule_circuit_breaker.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts index 6c3f44f818293..663bebdf7c72b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts @@ -81,7 +81,6 @@ const getThreeRules = (response: any) => { return rules; }; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_disable.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_disable.ts index 4266a37ade5c8..ccf0cdb05b793 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_disable.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_disable.ts @@ -51,7 +51,6 @@ const getDefaultResponse = (response: any) => ({ errors: [], }); -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_edit.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_edit.ts index 83d84e11a1816..79436a806e294 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_edit.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_edit.ts @@ -23,7 +23,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createUpdateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_enable.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_enable.ts index c29279d6a485f..0f5493d11f376 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_enable.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_enable.ts @@ -22,7 +22,6 @@ const defaultSuccessfulResponse = { task_ids_failed_to_be_enabled: [], }; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/clone.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/clone.ts index 0434bb82f2c92..4575f19ebfe77 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/clone.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/clone.ts @@ -25,7 +25,6 @@ interface RuleSpace { body: any; } -// eslint-disable-next-line import/no-default-export export default function createAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/fields_rule.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/fields_rule.ts index 6432087d3bd98..606a9d10592cb 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/fields_rule.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/fields_rule.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getRuleFieldsTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_flapping_settings.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_flapping_settings.ts index 106a8c6811e08..54243695662f5 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_flapping_settings.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_flapping_settings.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, resetRulesSettings } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getFlappingSettingsTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_query_delay_settings.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_query_delay_settings.ts index f539afcc117c5..d0805756d40f7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_query_delay_settings.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/get_query_delay_settings.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, resetRulesSettings } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getQueryDelaySettingsTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/index.ts index df388a70742b9..4a44a76fedb80 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerts - Group 3', () => { describe('alerts', () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/resolve.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/resolve.ts index fec0816e4f2e5..dae471e02bc91 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/resolve.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/resolve.ts @@ -10,7 +10,6 @@ import { SuperuserAtSpace1 } from '../../../scenarios'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/run_soon.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/run_soon.ts index 38d0a203000a6..9ba085596840e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/run_soon.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/run_soon.ts @@ -15,7 +15,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_edit_with_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_edit_with_circuit_breaker.ts index bcb32c7c32078..4c4230f186d08 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_edit_with_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_edit_with_circuit_breaker.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function bulkEditWithCircuitBreakerTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_enable_with_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_enable_with_circuit_breaker.ts index b8b6f30c76c70..e09f4516278bb 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_enable_with_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/bulk_enable_with_circuit_breaker.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function bulkEnableWithCircuitBreakerTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/create_with_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/create_with_circuit_breaker.ts index 5909fc7148037..2684ffdf86193 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/create_with_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/create_with_circuit_breaker.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createWithCircuitBreakerTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/enable_with_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/enable_with_circuit_breaker.ts index 9c7d539092cbb..a5741bf06ce56 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/enable_with_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/enable_with_circuit_breaker.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function enableWithCircuitBreakerTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/get_schedule_frequency.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/get_schedule_frequency.ts index 9e02a9d09c3b2..5101e024df747 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/get_schedule_frequency.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/get_schedule_frequency.ts @@ -10,7 +10,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function getScheduleFrequencyTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/index.ts index c49491b4dec43..b0c608f4921f2 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerts - Group 3 - schedule circuit breaker', () => { describe('alerts', () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/update_with_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/update_with_circuit_breaker.ts index 8f201a014cb96..21e91eaba84d6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/update_with_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/schedule_circuit_breaker/update_with_circuit_breaker.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function updateWithCircuitBreakerTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_alert.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_alert.ts index ac8c2a3b21347..f901066e8d359 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_alert.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_alert.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createRuleSuggestionValuesTests({ getService }: FtrProviderContext) { const space1 = Spaces[0].id; diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_rule.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_rule.ts index f15bda28efed1..c5ade0f279f5c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_rule.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/suggestions_value_rule.ts @@ -14,7 +14,6 @@ interface RuleSpace { body: any; } -// eslint-disable-next-line import/no-default-export export default function createRuleSuggestionValuesTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_flapping_settings.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_flapping_settings.ts index ab5dd4d0601d6..1351910420537 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_flapping_settings.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_flapping_settings.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios, Superuser } from '../../../scenarios'; import { getUrlPrefix, resetRulesSettings } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function updateFlappingSettingsTest({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_query_delay_settings.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_query_delay_settings.ts index b8af54c7d7ae4..e48946f5944f1 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_query_delay_settings.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/update_query_delay_settings.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios, Superuser } from '../../../scenarios'; import { getUrlPrefix, resetRulesSettings } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function updateQueryDelaySettingsTest({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/user_managed_api_key.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/user_managed_api_key.ts index 6a26989175b65..cfb08e4dbb80f 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/user_managed_api_key.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/user_managed_api_key.ts @@ -19,7 +19,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { SuperuserAtSpace1 } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function userManagedApiKeyTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/index.ts index 17e457d8582bf..ff3c2f5169cc2 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces enabled - Group 3', function () { loadTestFile(require.resolve('./alerting')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/events_generation.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/events_generation.ts index 2565c4a5f6bb3..1c1f8801c115e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/events_generation.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/events_generation.ts @@ -12,7 +12,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import type { TaskManagerDoc } from '../../../../common/lib'; import { ObjectRemover } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function eventsGenerationTaskTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/archive_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/archive_maintenance_window.ts index cad08047d92ac..6c8cb54ff668d 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/archive_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/archive_maintenance_window.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function archiveMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/create_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/create_maintenance_window.ts index af6ff9b3fea80..12c0db896fb61 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/create_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/create_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/delete_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/delete_maintenance_window.ts index 9b61a8ab51c9b..7f972358477d9 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/delete_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/delete_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function deleteMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/get_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/get_maintenance_window.ts index 6d0c431d812db..0e4303447ed14 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/get_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/get_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/unarchive_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/unarchive_maintenance_window.ts index fbe00c92ce8b1..a16d4c29311e7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/unarchive_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/unarchive_maintenance_window.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function unarchiveMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/update_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/update_maintenance_window.ts index d788b60abda86..d771105c59e47 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/update_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/external/update_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/index.ts index f5718befa8ff1..bbda04a12cfff 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function maintenanceWindowTests({ loadTestFile, getService }: FtrProviderContext) { describe('Maintenance Window - Group 3', () => { describe('maintenance window', () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/active_maintenance_windows.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/active_maintenance_windows.ts index d996322450616..daac6611103d6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/active_maintenance_windows.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/active_maintenance_windows.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function activeMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/archive_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/archive_maintenance_window.ts index d3e039cf8b0fe..f9993d70d4a88 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/archive_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/archive_maintenance_window.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function updateMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/create_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/create_maintenance_window.ts index cbf9d2226b265..941ef586998e9 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/create_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/create_maintenance_window.ts @@ -37,7 +37,6 @@ const scopedQuery = { ], }; -// eslint-disable-next-line import/no-default-export export default function createMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/delete_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/delete_maintenance_window.ts index a5f544ae813f5..09e92c17da594 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/delete_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/delete_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function deleteMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/find_maintenance_windows.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/find_maintenance_windows.ts index e72d993cc26ad..063f33086f3e8 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/find_maintenance_windows.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/find_maintenance_windows.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function findMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/finish_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/finish_maintenance_window.ts index c1e1cba305c20..9ade38726302c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/finish_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/finish_maintenance_window.ts @@ -9,7 +9,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function findMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/get_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/get_maintenance_window.ts index 560c5bdc981c6..9cc70262d2e1b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/get_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/get_maintenance_window.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/update_maintenance_window.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/update_maintenance_window.ts index 776c12cc00a02..d4af25585b2f7 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/update_maintenance_window.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window/internal/update_maintenance_window.ts @@ -38,7 +38,6 @@ const scopedQuery = { ], }; -// eslint-disable-next-line import/no-default-export export default function updateMaintenanceWindowTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config.ts index f999da061b90b..3c2eb97136fca 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config_non_dedicated_task_runner.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config_non_dedicated_task_runner.ts index 7aed7501bc012..61593b65b01d5 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config_non_dedicated_task_runner.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/config_non_dedicated_task_runner.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/alerts.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/alerts.ts index 8cdfb93fe7b68..288909bf3990d 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/alerts.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/alerts.ts @@ -27,7 +27,6 @@ import { getEventLog, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function alertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/event_log.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/event_log.ts index 46aa684bbd7bf..7fa34e09fc8d6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/event_log.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/event_log.ts @@ -14,7 +14,6 @@ import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../.. import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { validateEvent } from '../../../../spaces_only/tests/alerting/group1/event_log'; -// eslint-disable-next-line import/no-default-export export default function eventLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/excluded.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/excluded.ts index 2a651fbbce8b3..9607fd55f3a0a 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/excluded.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/excluded.ts @@ -17,7 +17,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_action_error_log.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_action_error_log.ts index 66aa7fbf12aef..7fa0fa29e45b6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_action_error_log.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_action_error_log.ts @@ -18,7 +18,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetActionErrorLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_kpi.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_kpi.ts index 86cffeee268d2..db4458a3d990a 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_kpi.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_kpi.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getGlobalExecutionKpiTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_summary.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_summary.ts index 826a1bee23380..8e3767b246559 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_summary.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_global_execution_summary.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getGlobalExecutionSummaryTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_rule_execution_kpi.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_rule_execution_kpi.ts index f32a3eb024fad..182390c4ae122 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_rule_execution_kpi.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/get_rule_execution_kpi.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getRuleExecutionKpiTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/global_execution_log.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/global_execution_log.ts index f096975e217ab..aa626b4c7a67f 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/global_execution_log.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/global_execution_log.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function globalExecutionLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/health.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/health.ts index 17e4e5aac0d0a..3c1a198c54c39 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/health.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/health.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { getUrlPrefix, getTestRuleData, ObjectRemover, AlertUtils } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createFindTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/index.ts index ecbcaf52aa474..aef799a9eb9f9 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerts', () => { describe('alerts', () => { diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/mustache_templates.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/mustache_templates.ts index 1cf5989006a70..23be8e33a90e4 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/mustache_templates.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/mustache_templates.ts @@ -24,7 +24,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function executionStatusAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze.ts index 5b127fcc0482d..02481c00e3be6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze.ts @@ -32,7 +32,6 @@ const snoozeSchedule = { }, }; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze_internal.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze_internal.ts index 7dc2706fb5a23..1816a6020fe1e 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/snooze_internal.ts @@ -28,7 +28,6 @@ const SNOOZE_SCHEDULE = { }, }; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze.ts index 216e74abfe545..45d6a1f01310c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnsnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze_internal.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze_internal.ts index 22fd24e6697ce..a34960ebd575d 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/unsnooze_internal.ts @@ -18,7 +18,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnsnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/index.ts index 82eab44187901..df603be6f5098 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group4/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces enabled - Group 4', function () { loadTestFile(require.resolve('./alerting')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/config.ts index f999da061b90b..3c2eb97136fca 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: [], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack.ts index 67eb33e68968a..e0c2ba2c639ab 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack.ts @@ -14,7 +14,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; const alertAsDataIndex = '.internal.alerts-observability.test.alerts.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function bulkUntrackTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack_by_query.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack_by_query.ts index dd3c6e9a65aae..3f4efa9403723 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack_by_query.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/bulk_untrack_by_query.ts @@ -14,7 +14,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; const alertAsDataIndex = '.internal.alerts-observability.test.alerts.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function bulkUntrackByQueryTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/create.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/create.ts index 75022912735fe..b1ac1298ff3c6 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/create.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/create.ts @@ -23,7 +23,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/delete.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/delete.ts index fedce49c25495..4b6b83175b108 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/delete.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/delete.ts @@ -15,7 +15,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createDeleteTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/disable.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/disable.ts index bf9cbd69adecb..999ddb5dafda4 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/disable.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/disable.ts @@ -19,7 +19,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createDisableAlertTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/enable.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/enable.ts index 633bc4b21b827..f71d64936579c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/enable.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/enable.ts @@ -19,7 +19,6 @@ import { getUnauthorizedErrorMessage, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createEnableAlertTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/execution_status.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/execution_status.ts index 92fb0af0d8730..4ab7069030830 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/execution_status.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/execution_status.ts @@ -11,7 +11,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function executionStatusAlertTests({ getService }: FtrProviderContext) { const retry = getService('retry'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get.ts index c75b966af08c3..5b14e53ed1a01 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get.ts @@ -437,7 +437,6 @@ const getTestUtils = ( }); }; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_state.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_state.ts index 85cc3ad15fd4b..43d8cd3fb5c9c 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_state.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_state.ts @@ -15,7 +15,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { UserAtSpaceScenarios } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createGetAlertStateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_summary.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_summary.ts index 80345462b326f..fd8d898aeddf3 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_summary.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/get_alert_summary.ts @@ -16,7 +16,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { UserAtSpaceScenarios } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createGetAlertSummaryTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/index.ts index ccc3b71b15144..2ee3dac1c88db 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile, getService, diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/retain_api_key.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/retain_api_key.ts index 76f72614fe62f..52c5d8de7aeeb 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/retain_api_key.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/retain_api_key.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { AlertUtils, getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function retainAPIKeyTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types.ts index b50c5efb07a81..f0e9d469f4e3b 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listRuleTypes({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types_internal.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types_internal.ts index 5d8c94549575f..ef782ea590080 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/rule_types_internal.ts @@ -11,7 +11,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listInternalRuleTypes({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/index.ts index 776155b2bdb51..b60c8b1778fbd 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group5/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces enabled', function () { loadTestFile(require.resolve('./alerting')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/config.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/config.ts index ae11e06e66ee9..95b3ddc5ecf89 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/config.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { disabledPlugins: ['alerting.maintenanceWindow', 'alerting.rulesSettings'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/index.ts index f6dba0a5900c3..23422ecac5e21 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration security and spaces disabled - Group 6', function () { loadTestFile(require.resolve('./maintenance_window_disabled')); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/index.ts index 7dd03f2d45884..9fad5a2fd18b1 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function maintenanceWindowDisabledTests({ loadTestFile, getService, diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/maintenance_window_api_disabled.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/maintenance_window_api_disabled.ts index 71e699d6fb7c6..b5a9da3bf3b09 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/maintenance_window_api_disabled.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/maintenance_window_disabled/maintenance_window_api_disabled.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function maintenanceWindowApiDisabledTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/index.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/index.ts index 3512402ea8d41..08554486182e0 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/index.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { setupSpacesAndUsers, tearDown } from '../../../setup'; -// eslint-disable-next-line import/no-default-export export default function rulesSettingsDisabledTests({ loadTestFile, getService, diff --git a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/rules_settings_api_disabled.ts b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/rules_settings_api_disabled.ts index e9d8a747b33ac..b14b559b2ff17 100644 --- a/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/rules_settings_api_disabled.ts +++ b/x-pack/platform/test/alerting_api_integration/security_and_spaces/group6/tests/rules_settings_disabled/rules_settings_api_disabled.ts @@ -10,7 +10,6 @@ import { UserAtSpaceScenarios } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function rulesSettingsApiDisabledTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts index b95ab7aec7d4b..924f58709b9ed 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/index.ts index 981455dcf2d85..12c0e30ed4720 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../helpers'; -// eslint-disable-next-line import/no-default-export export default function actionTaskParamsTests({ loadTestFile, getService }: FtrProviderContext) { describe('Action Task Params', () => { before(async () => buildUp(getService)); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts index 0ee90ec119c87..84606bc67b059 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts @@ -11,7 +11,6 @@ import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-serve import type { ActionTaskParams } from '@kbn/actions-plugin/server/types'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const es = getService('es'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/bulk_enqueue.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/bulk_enqueue.ts index a54f57843a4f7..139a5adb57d77 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/bulk_enqueue.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/bulk_enqueue.ts @@ -11,7 +11,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts index e136151df7df2..4ff64b1e0ec73 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/check_registered_connector_types.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createRegisteredConnectorTypeTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/config.ts index 0ef75b695a679..cf2a118a889cd 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types.ts index 999b58feb07c3..fd29672f883cf 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix } from '../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listConnectorTypesTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email.ts index 559b805695c9d..1097b8d2a40da 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email.ts @@ -12,7 +12,6 @@ import { EmailDomainsAllowed } from '../../config'; const EmailDomainAllowed = EmailDomainsAllowed[EmailDomainsAllowed.length - 1]; -// eslint-disable-next-line import/no-default-export export default function emailTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const objectRemover = new ObjectRemover(supertest); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_attachments.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_attachments.ts index bd5d05d1cbe8e..08fd95f1ad6db 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_attachments.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_attachments.ts @@ -13,7 +13,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont import { getEventLog, ObjectRemover } from '../../../../../common/lib'; import { EmailDomainsAllowed } from '../../config'; -// eslint-disable-next-line import/no-default-export export default function emailNotificationTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_html.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_html.ts index ddf0d95446f5c..8867b2674a072 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_html.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/email_html.ts @@ -13,7 +13,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont import { getEventLog, ObjectRemover } from '../../../../../common/lib'; import { EmailDomainsAllowed } from '../../config'; -// eslint-disable-next-line import/no-default-export export default function emailNotificationTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts index 91933c8702ff1..d22e30f0d2646 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts @@ -14,7 +14,6 @@ const ES_TEST_DATASTREAM_PREFIX = 'functional-test-connectors-ds'; const ES_TEST_DATASTREAM_PATTERN_NAME = `${ES_TEST_DATASTREAM_PREFIX}-*`; const ES_TEST_DATASTREAM_INDEX_NAME = `${ES_TEST_DATASTREAM_PREFIX}-00001`; -// eslint-disable-next-line import/no-default-export export default function indexTest({ getService }: FtrProviderContext) { const es: Client = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/preconfigured_alert_history_connector.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/preconfigured_alert_history_connector.ts index 58a594896610b..f259326926b9f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/preconfigured_alert_history_connector.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/preconfigured_alert_history_connector.ts @@ -12,7 +12,6 @@ import { getTestRuleData, ObjectRemover } from '../../../../../common/lib'; const ALERT_HISTORY_OVERRIDE_INDEX = 'kibana-alert-history-not-the-default'; -// eslint-disable-next-line import/no-default-export export default function preconfiguredAlertHistoryConnectorTests({ getService, }: FtrProviderContext) { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/webhook.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/webhook.ts index 35c7b35befdce..1de75d51d4fb5 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/webhook.ts @@ -18,7 +18,6 @@ import { import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { createTlsWebhookServer } from '../../../../../common/lib/get_tls_webhook_servers'; -// eslint-disable-next-line import/no-default-export export default function webhookTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types_system.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types_system.ts index 66028d875745b..bad6e53806162 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types_system.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/connector_types_system.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix } from '../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listActionTypesTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/create.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/create.ts index 1eb762e44a704..4c211c54b89d9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/create.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/create.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { checkAAD, getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createConnectorTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/delete.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/delete.ts index d644dc14479e1..e0b87ee8f19f3 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/delete.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/delete.ts @@ -9,7 +9,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function deleteConnectorTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute.ts index ff69f8fce36fe..4c6481ae37b52 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute.ts @@ -15,7 +15,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover, getEventLog } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es: Client = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute_unsecured_action.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute_unsecured_action.ts index 6f70828bc8044..ae0fb405d9867 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute_unsecured_action.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/execute_unsecured_action.ts @@ -14,7 +14,6 @@ import { ObjectRemover } from '../../../common/lib'; import { Spaces } from '../../scenarios'; import { createWebhookConnector } from './connector_types/stack/webhook'; -// eslint-disable-next-line import/no-default-export export default function createUnsecuredActionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get.ts index 9aa9880ef9a72..8be89c419c2e9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get.ts @@ -9,7 +9,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getConnectorTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts index 48fd40bbc1dea..9c56cca09187d 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getAllConnectorsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_system.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_system.ts index 18fe6bad413d1..b622a6fc3b51a 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_system.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_system.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function getAllConnectorsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_unsecured_actions.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_unsecured_actions.ts index ed6cfbd2112a3..3f40a4499a5b4 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_unsecured_actions.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/get_all_unsecured_actions.ts @@ -10,7 +10,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; import { Spaces } from '../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createUnsecuredActionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/index.ts index 89864ec134549..d4a0267101245 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../helpers'; -// eslint-disable-next-line import/no-default-export export default function actionsTests({ loadTestFile, getService }: FtrProviderContext) { describe('Actions', () => { before(async () => buildUp(getService)); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/max_queued_actions_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/max_queued_actions_circuit_breaker.ts index a1577b225d57e..e0b77305265c3 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/max_queued_actions_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/max_queued_actions_circuit_breaker.ts @@ -10,7 +10,6 @@ import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integrati import { getEventLog, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createActionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts index 5a23a409a23ce..207b24c4e1cb6 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts @@ -10,7 +10,6 @@ import { asyncForEach } from '@kbn/std'; import { getUrlPrefix } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/monitoring_collection.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/monitoring_collection.ts index 5ce7ed42d06c2..f35532b585dd9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/monitoring_collection.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/monitoring_collection.ts @@ -10,7 +10,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; const CLUSTER_ACTIONS_MONITORING_COLLECTION_URL = `/api/monitoring_collection/cluster_actions`; -// eslint-disable-next-line import/no-default-export export default function actionsMonitoringCollectionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/schedule_unsecured_action.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/schedule_unsecured_action.ts index b6f7c7bdbcd38..84be0f8e71adc 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/schedule_unsecured_action.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/schedule_unsecured_action.ts @@ -11,7 +11,6 @@ import { Spaces } from '../../scenarios'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { getUrlPrefix, ObjectRemover } from '../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnsecuredActionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts index 7c4728c1e7709..936e6d2a712d5 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts @@ -11,7 +11,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; const PREWRITTEN_CONNECTOR_ID = 'uuid-actionId'; const DISABLED_CONNECTOR_TYPE = 'test.not-enabled'; -// eslint-disable-next-line import/no-default-export export default function typeNotEnabledTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/update.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/update.ts index 9e569e3441bfe..ff307a1098e8f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/update.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/actions/update.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../scenarios'; import { checkAAD, getUrlPrefix, ObjectRemover } from '../../../common/lib'; import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function updateConnectorTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/aggregate.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/aggregate.ts index 7fd065a4abf44..b2cc8b9ab0cd2 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/aggregate.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/aggregate.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAggregateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts index ef4c38d9171af..b88191a7e58f3 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/create.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/create.ts index 6e589669a8bca..058c2090a648b 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/create.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/create.ts @@ -28,7 +28,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/delete.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/delete.ts index 11fb444ee18af..f863b0f023537 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/delete.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/delete.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createDeleteTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/disable.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/disable.ts index b538efb35df8b..0cbb7b2d5b0e7 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/disable.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/disable.ts @@ -24,7 +24,6 @@ import { validateEvent } from './event_log'; const alertAsDataIndex = '.internal.alerts-observability.test.alerts.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function createDisableRuleTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/enable.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/enable.ts index 077d1c90ef246..898217079e980 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/enable.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/enable.ts @@ -18,7 +18,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createEnableAlertTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/event_log.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/event_log.ts index b7ec14f6fb910..fe3ec8c2a7e49 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/event_log.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/event_log.ts @@ -33,7 +33,6 @@ const InstanceActions = new Set([ 'untracked-instance', ]); -// eslint-disable-next-line import/no-default-export export default function eventLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find.ts index bf2cea5069680..05dc8faeacfce 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find.ts @@ -26,7 +26,6 @@ async function createAlert( return createdAlert; } -// eslint-disable-next-line import/no-default-export export default function createFindTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find_internal.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find_internal.ts index 7add3aa5a7fc3..2e9fd1377ca6d 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/find_internal.ts @@ -27,7 +27,6 @@ async function createAlert( return createdAlert; } -// eslint-disable-next-line import/no-default-export export default function createFindTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get.ts index fdc1d5260f2f8..dc7730a226a7e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get.ts @@ -179,7 +179,6 @@ const getTestUtils = ( }); }; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_action_error_log.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_action_error_log.ts index 4bc0fc9474af3..b2209fe1c5a14 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_action_error_log.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_action_error_log.ts @@ -12,7 +12,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, ObjectRemover, getTestRuleData, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetActionErrorLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_state.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_state.ts index 6b2786556761e..8fd06a20221f1 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_state.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_state.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, ObjectRemover, getTestRuleData } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetAlertStateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_summary.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_summary.ts index dfa8fbad432f7..69696395c9e65 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_summary.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_alert_summary.ts @@ -19,7 +19,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { TEST_CACHE_EXPIRATION_TIME } from '../create_test_data'; -// eslint-disable-next-line import/no-default-export export default function createGetAlertSummaryTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_execution_log.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_execution_log.ts index 736697295f2e2..171cbde9d9c4e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_execution_log.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_execution_log.ts @@ -12,7 +12,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, ObjectRemover, getTestRuleData, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetExecutionLogTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_rule_tags.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_rule_tags.ts index 6eff543d34338..6662c3ed10e4d 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_rule_tags.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/get_rule_tags.ts @@ -12,7 +12,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context const tags = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']; -// eslint-disable-next-line import/no-default-export export default function createAggregateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/index.ts index 08c03995bb17b..253c0a8b8749c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../../helpers'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerting', () => { before(async () => await buildUp(getService)); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types.ts index a75b928ca6500..2773b3d381d36 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listRuleTypes({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types_internal.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types_internal.ts index c3c4265f8d1b0..151181442c57f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group1/rule_types_internal.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix } from '../../../../common/lib/space_test_utils'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function listRuleTypes({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_default_space.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_default_space.ts index 9b00855a0a89a..3d15516c36c3b 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_default_space.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_default_space.ts @@ -9,7 +9,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { Spaces } from '../../../scenarios'; import { alertTests } from '../group1/alerts_base'; -// eslint-disable-next-line import/no-default-export export default function alertSpace1Tests(context: FtrProviderContext) { alertTests(context, Spaces.default); } diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_space1.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_space1.ts index 8feca15a0c764..59c88aabcff2e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_space1.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/alerts_space1.ts @@ -9,7 +9,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { Spaces } from '../../../scenarios'; import { alertTests } from '../group1/alerts_base'; -// eslint-disable-next-line import/no-default-export export default function alertSpace1Tests(context: FtrProviderContext) { alertTests(context, Spaces.space1); } diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/bulk_edit.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/bulk_edit.ts index e1a5835b4bca4..a67f1d16121bd 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/bulk_edit.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/bulk_edit.ts @@ -11,7 +11,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createUpdateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts index 9aa68299dbdac..192c3c937f104 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/execution_status.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/execution_status.ts index 33975fb639a55..333e5a2269ddc 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/execution_status.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/execution_status.ts @@ -17,7 +17,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function executionStatusAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/index.ts index dfce23ee097a2..d3bf3f78a8880 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../../helpers'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerting', () => { before(async () => await buildUp(getService)); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/alert.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/alert.ts index 8364370f9cde0..550a0de27d132 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/alert.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/alert.ts @@ -64,7 +64,6 @@ export function getDatafeedConfig(): Datafeed { } as Datafeed; } -// eslint-disable-next-line import/no-default-export export default function alertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/index.ts index 288bb212f9b45..81384b9695510 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/anomaly_detection/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('Anomaly detection', function () { loadTestFile(require.resolve('./alert')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/index.ts index 9a25822ca5a5a..6a450c21a09cd 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/ml_rule_types/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('machine learning alert rule types', function () { loadTestFile(require.resolve('./anomaly_detection')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring.ts index e8764d2ebb015..e76dfe16731ca 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function monitoringAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring_collection.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring_collection.ts index ec7996f44c3a5..3f038bf8ca113 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring_collection.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/monitoring_collection.ts @@ -25,7 +25,6 @@ const RULE_INTERVALS_TO_WRITE = 5; const RULE_INTERVAL_MILLIS = RULE_INTERVAL_SECONDS * 1000; const ES_GROUPS_TO_WRITE = 3; -// eslint-disable-next-line import/no-default-export export default function alertingMonitoringCollectionTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_all.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_all.ts index 92ff24bee3cb2..30394bc494fb0 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_all.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_all.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createMuteTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_instance.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_instance.ts index 6879afe5bc06e..842650e9d9f80 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_instance.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/mute_instance.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createMuteInstanceTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/index.ts index 685bd44bf36e8..6af2b6b20d7a2 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('transform alert rule types', function () { loadTestFile(require.resolve('./transform_health')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/index.ts index 39e08d89077ab..4d3fe087dffe0 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('transform_health', function () { loadTestFile(require.resolve('./rule')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts index 2a7ddd41efb39..02c0ac7f98ec9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/transform_rule_types/transform_health/rule.ts @@ -61,7 +61,6 @@ export function generateTransformConfig(transformId: string): PutTransformsReque }; } -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_all.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_all.ts index 1093a244a741e..944faea8ba27e 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_all.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_all.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnmuteTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_instance.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_instance.ts index b9661542b436c..66ad735157d18 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_instance.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/unmute_instance.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createUnmuteInstanceTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update.ts index 876791873ab61..5992c801e1907 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update.ts @@ -24,7 +24,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createUpdateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update_api_key.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update_api_key.ts index 794eb0dfa5bd9..4f95095955cca 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update_api_key.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group2/update_api_key.ts @@ -21,7 +21,6 @@ import { * Eventhough security is disabled, this test checks the API behavior. */ -// eslint-disable-next-line import/no-default-export export default function createUpdateApiKeyTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/disabled_rule_types.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/disabled_rule_types.ts index db424be4ab722..d745495d0c351 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/disabled_rule_types.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/disabled_rule_types.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function disabledRuleTypesTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/esql_only.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/esql_only.ts index a53ffdc7a0382..b88098220d100 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/esql_only.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/esql_only.ts @@ -25,7 +25,6 @@ import { } from './common'; import { createDataStream, deleteDataStream } from '../../../create_test_data'; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/index.ts index 2f1b0675d6ba7..9203907bece02 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('es_query', () => { loadTestFile(require.resolve('./rule')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/query_dsl_only.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/query_dsl_only.ts index 2ff64fe0f2b74..aa70bae35a318 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/query_dsl_only.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/query_dsl_only.ts @@ -31,7 +31,6 @@ import { const TEST_HOSTNAME = 'test.alerting.example.com'; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/rule.ts index 5e5ad9a2641dd..431594bce80a2 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/es_query/rule.ts @@ -29,7 +29,6 @@ import { } from './common'; import { createDataStream, deleteDataStream } from '../../../create_test_data'; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const indexPatterns = getService('indexPatterns'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index.ts index 1b976395131c9..a4ccf732682c8 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('builtin alertTypes', () => { loadTestFile(require.resolve('./index_threshold')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/alert.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/alert.ts index 65d4761aec20c..890aea7ec5d6c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/alert.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/alert.ts @@ -28,7 +28,6 @@ const RULE_INTERVALS_TO_WRITE = 5; const RULE_INTERVAL_SECONDS = 3; const RULE_INTERVAL_MILLIS = RULE_INTERVAL_SECONDS * 1000; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/fields_endpoint.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/fields_endpoint.ts index 7f1cd661d422b..68a75d917c121 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/fields_endpoint.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/fields_endpoint.ts @@ -15,7 +15,6 @@ import { getUrlPrefix } from '../../../../../../common/lib'; const API_URI = 'internal/triggers_actions_ui/data/_fields'; -// eslint-disable-next-line import/no-default-export export default function fieldsEndpointTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/index.ts index 9a604f20a7034..c87489af8275f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('index_threshold', () => { loadTestFile(require.resolve('./time_series_query_endpoint')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/indices_endpoint.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/indices_endpoint.ts index f9b77a288a711..cdd4dff94dc93 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/indices_endpoint.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/indices_endpoint.ts @@ -17,7 +17,6 @@ import { createDataStream, deleteDataStream } from '../../../create_test_data'; const API_URI = 'internal/triggers_actions_ui/data/_indices'; -// eslint-disable-next-line import/no-default-export export default function indicesEndpointTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/time_series_query_endpoint.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/time_series_query_endpoint.ts index aefe3276388f9..1fb2e89f246ab 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/time_series_query_endpoint.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/builtin_alert_types/index_threshold/time_series_query_endpoint.ts @@ -50,7 +50,6 @@ const START_DATE_MINUS_2INTERVALS = getStartDate(-2 * INTERVAL_MILLIS); { "date":"2019-12-31T23:57:30.000Z", "testedValue":5, "group":"group-1" } */ -// eslint-disable-next-line import/no-default-export export default function timeSeriesQueryEndpointTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts index a88c49dc1e733..ea5e37cd01d8c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/dangerously_create_alerts_in_all_spaces.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/dangerously_create_alerts_in_all_spaces.ts index f5314f02e3439..95a9a1a8ada46 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/dangerously_create_alerts_in_all_spaces.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/dangerously_create_alerts_in_all_spaces.ts @@ -13,7 +13,6 @@ import { getEventLog, ObjectRemover, getTestRuleData } from '../../../../common/ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { Spaces } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function dangerouslyCreateAlertsInAllSpacesTests({ getService, }: FtrProviderContext) { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/index.ts index 7cb2dd47a199d..9676897a2bc3f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../../helpers'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerting', function () { this.tags('skipFIPS'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_flows.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_flows.ts index a9d74c571d2e1..e5078f699bef0 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_flows.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_flows.ts @@ -20,7 +20,6 @@ import { expectActionsFired, } from './test_helpers'; -// eslint-disable-next-line import/no-default-export export default function maintenanceWindowFlowsTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_scoped_query.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_scoped_query.ts index e8faa5a637827..82bd505c70097 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_scoped_query.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group3/maintenance_window_scoped_query.ts @@ -22,7 +22,6 @@ import { Spaces } from '../../../scenarios'; const alertAsDataIndex = '.internal.alerts-test.patternfiring.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function maintenanceWindowScopedQueryTests({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_delay.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_delay.ts index f877dabda2989..14c8c08db9aa6 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_delay.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_delay.ts @@ -11,7 +11,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import { Spaces } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createAlertDelayTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_severity.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_severity.ts index 62ba9c56aa108..823c3c857889c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_severity.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_severity.ts @@ -17,7 +17,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { getEventLog, getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import { Spaces } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createAlertSeverityTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data.ts index 67df581a76117..8680bad4a470f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data.ts @@ -50,7 +50,6 @@ import { } from '../../../../../common/lib'; import { TEST_CACHE_EXPIRATION_TIME } from '../../create_test_data'; -// eslint-disable-next-line import/no-default-export export default function createAlertsAsDataInstallResourcesTest({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_alert_delay.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_alert_delay.ts index 1e2c522882f86..8ad792a549ed6 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_alert_delay.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_alert_delay.ts @@ -45,7 +45,6 @@ import { ObjectRemover, } from '../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createAlertsAsDataAlertDelayInstallResourcesTest({ getService, }: FtrProviderContext) { diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_conflicts.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_conflicts.ts index 9857b977379f9..0fa88c0cb715a 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_conflicts.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_conflicts.ts @@ -33,7 +33,6 @@ function sortAlertDocsByInstanceId(a: SearchHit, b: SearchHit { loadTestFile(require.resolve('./install_resources')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts index 641b23cd8f448..ff8f8a5b9291a 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/install_resources.ts @@ -10,7 +10,6 @@ import { mappingFromFieldMap } from '@kbn/alerting-plugin/common'; import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createAlertsAsDataInstallResourcesTest({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/index.ts index d413a718eb836..a45c19a751f1b 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('auto_recover_rule', () => { loadTestFile(require.resolve('./rule')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/rule.ts index 3d2de976fc6b3..92321ac49ddb4 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/auto_recover/rule.ts @@ -19,7 +19,6 @@ const RULE_INTERVALS_TO_WRITE = 5; const RULE_INTERVAL_MILLIS = RULE_INTERVAL_SECONDS * 1000; const ES_GROUPS_TO_WRITE = 3; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/index.ts index de6ab6832a6aa..cb2d9f53964bf 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('cancellable_rule', () => { loadTestFile(require.resolve('./rule')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/rule.ts index c9c55a4627df0..b76b4d48b74c1 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/cancellable/rule.ts @@ -18,7 +18,6 @@ const RULE_INTERVALS_TO_WRITE = 5; const RULE_INTERVAL_MILLIS = RULE_INTERVAL_SECONDS * 1000; const ES_GROUPS_TO_WRITE = 3; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/alert_limit_services.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/alert_limit_services.ts index 14072afc10ebf..811ea0b44a2d3 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/alert_limit_services.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/alert_limit_services.ts @@ -12,7 +12,6 @@ import { Spaces } from '../../../../../scenarios'; import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; import { getUrlPrefix, ObjectRemover, getEventLog } from '../../../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function maxAlertsRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index.ts index ba35b247d2546..13f24b1b2009a 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../../../../helpers'; -// eslint-disable-next-line import/no-default-export export default function alertingCircuitBreakerTests({ loadTestFile, getService, diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index_threshold_max_alerts.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index_threshold_max_alerts.ts index 61c36f87b55ce..356c342940f64 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index_threshold_max_alerts.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/circuit_breaker/index_threshold_max_alerts.ts @@ -17,7 +17,6 @@ const RULE_INTERVAL_SECONDS = 6; const RULE_INTERVALS_TO_WRITE = 1; const RULE_INTERVAL_MILLIS = RULE_INTERVAL_SECONDS * 1000; -// eslint-disable-next-line import/no-default-export export default function maxAlertsRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/index.ts index ffc2d99a3946c..23a739ce6be77 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('builtin alertTypes', () => { loadTestFile(require.resolve('./long_running')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/index.ts index 8ab3e53dfa93d..6b86a0eb33037 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile }: FtrProviderContext) { describe('long_running_rule', () => { loadTestFile(require.resolve('./rule')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/rule.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/rule.ts index 8115eef0217f5..797a2f16af68c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/rule.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/builtin_alert_types/long_running/rule.ts @@ -16,7 +16,6 @@ import { getUrlPrefix, ObjectRemover, getEventLog } from '../../../../../../comm const RULE_INTERVAL_SECONDS = 3; -// eslint-disable-next-line import/no-default-export export default function ruleTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_disable.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_disable.ts index d5cc5c4382973..797f0b974a16f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_disable.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_disable.ts @@ -14,7 +14,6 @@ import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common const alertAsDataIndex = '.internal.alerts-observability.test.alerts.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function createDisableRuleTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_edit.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_edit.ts index 490dc8a1d8398..fa4b160ad76a5 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_edit.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/bulk_edit.ts @@ -31,7 +31,6 @@ const getSnoozeSchedule = () => { }; }; -// eslint-disable-next-line import/no-default-export export default function createUpdateTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/capped_action_type.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/capped_action_type.ts index 0b59516d8dfb0..c7bcdc12906f5 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/capped_action_type.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/capped_action_type.ts @@ -10,7 +10,6 @@ import { Spaces } from '../../../scenarios'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { getEventLog, getTestRuleData, getUrlPrefix, ObjectRemover } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createCappedActionsTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/check_registered_rule_types.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/check_registered_rule_types.ts index 0407269f9a7c2..48aefe90fc569 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/check_registered_rule_types.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/check_registered_rule_types.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createRegisteredRuleTypeTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts index 8ceb21f6c9b5f..52324dafa78de 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config_with_schedule_circuit_breaker.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config_with_schedule_circuit_breaker.ts index de4cc0ecc3909..af530bf837e2b 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config_with_schedule_circuit_breaker.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/config_with_schedule_circuit_breaker.ts @@ -9,7 +9,6 @@ import { createTestConfig } from '../../../../common/config'; export const EmailDomainsAllowed = ['example.org', 'test.com']; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/event_log_alerts.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/event_log_alerts.ts index 1e1fbbfa7af3a..4a2b0740257b0 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/event_log_alerts.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/event_log_alerts.ts @@ -12,7 +12,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, getTestRuleData, ObjectRemover, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function eventLogAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/flapping_history.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/flapping_history.ts index c550b5962a4a5..cfdece7a88388 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/flapping_history.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/flapping_history.ts @@ -11,7 +11,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common/lib'; import { Spaces } from '../../../scenarios'; -// eslint-disable-next-line import/no-default-export export default function createFlappingHistoryTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/generate_alert_schemas.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/generate_alert_schemas.ts index 700bd75d7e1b2..104de425e3fe1 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/generate_alert_schemas.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/generate_alert_schemas.ts @@ -17,7 +17,6 @@ import { import { contextToSchemaName } from '@kbn/alerting-plugin/common'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function checkAlertSchemasTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/index.ts index 06719fc3e8321..fbc2f70857c91 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { buildUp, tearDown } from '../../helpers'; -// eslint-disable-next-line import/no-default-export export default function alertingTests({ loadTestFile, getService }: FtrProviderContext) { describe('Alerting', () => { before(async () => await buildUp(getService)); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts index b98d8424be147..8f3960f37bc42 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations.ts @@ -15,7 +15,6 @@ import { RULE_SAVED_OBJECT_TYPE } from '@kbn/alerting-plugin/server'; import { getUrlPrefix } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts index cb1be1f1f839e..94bb74c0bcd7c 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/8_2_0.ts @@ -10,7 +10,6 @@ import type { RawRule } from '@kbn/alerting-plugin/server/types'; import { ALERTING_CASES_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/index.ts index 5c52f51a73319..c3b033b7106de 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/migrations/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function migrationTests({ loadTestFile, getService }: FtrProviderContext) { describe('Migrations', () => { loadTestFile(require.resolve('./8_2_0')); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/mustache_templates.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/mustache_templates.ts index 60f897f1140b2..40088760debe4 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/mustache_templates.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/mustache_templates.ts @@ -26,7 +26,6 @@ import { } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function executionStatusAlertTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/muted_alerts.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/muted_alerts.ts index a131dfd1cfc30..2015ce96901d9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/muted_alerts.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/muted_alerts.ts @@ -15,7 +15,6 @@ import { getUrlPrefix, getTestRuleData, ObjectRemover } from '../../../../common const alertAsDataIndex = '.internal.alerts-observability.test.alerts.alerts-default-000001'; -// eslint-disable-next-line import/no-default-export export default function createDisableRuleTests({ getService }: FtrProviderContext) { const es = getService('es'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/notify_when.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/notify_when.ts index d1183dccedf08..46baff9cb50e2 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/notify_when.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/notify_when.ts @@ -12,7 +12,6 @@ import { Spaces } from '../../../scenarios'; import { getUrlPrefix, ObjectRemover, getTestRuleData, getEventLog } from '../../../../common/lib'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function createNotifyWhenTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts index 8d0c5e641abc6..fc396836bf9f9 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/run_soon.ts @@ -11,7 +11,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context const LOADED_RULE_ID = '74f3e6d7-b7bb-477d-ac28-92ee22728e6e'; -// eslint-disable-next-line import/no-default-export export default function createRunSoonTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts index 473fa978f278b..574bcca944c8f 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/scheduled_task_id.ts @@ -13,7 +13,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context const MIGRATED_RULE_ID = '74f3e6d7-b7bb-477d-ac28-92ee22728e6e'; const MIGRATED_TASK_ID = '329798f0-b0b0-11ea-9510-fdf248d5f2a4'; -// eslint-disable-next-line import/no-default-export export default function createScheduledTaskIdTests({ getService }: FtrProviderContext) { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze.ts index 3d6c421428c7f..7a35c4287b7fa 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze.ts @@ -31,7 +31,6 @@ const snoozeSchedule = { }, }; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze_internal.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze_internal.ts index d987db712213d..09aac4e477869 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/snooze_internal.ts @@ -29,7 +29,6 @@ const SNOOZE_SCHEDULE = { }, }; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze.ts index bf61916eeedb8..47139ca7966a1 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze_internal.ts b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze_internal.ts index d8674b64a9ffe..f1862f83ce736 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze_internal.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only/tests/alerting/group4/unsnooze_internal.ts @@ -17,7 +17,6 @@ import { ObjectRemover, } from '../../../../common/lib'; -// eslint-disable-next-line import/no-default-export export default function createSnoozeRuleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/config.ts b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/config.ts index 0bac779b37795..8c60e70115807 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/config.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/actions/connector_types/stack/webhook.ts b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/actions/connector_types/stack/webhook.ts index 996a007ee57a9..a1e8ab81170c8 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/actions/connector_types/stack/webhook.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/actions/connector_types/stack/webhook.ts @@ -17,7 +17,6 @@ import { import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { createTlsWebhookServer } from '../../../../../common/lib/get_tls_webhook_servers'; -// eslint-disable-next-line import/no-default-export export default function webhookTest({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/index.ts b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/index.ts index 5c1d893e7145a..552713828d995 100644 --- a/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/index.ts +++ b/x-pack/platform/test/alerting_api_integration/spaces_only_legacy/tests/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../common/ftr_provider_context'; import { Spaces } from '../scenarios'; -// eslint-disable-next-line import/no-default-export export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('alerting api integration spaces only legacy configuration', function () { loadTestFile(require.resolve('./actions/connector_types/stack/webhook')); diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/console/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/console/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/console/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/console/index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/console/spec_definitions.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/console/spec_definitions.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/console/spec_definitions.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/console/spec_definitions.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/core/compression.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/core/compression.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/core/compression.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/core/compression.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/core/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/core/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/core/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/core/index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/intercepts/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/intercepts/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/intercepts/interaction_apis.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/interaction_apis.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/intercepts/interaction_apis.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/interaction_apis.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/intercepts/trigger_apis.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/trigger_apis.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/intercepts/trigger_apis.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/intercepts/trigger_apis.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/management/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/management/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/management/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/management/index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/management/ingest_pipelines.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/management/ingest_pipelines.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/management/ingest_pipelines.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/management/ingest_pipelines.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/painless_lab/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/painless_lab/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/painless_lab/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/painless_lab/index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/painless_lab/painless_lab.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/painless_lab/painless_lab.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/painless_lab/painless_lab.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/painless_lab/painless_lab.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_delete.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/bulk_delete.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_delete.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/bulk_delete.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_get.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/bulk_get.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_get.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/bulk_get.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/apis/saved_objects_management/index.ts diff --git a/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.index.ts new file mode 100644 index 0000000000000..d2bcf2073cdd1 --- /dev/null +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.index.ts @@ -0,0 +1,21 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context'; + +export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { + describe('Serverless Observability - Deployment-agnostic platform API integration tests', function () { + this.tags(['esGate']); + + // load new oblt and platform deployment-agnostic test here + // Note: if your tests runtime is over 5 minutes, create a new index and config file + loadTestFile(require.resolve('../../apis/console')); + loadTestFile(require.resolve('../../apis/core')); + loadTestFile(require.resolve('../../apis/management')); + loadTestFile(require.resolve('../../apis/painless_lab')); + loadTestFile(require.resolve('../../apis/saved_objects_management')); + }); +} diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.logs_essentials.serverless.config.ts diff --git a/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.serverless.config.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.serverless.config.ts new file mode 100644 index 0000000000000..8a253b05cd473 --- /dev/null +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/oblt.serverless.config.ts @@ -0,0 +1,16 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; + +export default createServerlessTestConfig({ + serverlessProject: 'oblt', + testFiles: [require.resolve('./oblt.index.ts')], + junit: { + reportName: 'Serverless Observability - Deployment-agnostic platform API Integration Tests', + }, +}); diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.index.ts similarity index 89% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.index.ts index 60f44c89ff5ef..267a052e088d5 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.index.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.index.ts @@ -7,7 +7,7 @@ import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context'; export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { - describe('Serverless Search - Deployment-agnostic api integration tests', function () { + describe('Serverless Search - Deployment-agnostic platform api integration tests', function () { this.tags(['esGate']); // load new search and platform deployment-agnostic test here diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.serverless.config.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.serverless.config.ts similarity index 84% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.serverless.config.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.serverless.config.ts index 2e6043164af38..351e4af901dae 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/search.serverless.config.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/search.serverless.config.ts @@ -11,6 +11,6 @@ export default createServerlessTestConfig({ serverlessProject: 'es', testFiles: [require.resolve('./search.index.ts')], junit: { - reportName: 'Serverless Search - Deployment-agnostic API Integration Tests', + reportName: 'Serverless Search - Deployment-agnostic platform API Integration Tests', }, }); diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.index.ts similarity index 89% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.index.ts index 8f043bb3d306a..7320aaa528fd5 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.index.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.index.ts @@ -7,7 +7,7 @@ import { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context'; export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { - describe('Serverless Security - Deployment-agnostic api integration tests', function () { + describe('Serverless Security - Deployment-agnostic platform api integration tests', function () { this.tags(['esGate']); // load new security and platform deployment-agnostic test here diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.serverless.config.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.serverless.config.ts similarity index 84% rename from x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.serverless.config.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.serverless.config.ts index e8e52116f9eff..be74142c7e846 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.serverless.config.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/configs/serverless/security.serverless.config.ts @@ -11,6 +11,6 @@ export default createServerlessTestConfig({ serverlessProject: 'security', testFiles: [require.resolve('./security.index.ts')], junit: { - reportName: 'Serverless Security - Deployment-agnostic API Integration Tests', + reportName: 'Serverless Security - Deployment-agnostic platform API Integration Tests', }, }); diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.index.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/stateful/platform.index.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.index.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/stateful/platform.index.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts b/x-pack/platform/test/api_integration_deployment_agnostic/configs/stateful/platform.stateful.config.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/configs/stateful/platform.stateful.config.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/default_configs/common_paths.ts b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/common_paths.ts similarity index 100% rename from x-pack/test/api_integration/deployment_agnostic/default_configs/common_paths.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/default_configs/common_paths.ts diff --git a/x-pack/test/api_integration/deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts similarity index 98% rename from x-pack/test/api_integration/deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts index 8b2c92c85b0b3..869e68f6b504d 100644 --- a/x-pack/test/api_integration/deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts +++ b/x-pack/platform/test/api_integration_deployment_agnostic/default_configs/feature_flag.serverless.config.base.ts @@ -82,7 +82,7 @@ export function createServerlessFeatureFlagTestConfig { const tlsWebhookServers = await getTlsWebhookServerUrls(6300, 6399); diff --git a/x-pack/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 similarity index 98% rename from x-pack/test/api_integration/deployment_agnostic/default_configs/serverless.config.base.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts index 6e00ce368cf2d..5211cbf64fa0c 100644 --- a/x-pack/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 @@ -17,7 +17,7 @@ import path from 'path'; import { DeploymentAgnosticCommonServices, services } from '../services'; import { LOCAL_PRODUCT_DOC_PATH } from './common_paths'; -interface CreateTestConfigOptions { +interface CreateTestConfigOptions { serverlessProject: ServerlessProjectType; esServerArgs?: string[]; kbnServerArgs?: string[]; diff --git a/x-pack/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 similarity index 97% rename from x-pack/test/api_integration/deployment_agnostic/default_configs/stateful.config.base.ts rename to x-pack/platform/test/api_integration_deployment_agnostic/default_configs/stateful.config.base.ts index c8743642f54ca..aea7b207abf91 100644 --- a/x-pack/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 @@ -27,7 +27,7 @@ import { STATEFUL_ROLES_ROOT_PATH } from '@kbn/es'; import { DeploymentAgnosticCommonServices, services } from '../services'; import { AI_ASSISTANT_SNAPSHOT_REPO_PATH, LOCAL_PRODUCT_DOC_PATH } from './common_paths'; -interface CreateTestConfigOptions { +interface CreateTestConfigOptions { esServerArgs?: string[]; kbnServerArgs?: string[]; services?: T; @@ -61,7 +61,9 @@ export function createStatefulTestConfig { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/assignees.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/assignees.ts index bc9f6695cb2aa..0465c6037a403 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/assignees.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/assignees.ts @@ -9,7 +9,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont import { getPostCaseRequest } from '../../../../common/lib/mock'; import { createCase, updateCase, findCases, deleteAllCaseItems } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/push_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/push_case.ts index c1ebc54f23a93..54b2faefec626 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/push_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/cases/push_case.ts @@ -22,7 +22,6 @@ import { getServiceNowConnector, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts index 81a5b81ff4524..fc24459fd9a01 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts @@ -10,7 +10,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_cont import { getCaseConnectors } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/index.ts index fc8018410ab8c..ead9ac168cf5b 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/index.ts @@ -12,7 +12,6 @@ import { activateUserProfiles, } from '../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile, getService }: FtrProviderContext): void => { describe('cases security and spaces enabled: basic', function () { this.tags('skipFIPS'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/internal/suggest_user_profiles.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/internal/suggest_user_profiles.ts index 427fa7e1c6f3c..5548fa48f2cb7 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/internal/suggest_user_profiles.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/basic/internal/suggest_user_profiles.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { deleteAllCaseItems, suggestUserProfiles } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_alerts_attached_to_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_alerts_attached_to_case.ts index 9427bc2dda279..1abd8d67ad7f7 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_alerts_attached_to_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_alerts_attached_to_case.ts @@ -27,7 +27,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_cases.ts index f25584463e28a..40e5530087172 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/alerts/get_cases.ts @@ -34,7 +34,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/external_references.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/external_references.ts index 662abf2f11467..6de70edc2c224 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/external_references.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/external_references.ts @@ -34,7 +34,6 @@ import { findCaseUserActions, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/persistable_state.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/persistable_state.ts index 0aa37bbcb46b2..c5665530f333f 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/persistable_state.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/attachments_framework/persistable_state.ts @@ -32,7 +32,6 @@ import { findCaseUserActions, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/bulk_create_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/bulk_create_cases.ts index d3b8ce11c912e..051e23f98e30e 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/bulk_create_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/bulk_create_cases.ts @@ -32,7 +32,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/categories/get_categories.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/categories/get_categories.ts index 914a317a308f4..9a4cb4e3b17d4 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/categories/get_categories.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/categories/get_categories.ts @@ -22,7 +22,6 @@ import { obsSec, } from '../../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts index e681ddd54cd3e..8f9909c69e04a 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/find_cases.ts @@ -53,7 +53,6 @@ interface CaseAttributes { }; } -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/get_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/get_case.ts index 45a6823a454b6..20fe91e879c06 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/get_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/get_case.ts @@ -40,7 +40,6 @@ import { } from '../../../../common/lib/authentication/users'; import { getUserInfo } from '../../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/import_export.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/import_export.ts index 253129f1f1165..6bc694214409d 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/import_export.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/import_export.ts @@ -43,7 +43,6 @@ import { import { getPostCaseRequest, postCommentUserReq } from '../../../../common/lib/mock'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestService = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts index 406f92c51fe1b..d260a4e4245f8 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/migrations.ts @@ -23,7 +23,6 @@ import { import { superUser } from '../../../../common/lib/authentication/users'; import { findAttachments } from '../../../../common/lib/api/attachments'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/post_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/post_case.ts index 306188d3a0a12..a4db264c5dd04 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/post_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/post_case.ts @@ -37,7 +37,6 @@ import { } from '../../../../common/lib/authentication/users'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/reporters/get_reporters.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/reporters/get_reporters.ts index 1a6eedc6282de..69f0aeaaccee3 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/reporters/get_reporters.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/reporters/get_reporters.ts @@ -23,7 +23,6 @@ import { } from '../../../../../common/lib/authentication/users'; import { getUserInfo } from '../../../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/resolve_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/resolve_case.ts index e361c3064162f..674653e0c4783 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/resolve_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/resolve_case.ts @@ -28,7 +28,6 @@ import { obsSec, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/tags/get_tags.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/tags/get_tags.ts index 118dcf71cb058..59ee1a0326079 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/tags/get_tags.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/cases/tags/get_tags.ts @@ -22,7 +22,6 @@ import { obsSec, } from '../../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/find_comments.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/find_comments.ts index 9b8241027bd5d..86a76145ed199 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/find_comments.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/find_comments.ts @@ -43,7 +43,6 @@ import { obsSecRead, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/get_comment.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/get_comment.ts index 67dbbe4dd2b65..936a189f303d6 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/get_comment.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/get_comment.ts @@ -28,7 +28,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts index 10e049f7a7159..9b29c9effbc7a 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/migrations.ts @@ -11,7 +11,6 @@ import type { AlertAttachment } from '@kbn/cases-plugin/common/types/domain'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { deleteAllCaseItems, getComment } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/patch_comment.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/patch_comment.ts index 7fa5a6999b778..00cbc72f9af0d 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/patch_comment.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/comments/patch_comment.ts @@ -47,7 +47,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/get_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/get_configure.ts index d5b47ae7d5867..4a0efe2f8d64f 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/get_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/get_configure.ts @@ -34,7 +34,6 @@ import { obsSec, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts index 09548b44c91a2..5fef83523a188 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/migrations.ts @@ -14,7 +14,6 @@ import { getConnectorMappingsFromES, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/patch_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/patch_configure.ts index b81ebddbdd7bd..3d3c61dafa22c 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/patch_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/patch_configure.ts @@ -34,7 +34,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/post_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/post_configure.ts index 361a3e516e8ae..9dcec586e2be4 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/post_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/configure/post_configure.ts @@ -36,7 +36,6 @@ import { testDisabled, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/files/post_file.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/files/post_file.ts index 03406b824fe26..9dbed6697c54c 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/files/post_file.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/files/post_file.ts @@ -31,7 +31,6 @@ import { deleteAllFiles, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index.ts index 57869d7534649..c50ccb85af244 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext): void => { describe('Common', function () { /** diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts index eb73f4c74c623..072ab83e6296f 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts @@ -12,7 +12,6 @@ import { activateUserProfiles, } from '../../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile, getService }: FtrProviderContext): void => { describe('cases security and spaces enabled: trial', function () { before(async () => { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_delete_file_attachments.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_delete_file_attachments.ts index 9ff5bde9ce5fd..76797e8d60802 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_delete_file_attachments.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_delete_file_attachments.ts @@ -44,7 +44,6 @@ import { } from '../../../../common/users'; import { roles as api_int_roles } from '../../../../common/roles'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_attachments.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_attachments.ts index c20d0dc538710..6a6793b1018b1 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_attachments.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_attachments.ts @@ -43,7 +43,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_cases.ts index ead77e9f42d98..ff6a5167d7d49 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/bulk_get_cases.ts @@ -29,7 +29,6 @@ import { obsSec, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/find_user_actions.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/find_user_actions.ts index a5286bfcb9478..65c79b8996f98 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/find_user_actions.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/find_user_actions.ts @@ -40,7 +40,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/get_connectors.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/get_connectors.ts index 1fc79201ec532..034cf7f5c7f52 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/get_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/get_connectors.ts @@ -12,7 +12,6 @@ import { createCase, deleteAllCaseItems } from '../../../../common/lib/api'; import { getPostCaseRequest } from '../../../../common/lib/mock'; import { getConnectors } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts index 9c08ff3688b31..9b0e6464edf5f 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics.ts @@ -23,7 +23,6 @@ import { } from '../../../../../common/lib/authentication/users'; import { getPostCaseRequest } from '../../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_actions.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_actions.ts index ba2e77e2b73aa..756cadf0f32db 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_actions.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_actions.ts @@ -17,7 +17,6 @@ import { getCaseMetrics, } from '../../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts index 1654e6ae67123..abd2f600ec757 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_alerts.ts @@ -18,7 +18,6 @@ import { } from '../../../../../common/lib/api'; import { arraysToEqual } from '../../../../../common/lib/validation'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_connectors.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_connectors.ts index 993caefe13a8b..8bdc5d6735898 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_case_metrics_connectors.ts @@ -19,7 +19,6 @@ import { updateCase, } from '../../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts index f1bb1335be3ac..45a320046c8f0 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/metrics/get_cases_metrics.ts @@ -27,7 +27,6 @@ import { } from '../../../../../common/lib/api'; import { getPostCaseRequest, postCaseReq } from '../../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/replace_custom_field.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/replace_custom_field.ts index d5bd8cb82c472..f0e400e52b4c9 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/replace_custom_field.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/replace_custom_field.ts @@ -28,7 +28,6 @@ import { superUser, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts index e4ae6c03ea28b..3556da445f285 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/search_cases.ts @@ -32,7 +32,6 @@ import { obsSec, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts index b38f9aa2dd18a..b12835eb8ac3e 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/internal/user_actions_get_users.ts @@ -36,7 +36,6 @@ import { globalRead, } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts index 1e092aa8035a9..05bcc775aa49b 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/kibana_alerting_cases_index.ts @@ -25,7 +25,6 @@ import { } from '../../../common/lib/api'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const esArchiver = getService('esArchiver'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/migrations.ts index f4e8033d6d70c..f1a7364452bad 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/migrations.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext): void => { describe('Common migrations', function () { // Migrations diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/telemetry.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/telemetry.ts index b57570f34c933..d2ed6307f821c 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/telemetry.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/telemetry.ts @@ -18,7 +18,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { superUser } from '../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/find_user_actions.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/find_user_actions.ts index f85dba9a0800b..59a5db2ee1423 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/find_user_actions.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/find_user_actions.ts @@ -39,7 +39,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/get_user_action_stats.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/get_user_action_stats.ts index d701da43b2ea8..f6e59fab412d1 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/get_user_action_stats.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/get_user_action_stats.ts @@ -60,7 +60,6 @@ const getCaseUpdateData = (id: string, version: string) => ({ version, }); -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts index 3a50212104e11..3d988528c4d36 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts @@ -13,7 +13,6 @@ import { UserActionTypes } from '@kbn/cases-plugin/common/types/domain'; import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; import { deleteAllCaseItems, findCaseUserActions } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default function createGetTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/index.ts index 46e9c4b5b7d39..1aa4961901d4d 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; import { createSpacesAndUsers, deleteSpacesAndUsers } from '../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile, getService }: FtrProviderContext): void => { describe('cases security and spaces enabled: no_public_base_url', function () { before(async () => { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/push.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/push.ts index 6bf9eac8d842d..b3d3c48e3de3a 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/push.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/no_public_base_url/push.ts @@ -28,7 +28,6 @@ import { getRecordingServiceNowSimulatorServer, } from '../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/attachments_framework/registered_persistable_state_trial.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/attachments_framework/registered_persistable_state_trial.ts index cdab3aceda608..9cb7ecd778eab 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/attachments_framework/registered_persistable_state_trial.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/attachments_framework/registered_persistable_state_trial.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/assignees.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/assignees.ts index 89021c65d6a1a..0573d2792785a 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/assignees.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/assignees.ts @@ -22,7 +22,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { superUser } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/find_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/find_cases.ts index b4cd312330d58..eca28a49c2577 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/find_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/find_cases.ts @@ -22,7 +22,6 @@ import { secOnlySpacesAll, superUser } from '../../../../common/lib/authenticati import { createUsersAndRoles, deleteUsersAndRoles } from '../../../../common/lib/authentication'; import { securitySolutionOnlyAllSpacesRole } from '../../../../common/lib/authentication/roles'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/patch_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/patch_case.ts index 7ed523844b2bf..c4ef414d600d4 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/patch_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/patch_case.ts @@ -17,7 +17,7 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; export const defaultUser = { email: null, full_name: null, username: 'elastic' }; -// eslint-disable-next-line import/no-default-export + export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/post_case.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/post_case.ts index 71812b9965cf5..55ca2bb087f52 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/post_case.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/post_case.ts @@ -15,7 +15,6 @@ import { } from '../../../../common/lib/api'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/user_actions/find_user_actions.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/user_actions/find_user_actions.ts index 47dbe696c38be..eb21960493b4c 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/user_actions/find_user_actions.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/cases/user_actions/find_user_actions.ts @@ -22,7 +22,6 @@ import { import type { FtrProviderContext } from '../../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_configure.ts index 4ed9f2b3b40a8..0005306d5305e 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_configure.ts @@ -22,7 +22,6 @@ import { createConnector, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const actionsRemover = new ActionsRemover(supertest); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts index 78773959d5451..96facc7b77e67 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts @@ -22,7 +22,6 @@ import { } from '../../../../common/lib/api'; import { noCasesConnectors } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/index.ts index d283cf9b165cb..fb255052bdcae 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext): void => { describe('configuration tests', function () { loadTestFile(require.resolve('./get_configure')); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/patch_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/patch_configure.ts index 1fa4d7d7acbf6..52792008ec7fc 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/patch_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/patch_configure.ts @@ -23,7 +23,6 @@ import { getServiceNowSimulationServer, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/post_configure.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/post_configure.ts index 4a232aa5139c9..40ef0ae056173 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/post_configure.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/configure/post_configure.ts @@ -22,7 +22,6 @@ import { createConnector, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/connectors/cases/cases_connector.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/connectors/cases/cases_connector.ts index 12f53c1ea7e91..e8bc3e39cc444 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/connectors/cases/cases_connector.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/connectors/cases/cases_connector.ts @@ -64,7 +64,6 @@ import { } from '../../../../../common/users'; import { createUsersAndRoles, deleteUsersAndRoles } from '../../../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/create_comment_sub_privilege.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/create_comment_sub_privilege.ts index e3a5269ee6fc8..4c049e1066abc 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/create_comment_sub_privilege.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/create_comment_sub_privilege.ts @@ -32,7 +32,6 @@ import { secOnlyCreateComment, } from '../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/delete_sub_privilege.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/delete_sub_privilege.ts index 2552f4481bd4b..520b7e38dc094 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/delete_sub_privilege.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/delete_sub_privilege.ts @@ -29,7 +29,6 @@ import { secOnlyNoDelete, } from '../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/index.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/index.ts index 37602386152cf..8b61c7c88ca67 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/index.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/index.ts @@ -12,7 +12,6 @@ import { activateUserProfiles, } from '../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile, getService }: FtrProviderContext): void => { describe('cases security and spaces enabled: trial', function () { before(async () => { diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/bulk_delete_file_attachments.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/bulk_delete_file_attachments.ts index 471466326f9f0..2bcaec472c4cc 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/bulk_delete_file_attachments.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/bulk_delete_file_attachments.ts @@ -27,7 +27,6 @@ import { } from '../../../../common/users'; import { roles as api_int_roles } from '../../../../common/roles'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_connectors.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_connectors.ts index a64ec64842d62..b755e50d984c7 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_connectors.ts @@ -43,7 +43,6 @@ import { import { findCaseUserActions } from '../../../../common/lib/api/user_actions'; import { getPostCaseRequest, postCommentUserReq } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_user_action_stats.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_user_action_stats.ts index 9144ff88ba25e..88f9d2cf27821 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_user_action_stats.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/get_user_action_stats.ts @@ -24,7 +24,6 @@ import { updateCase, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/observables.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/observables.ts index 1ccb6aab0ce5d..b2b1a9e5cc2ce 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/observables.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/observables.ts @@ -21,7 +21,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/similar_cases.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/similar_cases.ts index 336afea7a2c07..a770ef150a8c5 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/similar_cases.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/similar_cases.ts @@ -18,7 +18,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/suggest_user_profiles.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/suggest_user_profiles.ts index 1e5998f1338e4..bc7fc84e83ed0 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/suggest_user_profiles.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/suggest_user_profiles.ts @@ -16,7 +16,6 @@ import { import type { Role, User } from '../../../../common/lib/authentication/types'; import { createUsersAndRoles, deleteUsersAndRoles } from '../../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/user_actions_get_users.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/user_actions_get_users.ts index bdac26263a57d..fbc1a4d53597c 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/user_actions_get_users.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/internal/user_actions_get_users.ts @@ -22,7 +22,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context import { createUsersAndRoles, deleteUsersAndRoles } from '../../../../common/lib/authentication'; import { secOnlySpacesAll, superUser } from '../../../../common/lib/authentication/users'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/user_profiles/get_current.ts b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/user_profiles/get_current.ts index ae6b588810839..081236deb0093 100644 --- a/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/user_profiles/get_current.ts +++ b/x-pack/platform/test/cases_api_integration/security_and_spaces/tests/trial/user_profiles/get_current.ts @@ -26,7 +26,6 @@ import { import { findCaseUserActions } from '../../../../common/lib/api/user_actions'; import { getPostCaseRequest, postCommentUserReq } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/config.ts b/x-pack/platform/test/cases_api_integration/spaces_only/config.ts index 53cfdb6f9285d..21a9041c2c55e 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/config.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'trial', diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/alerts/get_cases.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/alerts/get_cases.ts index 963520f42694a..fb40ce54bcdd0 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/alerts/get_cases.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/alerts/get_cases.ts @@ -18,7 +18,6 @@ import { } from '../../../../common/lib/api'; import { validateCasesFromAlertIDResponse } from '../../../../common/lib/validation'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/delete_cases.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/delete_cases.ts index a2ae8811f1db2..681821442ac6e 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/delete_cases.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/delete_cases.ts @@ -17,7 +17,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/find_cases.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/find_cases.ts index 2c49656e522b2..1bcdbbe8a357e 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/find_cases.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/find_cases.ts @@ -16,7 +16,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/get_case.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/get_case.ts index da58944529453..56d986d2121f4 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/get_case.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/get_case.ts @@ -21,7 +21,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/patch_cases.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/patch_cases.ts index 1ceafefbc6de9..7891f357b07c3 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/patch_cases.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/patch_cases.ts @@ -17,7 +17,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/post_case.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/post_case.ts index 1a6e3c9bf635b..5c7920bfb773c 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/post_case.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/post_case.ts @@ -18,7 +18,6 @@ import { import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/reporters/get_reporters.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/reporters/get_reporters.ts index f8d551848841a..c1f77fd6bdd1d 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/reporters/get_reporters.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/reporters/get_reporters.ts @@ -16,7 +16,6 @@ import { getReporters, } from '../../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/tags/get_tags.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/tags/get_tags.ts index aca92b3d011bd..8d9afd0f8c7de 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/tags/get_tags.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/cases/tags/get_tags.ts @@ -16,7 +16,6 @@ import { } from '../../../../../common/lib/api'; import { getPostCaseRequest } from '../../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/delete_comment.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/delete_comment.ts index ad9b148e2f30b..d199dcde2e22b 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/delete_comment.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/delete_comment.ts @@ -19,7 +19,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/find_comments.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/find_comments.ts index 565482305fcbc..e99d4c022d925 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/find_comments.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/find_comments.ts @@ -20,7 +20,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/get_comment.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/get_comment.ts index 5cd84693ac5c3..078f14b84ba37 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/get_comment.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/get_comment.ts @@ -17,7 +17,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/patch_comment.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/patch_comment.ts index 239b72e1a2cb2..b4c9250d0bc5f 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/patch_comment.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/patch_comment.ts @@ -21,7 +21,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/post_comment.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/post_comment.ts index 9f94e0bd27551..2d1e2b22f208a 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/post_comment.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/comments/post_comment.ts @@ -18,7 +18,6 @@ import { deleteAllCaseItems, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/get_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/get_configure.ts index b74221a08b4ad..3439877a13789 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/get_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/get_configure.ts @@ -19,7 +19,6 @@ import { getAuthWithSuperUser, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/patch_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/patch_configure.ts index 1d027392edccb..4ddb5a977ad43 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/patch_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/patch_configure.ts @@ -19,7 +19,6 @@ import { } from '../../../../common/lib/api'; import { nullUser } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/post_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/post_configure.ts index aa430f463ff1a..23cb70e972b93 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/post_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/configure/post_configure.ts @@ -18,7 +18,6 @@ import { } from '../../../../common/lib/api'; import { nullUser } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/files/post_file.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/files/post_file.ts index 72c23cc82f1a4..246e19d1253e8 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/files/post_file.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/files/post_file.ts @@ -20,7 +20,6 @@ import { deleteAllFiles, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { // const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/index.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/index.ts index eeba5ba3c9cf8..f45a5b7d9babe 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/index.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext): void => { describe('Common', function () { loadTestFile(require.resolve('./alerts/get_cases')); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/bulk_create_attachments.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/bulk_create_attachments.ts index 2ea9831c0c782..29a81b99c8c5d 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/bulk_create_attachments.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/bulk_create_attachments.ts @@ -18,7 +18,6 @@ import { deleteAllCaseItems, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertestWithoutAuth = getService('supertestWithoutAuth'); const es = getService('es'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/suggest_user_profiles.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/suggest_user_profiles.ts index d98f99808290f..5c2f6f8f8b776 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/suggest_user_profiles.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/internal/suggest_user_profiles.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import { suggestUserProfiles } from '../../../../common/lib/api'; import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts index 9cf5bc099df5b..03d7350020614 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/common/metrics/get_cases_metrics.ts @@ -15,7 +15,6 @@ import { getCasesMetrics, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/cases/push_case.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/cases/push_case.ts index 97856537d1712..15c864df73c0e 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/cases/push_case.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/cases/push_case.ts @@ -20,7 +20,6 @@ import { getServiceNowSimulationServer, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_configure.ts index 3e2d67d96cc13..28d9b7feed476 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_configure.ts @@ -24,7 +24,6 @@ import { } from '../../../../common/lib/api'; import { nullUser } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts index 076b6a4e14370..47923d73b1038 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts @@ -23,7 +23,6 @@ import { getResilientConnector, } from '../../../../common/lib/api'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/index.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/index.ts index d283cf9b165cb..fb255052bdcae 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/index.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext): void => { describe('configuration tests', function () { loadTestFile(require.resolve('./get_configure')); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/patch_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/patch_configure.ts index 2857997dca04a..5a1f2e69ed0ac 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/patch_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/patch_configure.ts @@ -26,7 +26,6 @@ import { } from '../../../../common/lib/api'; import { nullUser } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/post_configure.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/post_configure.ts index 5172268225067..f01fa3c546a8d 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/post_configure.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/configure/post_configure.ts @@ -25,7 +25,6 @@ import { } from '../../../../common/lib/api'; import { nullUser } from '../../../../common/lib/mock'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext): void => { const supertest = getService('supertest'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/index.ts b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/index.ts index 511ca7148ca8d..9b8a7cfcc0d03 100644 --- a/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/index.ts +++ b/x-pack/platform/test/cases_api_integration/spaces_only/tests/trial/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../../../common/ftr_provider_context'; import { createSpaces, deleteSpaces } from '../../../common/lib/authentication'; -// eslint-disable-next-line import/no-default-export export default ({ loadTestFile, getService }: FtrProviderContext): void => { describe('cases spaces only enabled: trial', function () { this.tags('skipFIPS'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts index 9596a24bb5228..45ba01a45ffd6 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts @@ -15,7 +15,6 @@ import { FtrProviderContext } from '../ftr_provider_context'; * a major change in a major release, we handle it properly. */ -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const reportingAPI = getService('reportingAPI'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts index 75dedb2a70757..7f04813e0ace6 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2.ts @@ -21,7 +21,6 @@ const ECOM_SAVED_SEARCH_ID = '6091ead0-1c6d-11ea-a100-8589bb9d7c6b'; const TIMELESS_SAVED_OBJECTS = 'x-pack/test/functional/fixtures/kbn_archiver/reporting/timeless'; const TIMELESS_SAVED_SEARCH_WITH_QUERY = 'fc3e8ff0-9844-11ed-8e25-6b737289a7c8'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2_esql.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2_esql.ts index b4dd9d1c12035..51d3d24381f84 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2_esql.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/csv_v2_esql.ts @@ -14,7 +14,6 @@ import type { ReportApiJSON } from '@kbn/reporting-common/types'; import rison from '@kbn/rison'; import { FtrProviderContext } from '../../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default ({ getService }: FtrProviderContext) => { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts index c48dcb97b37bf..266065e120eb6 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/csv/generate_csv_discover.ts @@ -11,7 +11,6 @@ import type { JobParamsCSV } from '@kbn/reporting-export-types-csv-common'; import type { Filter } from '@kbn/es-query'; import type { FtrProviderContext } from '../../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/datastream.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/datastream.ts index 7f324c112adb9..dca857d09a23f 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/datastream.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/datastream.ts @@ -8,7 +8,6 @@ import { expect } from 'expect'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/default_reporting_user_role.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/default_reporting_user_role.ts index b559463eee6e5..d2927afa40601 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/default_reporting_user_role.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/default_reporting_user_role.ts @@ -7,7 +7,6 @@ import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); const security = getService('security'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/disable_scheduled_reports.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/disable_scheduled_reports.ts index e7248029c2011..9f632225debb8 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/disable_scheduled_reports.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/disable_scheduled_reports.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import { SerializedSearchSourceFields } from '@kbn/data-plugin/common'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/ilm_migration_apis.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/ilm_migration_apis.ts index 70709ebf4f410..55de4a0c1f7e7 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/ilm_migration_apis.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/ilm_migration_apis.ts @@ -10,7 +10,6 @@ import { INTERNAL_ROUTES } from '@kbn/reporting-common'; import { ILM_POLICY_NAME } from '@kbn/reporting-common/constants'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const es = getService('es'); const supertestWithoutAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/index.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/index.ts index e3d8a55ac96dc..13685a36e8724 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/index.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/index.ts @@ -7,7 +7,6 @@ import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService, loadTestFile }: FtrProviderContext) { describe('Reporting APIs', function () { before(async () => { diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts index 3e517468817db..58caa61f770c2 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_jobs.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import { ReportApiJSON } from '@kbn/reporting-common/types'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const spacesService = getService('spaces'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_scheduled_reports.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_scheduled_reports.ts index 0eca98c4d7aa4..fdb51e8034dc0 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_scheduled_reports.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/list_scheduled_reports.ts @@ -32,7 +32,7 @@ const csvPayload: JobParamsCSV = { columns: [], version: '7.13.0', }; -// eslint-disable-next-line import/no-default-export + export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/network_policy.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/network_policy.ts index f608c8b7f250a..48f1f33ddf972 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/network_policy.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/network_policy.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); const retry = getService('retry'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/validation.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/validation.ts index e5181c1c16776..44f686708466f 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/validation.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/screenshot/validation.ts @@ -48,7 +48,6 @@ const createPngV2Params = (testWidth: number | string) => `title:\'Tag Cloud of Names\',` + `version:\'8.2.0\')`; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); const retry = getService('retry'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/security_roles_privileges.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/security_roles_privileges.ts index c51536ca3c5a6..287b359ce2135 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/security_roles_privileges.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/security_roles_privileges.ts @@ -11,7 +11,6 @@ import { SearchHit } from '@elastic/elasticsearch/lib/api/types'; import { SerializedConcreteTaskInstance } from '@kbn/task-manager-plugin/server/task'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts b/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts index 3dd9b96147f37..6252504fbb7ce 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_and_security/spaces.ts @@ -11,7 +11,6 @@ import { lastValueFrom } from 'rxjs'; import { filter, first, map, switchMap, tap, timeout } from 'rxjs'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const spacesService = getService('spaces'); const kibanaServer = getService('kibanaServer'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts b/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts index ade8efab7166c..036e8881a7690 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_without_security/csv/job_apis_csv.ts @@ -22,7 +22,6 @@ const apiResponseFields = [ 'status', ]; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); const supertestNoAuth = getService('supertestWithoutAuth'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_without_security/index.ts b/x-pack/platform/test/reporting_api_integration/reporting_without_security/index.ts index 4f4d4b116a5c4..a9e38a4bf6f27 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_without_security/index.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_without_security/index.ts @@ -7,7 +7,6 @@ import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ loadTestFile, getService }: FtrProviderContext) { describe('Reporting API Integration Tests with Security disabled', function () { this.tags('skipFIPS'); diff --git a/x-pack/platform/test/reporting_api_integration/reporting_without_security/schedule.ts b/x-pack/platform/test/reporting_api_integration/reporting_without_security/schedule.ts index 9bd29ef4b3fdd..684b97437d06d 100644 --- a/x-pack/platform/test/reporting_api_integration/reporting_without_security/schedule.ts +++ b/x-pack/platform/test/reporting_api_integration/reporting_without_security/schedule.ts @@ -8,7 +8,6 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const reportingAPI = getService('reportingAPI'); diff --git a/x-pack/platform/test/saved_object_api_integration/low-level/config.ts b/x-pack/platform/test/saved_object_api_integration/low-level/config.ts index 1e0f73dfaf166..6fc7d569d9170 100644 --- a/x-pack/platform/test/saved_object_api_integration/low-level/config.ts +++ b/x-pack/platform/test/saved_object_api_integration/low-level/config.ts @@ -7,5 +7,4 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('low-level', { license: 'basic' }); diff --git a/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_basic.ts b/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_basic.ts index 902f8baf026a8..f5e2caa4957fa 100644 --- a/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_basic.ts +++ b/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_basic.ts @@ -7,5 +7,4 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { license: 'basic' }); diff --git a/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_trial.ts b/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_trial.ts index 0481a6009d722..f30bd34797c7b 100644 --- a/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_trial.ts +++ b/x-pack/platform/test/saved_object_api_integration/security_and_spaces/config_trial.ts @@ -7,5 +7,4 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { license: 'trial' }); diff --git a/x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts b/x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts index 620f989bd977f..58dc5a2da2285 100644 --- a/x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts +++ b/x-pack/platform/test/saved_object_api_integration/spaces_only/config.ts @@ -7,5 +7,4 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'basic' }); diff --git a/x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts b/x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts index 228d67d316059..987176c4c7f5a 100644 --- a/x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts +++ b/x-pack/platform/test/saved_object_api_integration/user_profiles/config.ts @@ -7,5 +7,4 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('user_profiles', { license: 'basic' }); diff --git a/x-pack/platform/test/spaces_api_integration/common/config.ts b/x-pack/platform/test/spaces_api_integration/common/config.ts index f54c65f3da387..5456a558d9830 100644 --- a/x-pack/platform/test/spaces_api_integration/common/config.ts +++ b/x-pack/platform/test/spaces_api_integration/common/config.ts @@ -51,7 +51,7 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions) kibanaServer: config.kibana.functional.get('services.kibanaServer'), spaces: config.xpack.api.get('services.spaces'), usageAPI: config.xpack.api.get('services.usageAPI'), - roleScopedSupertest: services.roleScopedSupertest, + spacesSupertest: services.spacesSupertest, samlAuth: () => {}, }, junit: { diff --git a/x-pack/platform/test/spaces_api_integration/common/services.ts b/x-pack/platform/test/spaces_api_integration/common/services.ts index fed15b9019419..9de6ae45390d0 100644 --- a/x-pack/platform/test/spaces_api_integration/common/services.ts +++ b/x-pack/platform/test/spaces_api_integration/common/services.ts @@ -6,7 +6,7 @@ */ import { services as apiIntegrationServices } from '../../api_integration/services'; -import { RoleScopedSupertestProvider } from '../deployment_agnostic/services/role_scoped_supertest'; +import { SpacesSupertestProvider } from '../deployment_agnostic/services/spaces_supertest'; export const services = { es: apiIntegrationServices.es, @@ -17,5 +17,6 @@ export const services = { supertestWithoutAuth: apiIntegrationServices.supertestWithoutAuth, usageAPI: apiIntegrationServices.usageAPI, spaces: apiIntegrationServices.spaces, - roleScopedSupertest: RoleScopedSupertestProvider, + // custom role scoped service for spaces API integration tests + spacesSupertest: SpacesSupertestProvider, }; diff --git a/x-pack/platform/test/spaces_api_integration/common/services/test_data_loader.ts b/x-pack/platform/test/spaces_api_integration/common/services/test_data_loader.ts index 56587dabf38a9..8db556d86ca6a 100644 --- a/x-pack/platform/test/spaces_api_integration/common/services/test_data_loader.ts +++ b/x-pack/platform/test/spaces_api_integration/common/services/test_data_loader.ts @@ -86,7 +86,7 @@ export function getTestDataLoader({ getService }: Pick { const response = await getAggregatedSpaceData(es, [ @@ -813,7 +813,7 @@ export function copyToSpaceTestSuiteFactory(context: DeploymentAgnosticFtrProvid // test data only allows for the following spaces as the copy origin expect(['default', 'space_1']).to.contain(spaceId); await testDataLoader.createFtrSpaces(); - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); }); after(async () => { diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/create.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/create.agnostic.ts index 04d31b114d747..2cc337e107c53 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/create.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/create.agnostic.ts @@ -34,7 +34,7 @@ interface CreateTestDefinition { export function createTestSuiteFactory({ getService }: DeploymentAgnosticFtrProviderContext) { const esArchiver = getService('esArchiver'); - const roleScopedSupertest = getService('roleScopedSupertest'); + const spacesSupertest = getService('spacesSupertest'); const config = getService('config'); const isServerless = config.get('serverless'); const noop = () => undefined; @@ -118,7 +118,7 @@ export function createTestSuiteFactory({ getService }: DeploymentAgnosticFtrProv let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); }); after(async () => { diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/delete.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/delete.agnostic.ts index f0185893124df..8abe8301da446 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/delete.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/delete.agnostic.ts @@ -36,7 +36,7 @@ interface DeleteTestDefinition { export function deleteTestSuiteFactory({ getService }: DeploymentAgnosticFtrProviderContext) { const esArchiver = getService('esArchiver'); const es = getService('es'); - const roleScopedSupertest = getService('roleScopedSupertest'); + const spacesSupertest = getService('spacesSupertest'); const retry = getService('retry'); const createExpectResult = (expectedResult: any) => (resp: { [key: string]: any }) => { @@ -182,14 +182,17 @@ export function deleteTestSuiteFactory({ getService }: DeploymentAgnosticFtrProv size: 100, query: { terms: { type: ['index-pattern'] } }, }); - const docs = multiNamespaceResponse.hits.hits; + const docs = multiNamespaceResponse.hits.hits as Array<{ + _id: string; + _source?: { namespaces: string[] }; + }>; // Just 21 results, since spaces_2_only, conflict_1a_space_2, conflict_1b_space_2, conflict_1c_space_2, and conflict_2_space_2 got deleted. expect(docs).length(21); - docs.forEach((doc) => () => { - const containsSpace2 = doc?._source?.namespaces.includes('space_2'); + docs.forEach((doc: { _id: string; _source?: { namespaces: string[] } }) => { + const containsSpace2 = doc._source?.namespaces.includes('space_2'); expect(containsSpace2).to.eql(false); }); - const space2OnlyObjExists = docs.some((x) => x._id === CASES.SPACE_2_ONLY.id); + const space2OnlyObjExists = docs.some((x: { _id: string }) => x._id === CASES.SPACE_2_ONLY.id); expect(space2OnlyObjExists).to.eql(false); }; @@ -224,7 +227,7 @@ export function deleteTestSuiteFactory({ getService }: DeploymentAgnosticFtrProv let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); }); after(async () => { await supertest.destroy(); diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/get.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/get.agnostic.ts index e9b065dc75321..35bd195755fcf 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/get.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/get.agnostic.ts @@ -127,11 +127,11 @@ export function getTestSuiteFactory(context: DeploymentAgnosticFtrProviderContex (describeFn: DescribeFn) => (description: string, { user, currentSpaceId, spaceId, tests }: GetTestDefinition) => { describeFn(description, () => { - const roleScopedSupertest = context.getService('roleScopedSupertest'); + const spacesSupertest = context.getService('spacesSupertest'); let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); await esArchiver.load( 'x-pack/platform/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces' ); diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/get_all.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/get_all.agnostic.ts index eab672258540e..5a59217765508 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/get_all.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/get_all.agnostic.ts @@ -170,10 +170,10 @@ export function getAllTestSuiteFactory(context: DeploymentAgnosticFtrProviderCon (describeFn: DescribeFn) => (description: string, { user, spaceId, tests }: GetAllTestDefinition) => { describeFn(description, () => { - const roleScopedSupertest = context.getService('roleScopedSupertest'); + const spacesSupertest = context.getService('spacesSupertest'); let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); await esArchiver.load( 'x-pack/platform/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces' ); diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/resolve_copy_to_space_conflicts.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/resolve_copy_to_space_conflicts.agnostic.ts index 5e0b7cd3096f4..d18e5e3e7fc12 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/resolve_copy_to_space_conflicts.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/resolve_copy_to_space_conflicts.agnostic.ts @@ -75,7 +75,7 @@ const getDestinationSpace = (originSpaceId?: string) => { export function resolveCopyToSpaceConflictsSuite(context: DeploymentAgnosticFtrProviderContext) { const testDataLoader = getTestDataLoader(context); - const roleScopedSupertest = context.getService('roleScopedSupertest'); + const spacesSupertest = context.getService('spacesSupertest'); const supertestWithAuth = context.getService('supertest'); const config = context.getService('config'); const license = config.get('esTestCluster.license'); @@ -84,7 +84,7 @@ export function resolveCopyToSpaceConflictsSuite(context: DeploymentAgnosticFtrP const getSupertestWithAuth = async () => license === 'basic' && !isServerless ? supertestWithAuth - : await roleScopedSupertest.getSupertestWithRoleScope( + : await spacesSupertest.getSupertestWithRoleScope( { role: 'admin' }, { withCommonHeaders: true, @@ -540,7 +540,7 @@ export function resolveCopyToSpaceConflictsSuite(context: DeploymentAgnosticFtrP describeFn(description, () => { let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); // test data only allows for the following spaces as the copy origin expect(['default', 'space_1']).to.contain(spaceId); }); diff --git a/x-pack/platform/test/spaces_api_integration/common/suites/update.agnostic.ts b/x-pack/platform/test/spaces_api_integration/common/suites/update.agnostic.ts index e625f217d807a..b1e54c94314ab 100644 --- a/x-pack/platform/test/spaces_api_integration/common/suites/update.agnostic.ts +++ b/x-pack/platform/test/spaces_api_integration/common/suites/update.agnostic.ts @@ -39,7 +39,7 @@ interface UpdateTestDefinition { export function updateTestSuiteFactory(context: DeploymentAgnosticFtrProviderContext) { const esArchiver = context.getService('esArchiver'); - const roleScopedSupertest = context.getService('roleScopedSupertest'); + const spacesSupertest = context.getService('spacesSupertest'); const expectRbacForbidden = (resp: { [key: string]: any }) => { expect(resp.body).to.eql({ @@ -84,7 +84,7 @@ export function updateTestSuiteFactory(context: DeploymentAgnosticFtrProviderCon describeFn(description, () => { let supertest: SupertestWithRoleScopeType; before(async () => { - supertest = await roleScopedSupertest.getSupertestWithRoleScope(user!); + supertest = await spacesSupertest.getSupertestWithRoleScope(user!); await esArchiver.load( 'x-pack/platform/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces' ); diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/serverless.config.base.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/serverless.config.base.ts deleted file mode 100644 index 5701c4055b454..0000000000000 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/serverless.config.base.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ -import path from 'path'; - -import type { ServerlessProjectType } from '@kbn/es'; -import { ScoutTestRunConfigCategory } from '@kbn/scout-info'; -import type { Config, FtrConfigProviderContext } from '@kbn/test'; -import { defineDockerServersConfig, fleetPackageRegistryDockerImage } from '@kbn/test'; - -import type { DeploymentAgnosticCommonServices } from '../services'; -import { services } from '../services'; - -interface CreateTestConfigOptions { - serverlessProject: ServerlessProjectType; - esServerArgs?: string[]; - kbnServerArgs?: string[]; - services?: T; - testFiles: string[]; - junit: { reportName: string }; - suiteTags?: { include?: string[]; exclude?: string[] }; - tier?: 'oblt_logs_essentials'; -} - -// include settings from elasticsearch controller -// https://github.com/elastic/elasticsearch-controller/blob/main/helm/values.yaml -const esServerArgsFromController = { - es: [], - oblt: [ - 'xpack.apm_data.enabled=true', - // for ML, data frame analytics are not part of this project type - 'xpack.ml.dfa.enabled=false', - ], - security: ['xpack.security.authc.api_key.cache.max_keys=70000'], - chat: [], -}; - -// include settings from kibana controller -// https://github.com/elastic/kibana-controller/blob/main/internal/controllers/kibana/config/config_settings.go -const kbnServerArgsFromController = { - es: [ - // useful for testing (also enabled in MKI QA) - '--coreApp.allowDynamicConfigOverrides=true', - ], - oblt: [ - '--coreApp.allowDynamicConfigOverrides=true', - // defined in MKI control plane - '--xpack.uptime.service.manifestUrl=mockDevUrl', - ], - security: [ - '--coreApp.allowDynamicConfigOverrides=true', - // disable fleet task that writes to metrics.fleet_server.* data streams, impacting functional tests - `--xpack.task_manager.unsafe.exclude_task_types=${JSON.stringify(['Fleet-Metrics-Task'])}`, - ], - chat: [], -}; - -export function createServerlessTestConfig( - options: CreateTestConfigOptions -) { - return async ({ readConfigFile }: FtrConfigProviderContext): Promise => { - 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.` - ); - } - - const packageRegistryConfig = path.join(__dirname, './fixtures/package_registry_config.yml'); - const dockerArgs: string[] = ['-v', `${packageRegistryConfig}:/package-registry/config.yml`]; - - /** - * This is used by CI to set the docker registry port - * you can also define this environment variable locally when running tests which - * will spin up a local docker package registry locally for you - * if this is defined it takes precedence over the `packageRegistryOverride` variable - */ - const dockerRegistryPort: string | undefined = process.env.FLEET_PACKAGE_REGISTRY_PORT; - - const svlSharedConfig = await readConfigFile( - require.resolve('../../../serverless/config.base.ts') - ); - - return { - ...svlSharedConfig.getAll(), - - testConfigCategory: ScoutTestRunConfigCategory.API_TEST, - services: { - // services can be customized, but must extend DeploymentAgnosticCommonServices - ...(options.services || services), - }, - dockerServers: defineDockerServersConfig({ - registry: { - enabled: !!dockerRegistryPort, - image: fleetPackageRegistryDockerImage, - portInContainer: 8080, - port: dockerRegistryPort, - args: dockerArgs, - waitForLogLine: 'package manifests loaded', - waitForLogLineTimeoutMs: 60 * 4 * 1000, // 4 minutes - }, - }), - esTestCluster: { - ...svlSharedConfig.get('esTestCluster'), - serverArgs: [ - ...svlSharedConfig.get('esTestCluster.serverArgs'), - // custom native roles are enabled only for search and security projects - ...(options.serverlessProject !== 'oblt' - ? ['xpack.security.authc.native_roles.enabled=true'] - : []), - ...esServerArgsFromController[options.serverlessProject], - ...(options.tier && options.tier === 'oblt_logs_essentials' - ? [ - 'serverless.project_type=observability', - 'serverless.observability.tier=logs_essentials', - ] - : []), - ], - }, - kbnTestServer: { - ...svlSharedConfig.get('kbnTestServer'), - serverArgs: [ - ...svlSharedConfig.get('kbnTestServer.serverArgs'), - ...kbnServerArgsFromController[options.serverlessProject], - `--serverless=${options.serverlessProject}`, - ...(dockerRegistryPort - ? [`--xpack.fleet.registryUrl=http://localhost:${dockerRegistryPort}`] - : []), - ], - }, - testFiles: options.testFiles, - junit: options.junit, - suiteTags: { - include: options.suiteTags?.include, - exclude: [...(options.suiteTags?.exclude || []), 'skipServerless'], - }, - }; - }; -} diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/stateful.config.base.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/stateful.config.base.ts deleted file mode 100644 index 859cd561e0bc2..0000000000000 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/default_configs/stateful.config.base.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ -import path from 'path'; - -import { STATEFUL_ROLES_ROOT_PATH } from '@kbn/es'; -import { - MOCK_IDP_ATTRIBUTE_EMAIL, - MOCK_IDP_ATTRIBUTE_NAME, - MOCK_IDP_ATTRIBUTE_PRINCIPAL, - MOCK_IDP_ATTRIBUTE_ROLES, - MOCK_IDP_ENTITY_ID, - MOCK_IDP_REALM_NAME, -} from '@kbn/mock-idp-utils'; -import { REPO_ROOT } from '@kbn/repo-info'; -import { ScoutTestRunConfigCategory } from '@kbn/scout-info'; -import type { FtrConfigProviderContext } from '@kbn/test'; -import { - defineDockerServersConfig, - esTestConfig, - fleetPackageRegistryDockerImage, - kbnTestConfig, - systemIndicesSuperuser, -} from '@kbn/test'; - -import type { DeploymentAgnosticCommonServices } from '../services'; -import { services } from '../services'; - -interface CreateTestConfigOptions { - esServerArgs?: string[]; - kbnServerArgs?: string[]; - services?: T; - testFiles: string[]; - junit: { reportName: string }; - suiteTags?: { include?: string[]; exclude?: string[] }; -} - -export function createStatefulTestConfig( - options: CreateTestConfigOptions -) { - return async ({ readConfigFile }: FtrConfigProviderContext) => { - 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.` - ); - } - - // if config is executed on CI or locally - const isRunOnCI = process.env.CI; - - const packageRegistryConfig = path.join(__dirname, './fixtures/package_registry_config.yml'); - const dockerArgs: string[] = ['-v', `${packageRegistryConfig}:/package-registry/config.yml`]; - - /** - * This is used by CI to set the docker registry port - * you can also define this environment variable locally when running tests which - * will spin up a local docker package registry locally for you - * if this is defined it takes precedence over the `packageRegistryOverride` variable - */ - const dockerRegistryPort: string | undefined = process.env.FLEET_PACKAGE_REGISTRY_PORT; - - const xPackAPITestsConfig = await readConfigFile( - require.resolve('../../../api_integration/config.ts') - ); - - // TODO: move to kbn-es because currently metadata file has hardcoded entityID and Location - const idpPath = require.resolve( - '@kbn/security-api-integration-helpers/saml/idp_metadata_mock_idp.xml' - ); - const samlIdPPlugin = path.resolve( - __dirname, - '../../../../../test/security_api_integration/plugins/saml_provider' - ); - - const servers = { - kibana: { - ...kbnTestConfig.getUrlParts(systemIndicesSuperuser), - protocol: process.env.TEST_CLOUD ? 'https' : 'http', - }, - elasticsearch: { - ...esTestConfig.getUrlParts(), - protocol: process.env.TEST_CLOUD ? 'https' : 'http', - }, - }; - - const kbnUrl = `${servers.kibana.protocol}://${servers.kibana.hostname}:${servers.kibana.port}`; - - return { - servers, - testConfigCategory: ScoutTestRunConfigCategory.API_TEST, - dockerServers: defineDockerServersConfig({ - registry: { - enabled: !!dockerRegistryPort, - image: fleetPackageRegistryDockerImage, - portInContainer: 8080, - port: dockerRegistryPort, - args: dockerArgs, - waitForLogLine: 'package manifests loaded', - waitForLogLineTimeoutMs: 60 * 4 * 1000, // 4 minutes - }, - }), - testFiles: options.testFiles, - security: { disableTestUser: true }, - // services can be customized, but must extend DeploymentAgnosticCommonServices - services: options.services || services, - junit: options.junit, - suiteTags: { - include: options.suiteTags?.include, - exclude: [...(options.suiteTags?.exclude || []), 'skipStateful'], - }, - - esTestCluster: { - ...xPackAPITestsConfig.get('esTestCluster'), - serverArgs: [ - ...xPackAPITestsConfig.get('esTestCluster.serverArgs'), - 'xpack.security.authc.token.enabled=true', - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.order=0`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.idp.metadata.path=${idpPath}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.idp.entity_id=${MOCK_IDP_ENTITY_ID}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.sp.entity_id=${kbnUrl}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.sp.acs=${kbnUrl}/api/security/saml/callback`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.sp.logout=${kbnUrl}/logout`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.attributes.principal=${MOCK_IDP_ATTRIBUTE_PRINCIPAL}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.attributes.groups=${MOCK_IDP_ATTRIBUTE_ROLES}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.attributes.name=${MOCK_IDP_ATTRIBUTE_NAME}`, - `xpack.security.authc.realms.saml.${MOCK_IDP_REALM_NAME}.attributes.mail=${MOCK_IDP_ATTRIBUTE_EMAIL}`, - ], - files: [ - // Passing the roles that are equivalent to the ones we have in serverless - path.resolve(REPO_ROOT, STATEFUL_ROLES_ROOT_PATH, 'roles.yml'), - ], - }, - kbnTestServer: { - ...xPackAPITestsConfig.get('kbnTestServer'), - serverArgs: [ - ...xPackAPITestsConfig.get('kbnTestServer.serverArgs'), - // if the config is run locally, explicitly enable mock-idp-plugin for UI role selector - ...(isRunOnCI ? [] : ['--mock_idp_plugin.enabled=true']), - // This ensures that we register the Security SAML API endpoints. - // In the real world the SAML config is injected by control plane. - `--plugin-path=${samlIdPPlugin}`, - '--xpack.cloud.id=ftr_fake_cloud_id', - // Ensure that SAML is used as the default authentication method whenever a user navigates to Kibana. In other - // words, Kibana should attempt to authenticate the user using the provider with the lowest order if the Login - // Selector is disabled (replicating Serverless configuration). By declaring `cloud-basic` with a higher - // order, we indicate that basic authentication can still be used, but only if explicitly requested when the - // user navigates to `/login` page directly and enters username and password in the login form. - '--xpack.security.authc.selector.enabled=false', - `--xpack.security.authc.providers=${JSON.stringify({ - saml: { 'cloud-saml-kibana': { order: 0, realm: MOCK_IDP_REALM_NAME } }, - basic: { 'cloud-basic': { order: 1 } }, - })}`, - `--server.publicBaseUrl=${servers.kibana.protocol}://${servers.kibana.hostname}:${servers.kibana.port}`, - ...(dockerRegistryPort - ? [`--xpack.fleet.registryUrl=http://localhost:${dockerRegistryPort}`] - : []), - // @ts-expect-error - ...(options?.kbnTestServer?.serverArgs ?? []), - ], - }, - }; - }; -} diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.config.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.config.ts index b60a3d7523877..42d071ee3da40 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.config.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.config.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../default_configs/serverless.config.base'; -import { services } from '../services'; +import { createServerlessTestConfig } from '../../../api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { deploymentAgnosticSpacesServices } from '../services'; -export default createServerlessTestConfig({ - services, +export default createServerlessTestConfig({ + services: deploymentAgnosticSpacesServices, serverlessProject: 'security', testFiles: [require.resolve('./apis/index.serverless')], junit: { diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.copy_to_space.config.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.copy_to_space.config.ts index b3947f8750f87..a3c1a57493f07 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.copy_to_space.config.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/serverless.copy_to_space.config.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../default_configs/serverless.config.base'; -import { services } from '../services'; +import { createServerlessTestConfig } from '../../../api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { deploymentAgnosticSpacesServices } from '../services'; -export default createServerlessTestConfig({ - services, +export default createServerlessTestConfig({ + services: deploymentAgnosticSpacesServices, serverlessProject: 'security', testFiles: [require.resolve('./apis/copy_to_space/index_trial')], junit: { diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.config_trial.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.config_trial.ts index 6afeb2d1061fe..da72dba8cbc84 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.config_trial.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.config_trial.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../default_configs/stateful.config.base'; -import { services } from '../services'; +import { createStatefulTestConfig } from '../../../api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { deploymentAgnosticSpacesServices } from '../services'; -export default createStatefulTestConfig({ - services, +export default createStatefulTestConfig({ + services: deploymentAgnosticSpacesServices, testFiles: [require.resolve('./apis/index_trial')], junit: { reportName: diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.copy_to_space.config_trial.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.copy_to_space.config_trial.ts index 39ce864280219..2e84014a539d3 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.copy_to_space.config_trial.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/security_and_spaces/stateful.copy_to_space.config_trial.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../default_configs/stateful.config.base'; -import { services } from '../services'; +import { createStatefulTestConfig } from '../../../api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { deploymentAgnosticSpacesServices } from '../services'; -export default createStatefulTestConfig({ - services, +export default createStatefulTestConfig({ + services: deploymentAgnosticSpacesServices, testFiles: [require.resolve('./apis/copy_to_space/index_trial')], junit: { reportName: diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/index.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/index.ts index b1d12284436b0..32d0fd4b6b179 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/index.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/index.ts @@ -5,17 +5,13 @@ * 2.0. */ -import { RoleScopedSupertestProvider } from './role_scoped_supertest'; -import { services as apiIntegrationServices } from '../../../api_integration/services'; -import { services as deploymentAgnosticServices } from '../../../api_integration_deployment_agnostic/services'; +import { SpacesSupertestProvider } from './spaces_supertest'; +import { services } from '../../../api_integration_deployment_agnostic/services'; +export type { SupertestWithRoleScopeType } from './spaces_supertest'; -export type { SupertestWithRoleScopeType } from './role_scoped_supertest'; - -export const services = { - ...deploymentAgnosticServices, - usageAPI: apiIntegrationServices.usageAPI, - spaces: apiIntegrationServices.spaces, - roleScopedSupertest: RoleScopedSupertestProvider, +export const deploymentAgnosticSpacesServices = { + ...services, + spacesSupertest: SpacesSupertestProvider, }; -export type DeploymentAgnosticCommonServices = typeof services; +export type DeploymentAgnosticSpacesCommonServices = typeof deploymentAgnosticSpacesServices; diff --git a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/role_scoped_supertest.ts b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/spaces_supertest.ts similarity index 95% rename from x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/role_scoped_supertest.ts rename to x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/spaces_supertest.ts index 984649f46c660..1fda7b06e707b 100644 --- a/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/role_scoped_supertest.ts +++ b/x-pack/platform/test/spaces_api_integration/deployment_agnostic/services/spaces_supertest.ts @@ -14,7 +14,7 @@ import type { DeploymentAgnosticFtrProviderContext } from '../ftr_provider_conte export type SupertestWithRoleScopeType = SupertestWithBasicAuth | SupertestWithRoleScope; -export function RoleScopedSupertestProvider({ getService }: DeploymentAgnosticFtrProviderContext) { +export function SpacesSupertestProvider({ getService }: DeploymentAgnosticFtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); const samlAuth = getService('samlAuth'); const config = getService('config'); diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/disable_legacy_url_aliases.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/disable_legacy_url_aliases.ts index 2498ce166bcce..d8742be692c7b 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/disable_legacy_url_aliases.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/disable_legacy_url_aliases.ts @@ -31,7 +31,6 @@ const createTestCases = () => { }; }; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertestWithoutAuth'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_all.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_all.ts index 4b07043abdddd..56e781eb926e1 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_all.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_all.ts @@ -16,9 +16,7 @@ import { AUTHENTICATION } from '../../common/lib/authentication'; import { SPACES } from '../../common/lib/spaces'; import { getAllTestSuiteFactory } from '../../common/suites/get_all.agnostic'; -// eslint-disable-next-line import/no-default-export export default function getAllSpacesTestSuite(context: FtrProviderContext) { - // @ts-expect-error getAllTestSuiteFactory expects only DeploymentAgnosticFtrProviderContext const { getAllTest, expectRbacForbidden } = getAllTestSuiteFactory(context); describe('get all', function () { diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_shareable_references.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_shareable_references.ts index 093e01dd8fbbf..ecf8feeabbe1f 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_shareable_references.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/get_shareable_references.ts @@ -43,7 +43,6 @@ const createTestCases = (spaceId: string): GetShareableReferencesTestCase[] => { throw new Error(`Unexpected test case for space '${spaceId}'!`); }; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertestWithoutAuth'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/index.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/index.ts index 197d276564a57..778ae7ce32ee7 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/index.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/index.ts @@ -8,7 +8,6 @@ import type { FtrProviderContext } from '../../common/ftr_provider_context'; import { createUsersAndRoles } from '../../common/lib/create_users_and_roles'; -// eslint-disable-next-line import/no-default-export export default function ({ loadTestFile, getService }: FtrProviderContext) { const es = getService('es'); const supertest = getService('supertest'); diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/update_objects_spaces.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/update_objects_spaces.ts index ab7e4db5908f6..cb35d79554c84 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/update_objects_spaces.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/apis/update_objects_spaces.ts @@ -123,7 +123,7 @@ const calculateSingleSpaceAuthZ = (testCases: UpdateObjectsSpacesTestCase[], spa } return { targetsThisSpace, targetsOtherSpace }; }; -// eslint-disable-next-line import/no-default-export + export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertestWithoutAuth'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts index aba9bc9a92d08..f3b1c3c934faf 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_basic.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { license: 'basic', testFiles: [require.resolve('./apis'), require.resolve('./apis/get_all')], diff --git a/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_trial.ts b/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_trial.ts index c988a59d23a22..6729929fbabf9 100644 --- a/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_trial.ts +++ b/x-pack/platform/test/spaces_api_integration/security_and_spaces/config_trial.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('security_and_spaces', { license: 'trial', testFiles: [require.resolve('./apis')], diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/disable_legacy_url_aliases.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/disable_legacy_url_aliases.ts index 1818beef05118..50ce17f822dd3 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/disable_legacy_url_aliases.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/disable_legacy_url_aliases.ts @@ -29,7 +29,6 @@ const createTestCases = (): DisableLegacyUrlAliasesTestCase[] => { ]; }; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/get_shareable_references.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/get_shareable_references.ts index 15fef24ad0d69..87f537ac7f119 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/get_shareable_references.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/get_shareable_references.ts @@ -39,7 +39,6 @@ const createTestCases = (spaceId: string): GetShareableReferencesTestCase[] => { throw new Error(`Unexpected test case for space '${spaceId}'!`); }; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/index.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/index.ts index a85a84d3f723b..e47506dbbcd88 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/index.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function spacesOnlyTestSuite({ loadTestFile }: FtrProviderContext) { describe('spaces api without security', function () { this.tags('skipFIPS'); diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/update_objects_spaces.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/update_objects_spaces.ts index c45aa9edc6741..a987e781c360d 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/apis/update_objects_spaces.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/apis/update_objects_spaces.ts @@ -163,7 +163,6 @@ const createMultiPartTestCases = () => { return [...group1, ...group2, ...group3]; }; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const esArchiver = getService('esArchiver'); diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/config.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/config.ts index fa5d6310fd60f..f1843dc9681bc 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/config.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/config.ts @@ -7,7 +7,6 @@ import { createTestConfig } from '../common/config'; -// eslint-disable-next-line import/no-default-export export default createTestConfig('spaces_only', { disabledPlugins: ['security'], license: 'basic', diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/index.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/index.ts index 3b7f3e3232b99..b3840e5511619 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/index.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/index.ts @@ -7,7 +7,6 @@ import type { FtrProviderContext } from '../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function spacesOnlyTestSuite({ loadTestFile }: FtrProviderContext) { describe('spaces telemetry data', function () { loadTestFile(require.resolve('./telemetry')); diff --git a/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/telemetry.ts b/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/telemetry.ts index c8a8ab3de58fe..b2dd1b05afcb0 100644 --- a/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/telemetry.ts +++ b/x-pack/platform/test/spaces_api_integration/spaces_only/telemetry/telemetry.ts @@ -9,7 +9,6 @@ import expect from '@kbn/expect'; import type { FtrProviderContext } from '../../common/ftr_provider_context'; -// eslint-disable-next-line import/no-default-export export default function ({ getService }: FtrProviderContext) { const spacesService = getService('spaces'); const usageAPI = getService('usageAPI'); diff --git a/x-pack/platform/test/tsconfig.json b/x-pack/platform/test/tsconfig.json index f7df02f8d7ada..6b54dd23d0daa 100644 --- a/x-pack/platform/test/tsconfig.json +++ b/x-pack/platform/test/tsconfig.json @@ -83,6 +83,10 @@ "@kbn/task-manager-plugin", "@kbn/alerting-state-types", "@kbn/std", + "@kbn/saved-objects-management-plugin", + "@kbn/repo-info", + "@kbn/es", + "@kbn/mock-idp-utils", "@kbn/actions-simulators-plugin", "@kbn/stack-connectors-plugin", "@kbn/alerting-api-integration-helpers", @@ -115,6 +119,7 @@ "@kbn/reporting-export-types-pdf-common", "@kbn/reporting-export-types-png-common", "@kbn/reporting-server", + "@kbn/intercepts-plugin", "@kbn/lens-plugin", "@kbn/mock-idp-utils", "@kbn/es", diff --git a/x-pack/test/api_integration/deployment_agnostic/README.md b/x-pack/test/api_integration/deployment_agnostic/README.md index 8f311d808e7e1..e383e63d16f61 100644 --- a/x-pack/test/api_integration/deployment_agnostic/README.md +++ b/x-pack/test/api_integration/deployment_agnostic/README.md @@ -1,6 +1,7 @@ # Deployment-Agnostic Tests Guidelines ## Definition + A deployment-agnostic API integration test is a test suite that fulfills the following criteria: **Functionality**: It tests Kibana APIs that are logically identical in both stateful and serverless environments for the same roles. @@ -10,27 +11,31 @@ A deployment-agnostic API integration test is a test suite that fulfills the fol A deployment-agnostic test should be loaded in stateful and at least 1 serverless FTR config files. ## Tests, that are not deployment-agnostic: + - tests verifying Kibana behavior under a basic license. - tests dependent on ES/Kibana server arguments, that are not set in Elastic Cloud - tests requiring a custom plugin to be loaded specifically for testing purposes. - tests dependent on varying user privileges between serverless and stateful environments. ## Tests Design Requirements + A deployment-agnostic test is contained within a single test file and always utilizes the [DeploymentAgnosticFtrProviderContext](https://github.com/elastic/kibana/blob/main/x-pack/test/api_integration/deployment_agnostic/ftr_provider_context.d.ts) to load compatible FTR services. A compatible FTR service must support: - **Serverless**: Both local environments and MKI (Managed Kubernetes Infrastructure). - **Stateful**: Both local environments and Cloud deployments. -To achieve this, services cannot use `supertest`, which employs an operator user for serverless and a system index superuser for stateful setups. Instead, services should use a combination of `supertestWithoutAuth` and `samlAuth` to generate an API key for user roles and make API calls. For example, see the [data_view_api.ts](https://github.com/elastic/kibana/blob/main/x-pack/test/api_integration/deployment_agnostic/services/data_view_api.ts) service. +To achieve this, services cannot use `supertest`, which employs an operator user for serverless and a system index superuser for stateful setups. Instead, services should use a combination of `supertestWithoutAuth` and `samlAuth` to generate an API key for user roles and make API calls. For example, see the [data_view_api.ts](https://github.com/elastic/kibana/blob/main/x-pack/platform/test/api_integration_deployment_agnostic/services/data_view_api.ts) service. Note: The `supertest` service is still available and can be used to **set up or tear down the environment** in `before` / `after` hooks. However, it **should not be used to test APIs**, such as making API calls in `it` blocks. ### How It Works + Most existing stateful tests use basic authentication for API testing. In contrast, serverless tests use SAML authentication with project-specific role mapping. -Since both Elastic Cloud (ESS) and Serverless rely on SAML authentication by default, and stateful deployments also support SAML, *deployment-agnostic tests configure Elasticsearch and Kibana with SAML authentication to use the same authentication approach in all cases*. For roles, stateful deployments define 'viewer', 'editor', and 'admin' roles with serverless-alike permissions. +Since both Elastic Cloud (ESS) and Serverless rely on SAML authentication by default, and stateful deployments also support SAML, _deployment-agnostic tests configure Elasticsearch and Kibana with SAML authentication to use the same authentication approach in all cases_. For roles, stateful deployments define 'viewer', 'editor', and 'admin' roles with serverless-alike permissions. ### When to Create Separate Tests + While the deployment-agnostic testing approach is beneficial, it should not compromise the quality and simplicity of the tests. Here are some scenarios where separate test files are recommended: - **Role-Specific Logic**: If API access or logic depends on roles that differ across deployments. @@ -38,6 +43,7 @@ While the deployment-agnostic testing approach is beneficial, it should not comp - **Complex Logic**: If the test logic requires splitting across multiple locations. ## File Structure + We recommend following this structure to simplify maintenance and allow other teams to reuse code (e.g., FTR services) created by different teams: ``` @@ -65,11 +71,13 @@ x-pack/test/ ``` ## Loading Your Tests Properly + When Platform teams add deployment-agnostic tests, it is expected that these tests are loaded in `configs/stateful/platform.index.ts` and at least one of the `.serverless.config` files under `configs/serverless` folder. When a Solution team (e.g., one of the Oblt teams) adds deployment-agnostic tests, it is expected that these tests are loaded in both `configs/stateful/oblt.index.ts` and `configs/serverless/oblt.index.ts`. ## Step-by-Step Guide + 1. Define Deployment-Agnostic Services Under `x-pack/test//deployment_agnostic/services`, create `index.ts` and load base services from `x-pack/test/api_integration/deployment_agnostic/services`: @@ -94,6 +102,7 @@ We suggest adding new services to `x-pack/test/api_integration/deployment_agnost 2. Create `DeploymentAgnosticFtrProviderContext` with Services Defined in Step 2 Create `ftr_provider_context.d.ts` and export `DeploymentAgnosticFtrProviderContext`: + ```ts import { GenericFtrProviderContext } from '@kbn/test'; import { services } from './services'; @@ -112,6 +121,7 @@ Kibana provides both public and internal APIs, each requiring authentication wit - Internal APIs: Direct HTTP requests to internal APIs are generally not expected. However, for testing purposes, authentication should be performed using the Cookie header. This approach simulates client-side behavior during browser interactions, mirroring how internal APIs are indirectly invoked. Recommendations: + - use `roleScopedSupertest` service to create supertest instance scoped to specific role and pre-defined request headers - `roleScopedSupertest.getSupertestWithRoleScope()` authenticate requests with API key by default - pass `useCookieHeader: true` to use Cookie header for requests authentication @@ -120,6 +130,7 @@ Recommendations: Add test files to `x-pack/test//deployment_agnostic/apis/`: test example + ```ts export default function ({ getService }: DeploymentAgnosticFtrProviderContext) { const roleScopedSupertest = getService('roleScopedSupertest'); @@ -132,10 +143,13 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) { withInternalHeaders: true, withCustomHeaders: { 'accept-encoding': 'gzip' }, }); - supertestEditorWithCookieCredentials = await roleScopedSupertest.getSupertestWithRoleScope('editor', { - withInternalHeaders: true, - useCookieHeader: true, - }); + supertestEditorWithCookieCredentials = await roleScopedSupertest.getSupertestWithRoleScope( + 'editor', + { + withInternalHeaders: true, + useCookieHeader: true, + } + ); }); after(async () => { // always invalidate API key for the scoped role in the end @@ -152,10 +166,11 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) { const response = await supertestEditorWithCookieCredentials .post(`/internal/alerting/rule/${ruleId}/_run_soon`) .expect(204); - }); + }); }); } ``` + Load all test files in `index.ts` under the same folder. 4. Add Tests Entry File and FTR Config File for **Stateful** Deployment @@ -186,11 +201,13 @@ export default createStatefulTestConfig({ }, }); ``` + 5. Add Tests Entry File and FTR Config File for Specific **Serverless** Project Example for Observability project: oblt.index.ts + ```ts import { DeploymentAgnosticFtrProviderContext } from './ftr_provider_context'; @@ -202,6 +219,7 @@ export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) ``` oblt.serverless.config.ts + ```ts import { createServerlessTestConfig } from './../../api_integration/deployment_agnostic/default_configs/serverless.config.base'; import { services } from './services'; @@ -246,20 +264,24 @@ node scripts/functional_test_runner --config x-pack/test/api_integration/deploym ``` ## Tagging and Skipping the Tests + Since deployment-agnostic tests are designed to run both locally and on MKI/Cloud, we believe no extra tagging is required in general (read below for exceptions). If a test is not working on MKI/Cloud or both, there is most likely an issue with the FTR service or the configuration file it uses. When a test fails on CI, automation will apply `.skip` to the top-level describe block. This means the test will be skipped in **both serverless and stateful environments**. If a test is unstable in a specific environment only, it is probably a sign that the test is not truly deployment-agnostic. ### Excluding a suite from test environments + As pointed out above, deployment agnostic tests should be designed to run in stateful and serverless, locally and in cloud (ECH, MKI). However, there are situations where a test suite should only run on a subset of these environments. **This should be an exception.** Here are the supported suite labels to control execution in test environments: -* `skipStateful` - this will exclude the suite from **all stateful test runs, local and ECH** -* `skipCloud` - this will exclude the suite from **all cloud test runs, ECH and MKI** -* `skipServerless` - this will exclude the suite from **all serverless test runs, local and MKI** -* `skipMKI` - this will exclude the suite from **serverless cloud / MKI test runs** + +- `skipStateful` - this will exclude the suite from **all stateful test runs, local and ECH** +- `skipCloud` - this will exclude the suite from **all cloud test runs, ECH and MKI** +- `skipServerless` - this will exclude the suite from **all serverless test runs, local and MKI** +- `skipMKI` - this will exclude the suite from **serverless cloud / MKI test runs** Note that tags can not be applied to an arrow function suite like `describe('test suite', () => {`. Here's an example of how to apply a suite tag: + ```ts describe('test suite', function () { // add a comment to explain why this suite is excluded from that test environment @@ -269,6 +291,7 @@ describe('test suite', function () { ``` ## Migrating existing tests + If your tests align with the outlined criteria and requirements, you can migrate them to deployment-agnostic by following these steps: 1. Move your tests to the `x-pack/test/api_integration/deployment_agnostic/apis/` directory. diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/chat/chat.spec.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/chat/chat.spec.ts index 159eb1a56bbaf..9ba3884aac477 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/chat/chat.spec.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/chat/chat.spec.ts @@ -9,8 +9,8 @@ import expect from '@kbn/expect'; import { MessageRole, type Message } from '@kbn/observability-ai-assistant-plugin/common'; import { PassThrough } from 'stream'; import { times } from 'lodash'; +import { SupertestWithRoleScope } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { createLlmProxy, LlmProxy } from '../utils/create_llm_proxy'; -import { SupertestWithRoleScope } from '../../../../services/role_scoped_supertest'; import type { DeploymentAgnosticFtrProviderContext } from '../../../../ftr_provider_context'; const SYSTEM_MESSAGE = `this is a system message`; diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/complete.spec.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/complete.spec.ts index f2eddfc9c3856..4eca82ba8be39 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/complete.spec.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/complete/complete.spec.ts @@ -17,9 +17,9 @@ import { StreamingChatResponseEventType, } from '@kbn/observability-ai-assistant-plugin/common/conversation_complete'; import { ObservabilityAIAssistantScreenContextRequest } from '@kbn/observability-ai-assistant-plugin/common/types'; +import { SupertestWithRoleScope } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { createLlmProxy, LlmProxy } from '../utils/create_llm_proxy'; import type { DeploymentAgnosticFtrProviderContext } from '../../../../ftr_provider_context'; -import { SupertestWithRoleScope } from '../../../../services/role_scoped_supertest'; import { systemMessageSorted, clearConversations, diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/snapshots.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/snapshots.ts index 44329626e2ca3..e0543a5246dbe 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/snapshots.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/ai_assistant/utils/snapshots.ts @@ -9,7 +9,7 @@ import { Client } from '@elastic/elasticsearch'; import { resourceNames } from '@kbn/observability-ai-assistant-plugin/server/service'; import { ToolingLog } from '@kbn/tooling-log'; import path from 'path'; -import { AI_ASSISTANT_SNAPSHOT_REPO_PATH } from '../../../../default_configs/common_paths'; +import { AI_ASSISTANT_SNAPSHOT_REPO_PATH } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/common_paths'; export async function restoreKbSnapshot({ log, diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/custom_status_rule.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/custom_status_rule.ts index 413780df0ee95..2dc4c767d92d1 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/custom_status_rule.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/custom_status_rule.ts @@ -5,7 +5,7 @@ * 2.0. */ import expect from '@kbn/expect'; -import moment from 'moment'; +import moment from 'moment-timezone'; import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; import type { SyntheticsMonitorStatusRuleParams as StatusRuleParams } from '@kbn/response-ops-rule-params/synthetics_monitor_status'; import { waitForDocumentInIndex } from '../../../../../../common/utils/observability/alerting_wait_for_helpers'; diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/synthetics_rule_helper.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/synthetics_rule_helper.ts index 234c7fe046443..bf6c6cd23efba 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/synthetics_rule_helper.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/alerting/synthetics/synthetics_rule_helper.ts @@ -15,7 +15,7 @@ import moment from 'moment'; import type { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types'; import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; import expect from '@kbn/expect'; -import { SupertestWithRoleScope } from '../../../../services/role_scoped_supertest'; +import { SupertestWithRoleScope } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { DeploymentAgnosticFtrProviderContext } from '../../../../ftr_provider_context'; import { AlertingApiProvider } from '../../../../services/alerting_api'; diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/data_view/static.spec.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/data_view/static.spec.ts index ee025c5b92f17..f7cf8e97c59fd 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/data_view/static.spec.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/data_view/static.spec.ts @@ -12,11 +12,11 @@ import { DataView } from '@kbn/data-views-plugin/common'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import request from 'superagent'; import { getStaticDataViewId } from '@kbn/apm-data-view'; +import { SupertestWithRoleScope } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { SupertestReturnType, ApmApiError, } from '../../../../../../apm_api_integration/common/apm_api_supertest'; -import { SupertestWithRoleScope } from '../../../../services/role_scoped_supertest'; import type { DeploymentAgnosticFtrProviderContext } from '../../../../ftr_provider_context'; export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderContext) { diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts index 4d9b6355cf3e9..f0207d208cafb 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integration_dashboards.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { CustomIntegration } from '../../../services/package_api'; +import { CustomIntegration } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/package_api'; import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_context'; import { RoleCredentials, SupertestWithRoleScopeType } from '../../../services'; diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integrations.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integrations.ts index 0a401b58feb11..f22980330d990 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integrations.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/dataset_quality/integrations.ts @@ -8,7 +8,7 @@ import expect from '@kbn/expect'; import { v4 as uuid } from 'uuid'; import { APIReturnType } from '@kbn/dataset-quality-plugin/common/rest'; -import { CustomIntegration } from '../../../services/package_api'; +import { CustomIntegration } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/package_api'; import { DeploymentAgnosticFtrProviderContext } from '../../../ftr_provider_context'; import { RoleCredentials, SupertestWithRoleScopeType } from '../../../services'; diff --git a/x-pack/test/api_integration/deployment_agnostic/apis/observability/streams/helpers/repository_client.ts b/x-pack/test/api_integration/deployment_agnostic/apis/observability/streams/helpers/repository_client.ts index 5c2635e7b5e2f..d0957af99393c 100644 --- a/x-pack/test/api_integration/deployment_agnostic/apis/observability/streams/helpers/repository_client.ts +++ b/x-pack/test/api_integration/deployment_agnostic/apis/observability/streams/helpers/repository_client.ts @@ -5,13 +5,13 @@ * 2.0. */ import type { StreamsRouteRepository } from '@kbn/streams-plugin/server'; +import { CustomRoleScopedSupertestProvider } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/custom_role_scoped_supertest'; +import { RoleScopedSupertestProvider } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { RepositorySupertestClient, getAdminApiClient, getCustomRoleApiClient, } from '../../../../../../common/utils/server_route_repository/create_admin_service_from_repository'; -import { CustomRoleScopedSupertestProvider } from '../../../../services/custom_role_scoped_supertest'; -import { RoleScopedSupertestProvider } from '../../../../services/role_scoped_supertest'; export type StreamsSupertestRepositoryClient = RepositorySupertestClient; diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts index 95cf3f5026908..408d9184681af 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.ai_assistant.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.serverless.config.ts index 6a4f5ea13aa5e..46a9ece630ba8 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.ai_assistant_local.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.ai_assistant_local.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts index 9d4d8b89a7e6f..9d7f0432ce2b8 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.apm.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.index.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.index.ts index c06b7f1331184..a849282459f28 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.index.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.index.ts @@ -10,19 +10,14 @@ export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) describe('Serverless Observability - Deployment-agnostic API integration tests', function () { this.tags(['esGate']); - // load new oblt and platform deployment-agnostic test here + // load new oblt deployment-agnostic test here // Note: if your tests runtime is over 5 minutes, create a new index and config file - loadTestFile(require.resolve('../../apis/console')); - loadTestFile(require.resolve('../../apis/core')); - loadTestFile(require.resolve('../../apis/management')); + loadTestFile(require.resolve('../../apis/observability/infra')); loadTestFile(require.resolve('../../apis/observability/alerting')); loadTestFile(require.resolve('../../apis/observability/dataset_quality')); - loadTestFile(require.resolve('../../apis/painless_lab')); - loadTestFile(require.resolve('../../apis/saved_objects_management')); loadTestFile(require.resolve('../../apis/observability/slo')); loadTestFile(require.resolve('../../apis/observability/onboarding')); loadTestFile(require.resolve('../../apis/observability/incident_management')); - loadTestFile(require.resolve('../../apis/intercepts')); }); } diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts index 245663416243f..c0597cfddbbad 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts index 0f69dc6090273..69fece9cfec49 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.streams.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.streams.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts index 30b9e5360dac7..43894536aa18f 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.synthetics.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; +import { createServerlessTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/serverless.config.base'; +import { services } from '../../services'; -export default createServerlessTestConfig({ +export default createServerlessTestConfig({ + services, serverlessProject: 'oblt', testFiles: [require.resolve('./oblt.synthetics.index.ts')], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.stateful.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.stateful.config.ts index 1b16814657094..15758b95ca69d 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.stateful.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant.stateful.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../../default_configs/stateful.config.base'; +import { createStatefulTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { services } from '../../services'; -export default createStatefulTestConfig({ +export default createStatefulTestConfig({ + services, testFiles: [require.resolve('./oblt.ai_assistant.index.ts')], junit: { reportName: 'Stateful Observability - Deployment-agnostic API Integration Tests', diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.stateful.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.stateful.config.ts index ccbf343a27649..7b28c46e16459 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.stateful.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.ai_assistant_local.stateful.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../../default_configs/stateful.config.base'; +import { createStatefulTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { services } from '../../services'; -export default createStatefulTestConfig({ +export default createStatefulTestConfig({ + services, testFiles: [require.resolve('./oblt.ai_assistant_local.index.ts')], junit: { reportName: 'Stateful Observability - Deployment-agnostic AI Assistant local-only tests', diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts index e4eca8228aa18..fb4b833ef0440 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../../default_configs/stateful.config.base'; +import { createStatefulTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { services } from '../../services'; -export default createStatefulTestConfig({ +export default createStatefulTestConfig({ + services, testFiles: [require.resolve('./oblt.apm.index.ts')], junit: { reportName: 'Stateful Observability - Deployment-agnostic APM API Integration Tests', diff --git a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts index 7b3cf3a7f1818..14bd68e93ab7b 100644 --- a/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createStatefulTestConfig } from '../../default_configs/stateful.config.base'; +import { createStatefulTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/stateful.config.base'; +import { services } from '../../services'; -export default createStatefulTestConfig({ +export default createStatefulTestConfig({ + services, testFiles: [require.resolve('./oblt.index.ts')], junit: { reportName: 'Stateful Observability - Deployment-agnostic API Integration Tests', diff --git a/x-pack/test/api_integration/deployment_agnostic/default_configs/fixtures/package_registry_config.yml b/x-pack/test/api_integration/deployment_agnostic/default_configs/fixtures/package_registry_config.yml deleted file mode 100644 index 1885fa5c2ebe5..0000000000000 --- a/x-pack/test/api_integration/deployment_agnostic/default_configs/fixtures/package_registry_config.yml +++ /dev/null @@ -1,2 +0,0 @@ -package_paths: - - /packages/package-storage diff --git a/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.serverless.config.ts b/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.serverless.config.ts index f22739bc6d252..0ab78950e435f 100644 --- a/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.serverless.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/serverless/oblt.serverless.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createServerlessFeatureFlagTestConfig } from '../../default_configs/feature_flag.serverless.config.base'; +import { createServerlessFeatureFlagTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/feature_flag.serverless.config.base'; +import { services } from '../../services'; -export default createServerlessFeatureFlagTestConfig({ +export default createServerlessFeatureFlagTestConfig({ + services, serverlessProject: 'oblt', kbnServerArgs: [ '--xpack.actions.preconfigured', diff --git a/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.stateful.config.ts b/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.stateful.config.ts index aee377e373c4a..36ff59316fe71 100644 --- a/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.stateful.config.ts +++ b/x-pack/test/api_integration/deployment_agnostic/feature_flag_configs/stateful/oblt.stateful.config.ts @@ -5,9 +5,11 @@ * 2.0. */ -import { createStatefulFeatureFlagTestConfig } from '../../default_configs/feature_flag.stateful.config.base'; +import { createStatefulFeatureFlagTestConfig } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/default_configs/feature_flag.stateful.config.base'; +import { services } from '../../services'; -export default createStatefulFeatureFlagTestConfig({ +export default createStatefulFeatureFlagTestConfig({ + services, testFiles: [require.resolve('./oblt.index.ts')], kbnServerArgs: ['--xpack.actions.preconfigured'], junit: { diff --git a/x-pack/test/api_integration/deployment_agnostic/services/data_view_api.ts b/x-pack/test/api_integration/deployment_agnostic/services/data_view_api.ts deleted file mode 100644 index 6f3c38b872f19..0000000000000 --- a/x-pack/test/api_integration/deployment_agnostic/services/data_view_api.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { RoleCredentials } from '@kbn/ftr-common-functional-services'; -import { DeploymentAgnosticFtrProviderContext } from '../ftr_provider_context'; - -export function DataViewApiProvider({ getService }: DeploymentAgnosticFtrProviderContext) { - const supertestWithoutAuth = getService('supertestWithoutAuth'); - const samlAuth = getService('samlAuth'); - - return { - async create({ - roleAuthc, - id, - name, - title, - spaceId, - data, - }: { - roleAuthc: RoleCredentials; - id: string; - name: string; - title: string; - spaceId?: string; - data?: Record; - }) { - const { body } = await supertestWithoutAuth - .post(`${spaceId ? '/s/' + spaceId : ''}/api/content_management/rpc/create`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()) - .set(samlAuth.getCommonRequestHeader()) - .send({ - contentTypeId: 'index-pattern', - data: { - fieldAttrs: '{}', - title, - timeFieldName: '@timestamp', - sourceFilters: '[]', - fields: '[]', - fieldFormatMap: '{}', - typeMeta: '{}', - runtimeFieldMap: '{}', - name, - ...(data ? data : {}), - }, - options: { id }, - version: 1, - }); - return body; - }, - - async delete({ - roleAuthc, - id, - spaceId, - }: { - roleAuthc: RoleCredentials; - id: string; - spaceId?: string; - }) { - const { body } = await supertestWithoutAuth - .post(`${spaceId ? '/s/' + spaceId : ''}/api/content_management/rpc/delete`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()) - .set(samlAuth.getCommonRequestHeader()) - .send({ - contentTypeId: 'index-pattern', - id, - options: { force: true }, - version: 1, - }); - return body; - }, - }; -} diff --git a/x-pack/test/api_integration/deployment_agnostic/services/index.ts b/x-pack/test/api_integration/deployment_agnostic/services/index.ts index c9050a523e966..f8467e5b38834 100644 --- a/x-pack/test/api_integration/deployment_agnostic/services/index.ts +++ b/x-pack/test/api_integration/deployment_agnostic/services/index.ts @@ -5,13 +5,9 @@ * 2.0. */ -import { commonFunctionalServices } from '@kbn/ftr-common-functional-services'; +import { services as platformDeploymentAgnosticServices } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services'; +import { SupertestWithRoleScope } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; import { AlertingApiProvider } from './alerting_api'; -import { DataViewApiProvider } from './data_view_api'; -import { deploymentAgnosticServices } from './deployment_agnostic_services'; -import { PackageApiProvider } from './package_api'; -import { RoleScopedSupertestProvider, SupertestWithRoleScope } from './role_scoped_supertest'; -import { CustomRoleScopedSupertestProvider } from './custom_role_scoped_supertest'; import { SloApiProvider } from './slo_api'; import { SynthtraceProvider } from './synthtrace'; import { ApmApiProvider } from './apm_api'; @@ -24,16 +20,10 @@ export type { } from '@kbn/ftr-common-functional-services'; export const services = { - ...deploymentAgnosticServices, - supertestWithoutAuth: commonFunctionalServices.supertestWithoutAuth, - samlAuth: commonFunctionalServices.samlAuth, + ...platformDeploymentAgnosticServices, + // create a new deployment-agnostic service and load here alertingApi: AlertingApiProvider, - dataViewApi: DataViewApiProvider, - packageApi: PackageApiProvider, sloApi: SloApiProvider, - roleScopedSupertest: RoleScopedSupertestProvider, - customRoleScopedSupertest: CustomRoleScopedSupertestProvider, - // create a new deployment-agnostic service and load here synthtrace: SynthtraceProvider, apmApi: ApmApiProvider, observabilityAIAssistantApi: ObservabilityAIAssistantApiProvider, diff --git a/x-pack/test/api_integration/deployment_agnostic/services/package_api.ts b/x-pack/test/api_integration/deployment_agnostic/services/package_api.ts deleted file mode 100644 index 4406147f6b756..0000000000000 --- a/x-pack/test/api_integration/deployment_agnostic/services/package_api.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { RoleCredentials } from '@kbn/ftr-common-functional-services'; -import { DeploymentAgnosticFtrProviderContext } from '../ftr_provider_context'; - -export interface CustomIntegration { - integrationName: string; - datasets: IntegrationDataset[]; -} - -export interface IntegrationDataset { - name: string; - type: 'logs' | 'metrics' | 'synthetics' | 'traces'; -} - -export function PackageApiProvider({ getService }: DeploymentAgnosticFtrProviderContext) { - const samlAuth = getService('samlAuth'); - const supertestWithoutAuth = getService('supertestWithoutAuth'); - - return { - async installCustomIntegration({ - roleAuthc, - customIntegration, - }: { - roleAuthc: RoleCredentials; - customIntegration: CustomIntegration; - }) { - const { integrationName, datasets } = customIntegration; - - const { body } = await supertestWithoutAuth - .post(`/api/fleet/epm/custom_integrations`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()) - .send({ integrationName, datasets }); - return body; - }, - async installPackage({ roleAuthc, pkg }: { roleAuthc: RoleCredentials; pkg: string }) { - const { - body: { - item: { latestVersion: version }, - }, - } = await supertestWithoutAuth - .get(`/api/fleet/epm/packages/${pkg}`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()) - .send({ force: true }); - - const { body } = await supertestWithoutAuth - .post(`/api/fleet/epm/packages/${pkg}/${version}`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()) - .send({ force: true }); - return body; - }, - async uninstallPackage({ roleAuthc, pkg }: { roleAuthc: RoleCredentials; pkg: string }) { - const { body } = await supertestWithoutAuth - .delete(`/api/fleet/epm/packages/${pkg}`) - .set(roleAuthc.apiKeyHeader) - .set(samlAuth.getInternalRequestHeader()); - return body; - }, - }; -} diff --git a/x-pack/test/common/utils/server_route_repository/create_admin_service_from_repository.ts b/x-pack/test/common/utils/server_route_repository/create_admin_service_from_repository.ts index bdecb6a75dba9..ad2f8137f3291 100644 --- a/x-pack/test/common/utils/server_route_repository/create_admin_service_from_repository.ts +++ b/x-pack/test/common/utils/server_route_repository/create_admin_service_from_repository.ts @@ -18,8 +18,8 @@ import supertest from 'supertest'; import { RoleScopedSupertestProvider, SupertestWithRoleScope, -} from '../../../api_integration/deployment_agnostic/services/role_scoped_supertest'; -import { CustomRoleScopedSupertestProvider } from '../../../api_integration/deployment_agnostic/services/custom_role_scoped_supertest'; +} from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/role_scoped_supertest'; +import { CustomRoleScopedSupertestProvider } from '@kbn/test-suites-xpack-platform/api_integration_deployment_agnostic/services/custom_role_scoped_supertest'; type MaybeOptional> = RequiredKeys extends never ? [TArgs] | [] diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index 9ddf1e50b696a..002b549425e55 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -102,7 +102,6 @@ "@kbn/uptime-plugin", "@kbn/ml-category-validator", "@kbn/observability-ai-assistant-plugin", - "@kbn/es", "@kbn/metrics-data-access-plugin", "@kbn/dataset-quality-plugin", "@kbn/io-ts-utils", @@ -125,8 +124,6 @@ "@kbn/securitysolution-exceptions-common", "@kbn/securitysolution-endpoint-exceptions-common", "@kbn/osquery-plugin", - "@kbn/mock-idp-utils", - "@kbn/saved-objects-management-plugin", "@kbn/alerting-types", "@kbn/ai-assistant-common", "@kbn/core-deprecations-common", @@ -152,7 +149,6 @@ "@kbn/core-chrome-browser", "@kbn/event-log-plugin", "@kbn/management-settings-ids", - "@kbn/intercepts-plugin", "@kbn/core-provider-plugin", ] }