-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[functional tests] split security and spaces ftr configs (#156350)
## Summary Splitting ftr configs to speed up ftr tests run on CI ``` 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/spaces_api_integration/security_and_spaces/config_basic.ts: 38.2 minutes x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts: 38.2 minutes ``` After split: x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts 20m 29s x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_basic.ts 20m 52s x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts 19m 57s x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_trial.ts 21m 5s Rebalancing it with other configs should speedup CI by at least few minutes (cherry picked from commit 424eae3)
- Loading branch information
1 parent
f227215
commit 8751d7a
Showing
7 changed files
with
70 additions
and
16 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
23 changes: 23 additions & 0 deletions
23
x-pack/test/spaces_api_integration/security_and_spaces/apis/copy_to_space/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,23 @@ | ||
/* | ||
* 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 { createUsersAndRoles } from '../../../common/lib/create_users_and_roles'; | ||
import { FtrProviderContext } from '../../../common/ftr_provider_context'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default function ({ loadTestFile, getService }: FtrProviderContext) { | ||
const es = getService('es'); | ||
const supertest = getService('supertest'); | ||
|
||
describe('copy to space with security', function () { | ||
before(async () => { | ||
await createUsersAndRoles(es, supertest); | ||
}); | ||
|
||
loadTestFile(require.resolve('./copy_to_space')); // ~ 19m 20s | ||
}); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_basic.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,14 @@ | ||
/* | ||
* 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'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default createTestConfig('security_and_spaces', { | ||
license: 'basic', | ||
testFiles: [require.resolve('./apis/copy_to_space')], | ||
}); |
14 changes: 14 additions & 0 deletions
14
x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_trial.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,14 @@ | ||
/* | ||
* 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'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default createTestConfig('security_and_spaces', { | ||
license: 'trial', | ||
testFiles: [require.resolve('./apis/copy_to_space')], | ||
}); |