forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ftr] split
alerting_api_integration/spaces_only/config.ts
into sma…
…ll fast configs (elastic#149854) ## Summary Trying to address slow config issue: ``` The following "Functional Tests" configs have durations that exceed the maximum amount of time desired for a single CI job. This is not an error, and if you don't own any of these configs then you can ignore this warning.If you own any of these configs please split them up ASAP and ask Operations if you have questions about how to do that. x-pack/test/alerting_api_integration/spaces_only/config.ts: 41.4 minutes ``` by splitting it into multiple groups. _1 round (splitting main index file with 3 index suites where each one has its own setup/tearDown + alerting suite into 4 groups)_ x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts 7m 1s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts **15m 10s** x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts **21m 40s** x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts 5m 30s x-pack/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts 2m 31s x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts 4m 22s _2 round (rebalance groups 1-4 to be more time equal)_ x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts 12m 46s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts 8m 46s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts 17m 30s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts 9m 5s Here `Alerting eventLog alerts should generate expected alert events for normal operation` test started to fail, probably there is a dependency on the previous tests. _3 round (rebalance groups 1-4, to keep tests order in group 1 up until `event_log.ts` suite)_ x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts 17m 12s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts 8m 28s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts 16m 15s x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts 6m 21s _4 round (rebalancing groups 3-4 to be more time equal)_ x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts **17m 14s** x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group2/config.ts **8m 37s** x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group3/config.ts **12m 40s** x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts **9m 49s** --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
c757f7f
commit 1ec49d2
Showing
87 changed files
with
457 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
x-pack/test/alerting_api_integration/spaces_only/tests/action_task_params/config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { 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', | ||
enableActionsProxy: false, | ||
verificationMode: 'none', | ||
customizeLocalHostSsl: true, | ||
preconfiguredAlertHistoryEsIndex: true, | ||
emailDomainsAllowed: EmailDomainsAllowed, | ||
useDedicatedTaskRunner: true, | ||
testFiles: [require.resolve('.')], | ||
reportName: 'X-Pack Alerting API Integration Tests - Action Task Params', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { 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', | ||
enableActionsProxy: false, | ||
verificationMode: 'none', | ||
customizeLocalHostSsl: true, | ||
preconfiguredAlertHistoryEsIndex: true, | ||
emailDomainsAllowed: EmailDomainsAllowed, | ||
useDedicatedTaskRunner: true, | ||
testFiles: [require.resolve('.')], | ||
reportName: 'X-Pack Alerting API Integration Tests - Alerting - group1', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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 '../../../../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)); | ||
after(async () => await tearDown(getService)); | ||
|
||
loadTestFile(require.resolve('./aggregate')); | ||
loadTestFile(require.resolve('./aggregate_post')); | ||
loadTestFile(require.resolve('./create')); | ||
loadTestFile(require.resolve('./delete')); | ||
loadTestFile(require.resolve('./disable')); | ||
loadTestFile(require.resolve('./enable')); | ||
loadTestFile(require.resolve('./find')); | ||
loadTestFile(require.resolve('./get')); | ||
loadTestFile(require.resolve('./get_alert_state')); | ||
loadTestFile(require.resolve('./get_alert_summary')); | ||
loadTestFile(require.resolve('./get_execution_log')); | ||
loadTestFile(require.resolve('./get_action_error_log')); | ||
loadTestFile(require.resolve('./rule_types')); | ||
loadTestFile(require.resolve('./event_log')); | ||
}); | ||
} |
Oops, something went wrong.