diff --git a/.buildkite/ftr_configs.yml b/.buildkite/ftr_configs.yml index b9825675143a8..3e0a5e0e9381b 100644 --- a/.buildkite/ftr_configs.yml +++ b/.buildkite/ftr_configs.yml @@ -412,16 +412,22 @@ enabled: - x-pack/test_serverless/functional/test_suites/observability/config.examples.ts - x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group1.ts - x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group2.ts + - x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group3.ts + - x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group4.ts - x-pack/test_serverless/functional/test_suites/observability/config.screenshots.ts - x-pack/test_serverless/functional/test_suites/search/config.ts - x-pack/test_serverless/functional/test_suites/search/config.examples.ts - x-pack/test_serverless/functional/test_suites/search/config.screenshots.ts - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group1.ts - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group2.ts + - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group3.ts + - x-pack/test_serverless/functional/test_suites/search/common_configs/config.group4.ts - x-pack/test_serverless/functional/test_suites/security/config.ts - x-pack/test_serverless/functional/test_suites/security/config.examples.ts - x-pack/test_serverless/functional/test_suites/security/common_configs/config.group1.ts - x-pack/test_serverless/functional/test_suites/security/common_configs/config.group2.ts + - x-pack/test_serverless/functional/test_suites/security/common_configs/config.group3.ts + - x-pack/test_serverless/functional/test_suites/security/common_configs/config.group4.ts - x-pack/performance/journeys/ecommerce_dashboard.ts - x-pack/performance/journeys/ecommerce_dashboard_map_only.ts - x-pack/performance/journeys/flight_dashboard.ts diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts index 161fb2f265ab0..3b8db07a689ac 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts @@ -13,7 +13,7 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext const log = getService('log'); const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); - const PageObjects = getPageObjects(['timePicker']); + const PageObjects = getPageObjects(['timePicker', 'svlCommonPage']); const config = getService('config'); let remoteEsArchiver; @@ -53,19 +53,21 @@ export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext } await esNode.load(esArchive); - // changing the timepicker default here saves us from having to set it in Discover (~8s) - await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings(); await kibanaServer.uiSettings.update({ defaultIndex: indexPatternString, 'dateFormat:tz': 'UTC', }); await kibanaServer.importExport.load(fixtureDirs.lensBasic); await kibanaServer.importExport.load(fixtureDirs.lensDefault); + await PageObjects.svlCommonPage.login(); + // changing the timepicker default here saves us from having to set it in Discover (~8s) + await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings(); }); after(async () => { await esArchiver.unload(esArchive); await PageObjects.timePicker.resetDefaultAbsoluteRangeViaUiSettings(); + await PageObjects.svlCommonPage.forceLogout(); await kibanaServer.importExport.unload(fixtureDirs.lensBasic); await kibanaServer.importExport.unload(fixtureDirs.lensDefault); await kibanaServer.savedObjects.cleanStandardList(); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/index.ts similarity index 70% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/index.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/index.ts index 40cbafbf62c30..f3abd6dccef91 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/index.ts @@ -5,18 +5,20 @@ * 2.0. */ -import { FtrProviderContext } from '../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../ftr_provider_context'; export default ({ loadTestFile, getPageObject }: FtrProviderContext) => { const svlCommonPage = getPageObject('svlCommonPage'); - describe('Visualizations', function () { + describe('Visualizations - Group 2', function () { before(async () => { await svlCommonPage.login(); }); - loadTestFile(require.resolve('./group1')); + after(async () => { + await svlCommonPage.forceLogout(); + }); + loadTestFile(require.resolve('./open_in_lens/agg_based')); - loadTestFile(require.resolve('./open_in_lens/tsvb')); }); }; diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/gauge.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/gauge.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/gauge.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/gauge.ts index 83228021d0bac..d13f2e5b2aed1 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/gauge.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/gauge.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/goal.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/goal.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/goal.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/goal.ts index e42d2c56662e3..5de789198f420 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/goal.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/goal.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/heatmap.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/heatmap.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/heatmap.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/heatmap.ts index 0e400f11443b2..f1c362838d77e 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/heatmap.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/heatmap.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts similarity index 97% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/index.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts index 0dcbf2584a21e..990f1ed816cca 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/index.ts @@ -6,7 +6,7 @@ */ import { EsArchiver } from '@kbn/es-archiver'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ loadTestFile, getService, getPageObjects }: FtrProviderContext) { const browser = getService('browser'); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/metric.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/metric.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/metric.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/metric.ts index e78775241faaa..abd44aefe4d5a 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/metric.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/metric.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/pie.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/pie.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/pie.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/pie.ts index 550f2e6286c08..d1aa46064e573 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/pie.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/pie.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/table.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/table.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/table.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/table.ts index 66c7538670b6e..5b5d31a842607 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/table.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/table.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/xy.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/xy.ts similarity index 99% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/xy.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/xy.ts index 4833dc3aaba37..08da72b5e66fb 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/agg_based/xy.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group2/open_in_lens/agg_based/xy.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/index.ts new file mode 100644 index 0000000000000..4dbf361074deb --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/index.ts @@ -0,0 +1,24 @@ +/* + * 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 { FtrProviderContext } from '../../../../ftr_provider_context'; + +export default ({ loadTestFile, getPageObject }: FtrProviderContext) => { + const svlCommonPage = getPageObject('svlCommonPage'); + + describe('Visualizations - Group 3', function () { + before(async () => { + await svlCommonPage.login(); + }); + + after(async () => { + await svlCommonPage.forceLogout(); + }); + + loadTestFile(require.resolve('./open_in_lens/tsvb')); + }); +}; diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/dashboard.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/dashboard.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/dashboard.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/dashboard.ts index ea05c3453dc7b..e1e57cb5b1120 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/dashboard.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/dashboard.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard, canvas } = getPageObjects([ diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/gauge.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/gauge.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/gauge.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/gauge.ts index 7839328869123..63bff3578613a 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/gauge.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/gauge.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts similarity index 97% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/index.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts index 26a2f8cfe55fe..e7d8f0869d63d 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/index.ts @@ -6,7 +6,7 @@ */ import { EsArchiver } from '@kbn/es-archiver'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ loadTestFile, getService, getPageObjects }: FtrProviderContext) { const browser = getService('browser'); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/metric.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/metric.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/metric.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/metric.ts index cfd8ecb23c238..e105dea10ea08 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/metric.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/metric.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/table.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/table.ts similarity index 99% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/table.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/table.ts index 6e03af2667a12..be48300683d7c 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/table.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/table.ts @@ -13,7 +13,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/timeseries.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/timeseries.ts similarity index 98% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/timeseries.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/timeseries.ts index f2552326019fc..6a2d0d6812a7d 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/timeseries.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/timeseries.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/top_n.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/top_n.ts similarity index 99% rename from x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/top_n.ts rename to x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/top_n.ts index 247133e14ded4..dd7fdb01827dd 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/open_in_lens/tsvb/top_n.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group3/open_in_lens/tsvb/top_n.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../../ftr_provider_context'; +import { FtrProviderContext } from '../../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { const { lens, timePicker, dashboard } = getPageObjects(['lens', 'timePicker', 'dashboard']); diff --git a/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group2.ts b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group2.ts index 191c99643642c..0c87312058edc 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group2.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group2.ts @@ -12,7 +12,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { return { ...baseTestConfig.getAll(), - testFiles: [require.resolve('../../common/visualizations')], + testFiles: [require.resolve('../../common/visualizations/group1')], junit: { reportName: 'Serverless Observability Functional Tests - Common Group 2', }, diff --git a/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group3.ts b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group3.ts new file mode 100644 index 0000000000000..ab0d685d998b3 --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group3.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group2')], + junit: { + reportName: 'Serverless Observability Functional Tests - Common Group 3', + }, + }; +} diff --git a/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group4.ts b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group4.ts new file mode 100644 index 0000000000000..8850f979b0f6b --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group4.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group3')], + junit: { + reportName: 'Serverless Observability Functional Tests - Common Group 4', + }, + }; +} diff --git a/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group2.ts b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group2.ts index 19fbe190fc4c2..f9e3956020d65 100644 --- a/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group2.ts +++ b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group2.ts @@ -12,7 +12,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { return { ...baseTestConfig.getAll(), - testFiles: [require.resolve('../../common/visualizations')], + testFiles: [require.resolve('../../common/visualizations/group1')], junit: { reportName: 'Serverless Search Functional Tests - Common Group 2', }, diff --git a/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group3.ts b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group3.ts new file mode 100644 index 0000000000000..639429eaabd7d --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group3.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group2')], + junit: { + reportName: 'Serverless Search Functional Tests - Common Group 2', + }, + }; +} diff --git a/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group4.ts b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group4.ts new file mode 100644 index 0000000000000..31f9f64449587 --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/search/common_configs/config.group4.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group3')], + junit: { + reportName: 'Serverless Search Functional Tests - Common Group 2', + }, + }; +} diff --git a/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group2.ts b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group2.ts index ec66a5a5f4f2b..20d5acb657c98 100644 --- a/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group2.ts +++ b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group2.ts @@ -12,7 +12,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { return { ...baseTestConfig.getAll(), - testFiles: [require.resolve('../../common/visualizations')], + testFiles: [require.resolve('../../common/visualizations/group1')], junit: { reportName: 'Serverless Security Functional Tests - Common Group 2', }, diff --git a/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group3.ts b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group3.ts new file mode 100644 index 0000000000000..544ec4321e323 --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group3.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group2')], + junit: { + reportName: 'Serverless Security Functional Tests - Common Group 3', + }, + }; +} diff --git a/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group4.ts b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group4.ts new file mode 100644 index 0000000000000..c373bae25d838 --- /dev/null +++ b/x-pack/test_serverless/functional/test_suites/security/common_configs/config.group4.ts @@ -0,0 +1,20 @@ +/* + * 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 { FtrConfigProviderContext } from '@kbn/test'; + +export default async function ({ readConfigFile }: FtrConfigProviderContext) { + const baseTestConfig = await readConfigFile(require.resolve('../config.ts')); + + return { + ...baseTestConfig.getAll(), + testFiles: [require.resolve('../../common/visualizations/group3')], + junit: { + reportName: 'Serverless Security Functional Tests - Common Group 4', + }, + }; +}