From 18127517246c19e393efb8bdbd496bf3ce8f7f0e Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Fri, 6 Oct 2023 15:50:33 +0200 Subject: [PATCH] [ftr] skip tests that fail on MKI build #197 --- .../test_suites/common/alerting/alert_documents.ts | 4 +++- .../api_integration/test_suites/common/alerting/rules.ts | 4 +++- .../test_suites/common/platform_security/api_keys.ts | 4 +++- .../functional/test_suites/observability/cases/configure.ts | 2 ++ .../observability_log_explorer/dataset_selector.ts | 4 +++- .../functional/test_suites/security/ftr/cases/view_case.ts | 4 +++- .../test_suites/security/ml/anomaly_detection_jobs_list.ts | 4 +++- .../test_suites/security/ml/data_frame_analytics_jobs_list.ts | 4 +++- 8 files changed, 23 insertions(+), 7 deletions(-) diff --git a/x-pack/test_serverless/api_integration/test_suites/common/alerting/alert_documents.ts b/x-pack/test_serverless/api_integration/test_suites/common/alerting/alert_documents.ts index a108ffa4f2d00..2248c0aaef335 100644 --- a/x-pack/test_serverless/api_integration/test_suites/common/alerting/alert_documents.ts +++ b/x-pack/test_serverless/api_integration/test_suites/common/alerting/alert_documents.ts @@ -49,7 +49,9 @@ export default function ({ getService }: FtrProviderContext) { const esClient = getService('es'); const objectRemover = new ObjectRemover(supertest); - describe('Alert documents', () => { + describe('Alert documents', function () { + // Timeout of 360000ms exceeded + this.tags(['skipOnMKI']); const RULE_TYPE_ID = '.es-query'; const ALERT_INDEX = '.alerts-stack.alerts-default'; let ruleId: string; diff --git a/x-pack/test_serverless/api_integration/test_suites/common/alerting/rules.ts b/x-pack/test_serverless/api_integration/test_suites/common/alerting/rules.ts index 441dc06cab829..0db0fad7dc1c4 100644 --- a/x-pack/test_serverless/api_integration/test_suites/common/alerting/rules.ts +++ b/x-pack/test_serverless/api_integration/test_suites/common/alerting/rules.ts @@ -35,7 +35,9 @@ export default function ({ getService }: FtrProviderContext) { const esClient = getService('es'); const esDeleteAllIndices = getService('esDeleteAllIndices'); - describe('Alerting rules', () => { + describe('Alerting rules', function () { + // Timeout of 360000ms exceeded + this.tags(['skipOnMKI']); const RULE_TYPE_ID = '.es-query'; const ALERT_ACTION_INDEX = 'alert-action-es-query'; let actionId: string; diff --git a/x-pack/test_serverless/functional/test_suites/common/platform_security/api_keys.ts b/x-pack/test_serverless/functional/test_suites/common/platform_security/api_keys.ts index 610ab692a4b0f..986e6d31c942e 100644 --- a/x-pack/test_serverless/functional/test_suites/common/platform_security/api_keys.ts +++ b/x-pack/test_serverless/functional/test_suites/common/platform_security/api_keys.ts @@ -29,7 +29,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { const es = getService('es'); const log = getService('log'); - describe('API keys', () => { + describe('API keys', function () { + // TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="apiKeysCreatePromptButton"]) Wait timed out after 10028ms + this.tags(['failsOnMKI']); before(async () => { await pageObjects.svlCommonPage.login(); }); diff --git a/x-pack/test_serverless/functional/test_suites/observability/cases/configure.ts b/x-pack/test_serverless/functional/test_suites/observability/cases/configure.ts index 58b163584a8a2..9c46ad382c497 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/cases/configure.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/cases/configure.ts @@ -19,6 +19,8 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { const retry = getService('retry'); describe('Configure Case', function () { + // Error: timed out waiting for assertRadioGroupValue: Expected the radio group value to equal "close-by-pushing" + this.tags(['skipOnMKI']); before(async () => { await svlCommonPage.login(); diff --git a/x-pack/test_serverless/functional/test_suites/observability/observability_log_explorer/dataset_selector.ts b/x-pack/test_serverless/functional/test_suites/observability/observability_log_explorer/dataset_selector.ts index ef51de3c4b693..783997630bf41 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/observability_log_explorer/dataset_selector.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/observability_log_explorer/dataset_selector.ts @@ -34,7 +34,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const noIntegrationsTitle = 'No integrations found'; const noUncategorizedTitle = 'No data streams found'; - describe('Dataset Selector', () => { + describe('Dataset Selector', function () { + // TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="datasetSelectorPopoverButton"]) + this.tags(['skipOnMKI']); before(async () => { await PageObjects.svlCommonPage.login(); await PageObjects.observabilityLogExplorer.removeInstalledPackages(); diff --git a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts index 5ad615a4f97a9..244867a1a0a1b 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts @@ -29,7 +29,9 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { const svlCommonNavigation = getPageObject('svlCommonNavigation'); const svlCommonPage = getPageObject('svlCommonPage'); - describe('Case View', () => { + describe('Case View', function () { + // security_exception: action [indices:data/write/delete/byquery] is unauthorized for user [elastic] with effective roles [superuser] on restricted indices [.kibana_alerting_cases], this action is granted by the index privileges [delete,write,all] + this.tags(['failsOnMKI']); before(async () => { await svlCommonPage.login(); }); diff --git a/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts b/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts index 2e60830d9f860..b2257fc68e135 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ml/anomaly_detection_jobs_list.ts @@ -12,7 +12,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const PageObjects = getPageObjects(['svlCommonPage']); const adJobId = 'fq_single_permission'; - describe('Anomaly detection jobs list', () => { + describe('Anomaly detection jobs list', function () { + // Error: Failed to delete all indices with pattern [.ml-*] + this.tags(['failsOnMKI']); before(async () => { await PageObjects.svlCommonPage.login(); diff --git a/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts b/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts index 8cd6f2a5708e2..f0dbed0ca9a7e 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ml/data_frame_analytics_jobs_list.ts @@ -13,7 +13,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { const PageObjects = getPageObjects(['svlCommonPage']); const dfaJobId = 'iph_outlier_permission'; - describe('Data frame analytics jobs list', () => { + describe('Data frame analytics jobs list', function () { + // Error: Failed to delete all indices with pattern [.ml-*] + this.tags(['failsOnMKI']); before(async () => { await PageObjects.svlCommonPage.login();