-
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.
[ftr] re-group configs for deployment agnostic tests (#190672)
## Summary While reviewing #187924 I realised that Solution Teams will have their own stateful FTR configs and the overall number of configs in `api_integration/deployment_agnostic` folder might grow up soon and it is better to re-organise it in advance. With new structure we have `configs` folder with 2 sub-folders: `stateful` and `serverless` <img width="494" alt="image" src="https://github.com/user-attachments/assets/c844ce2c-51b6-498c-b51f-0cd9203d84ea"> When _Platform_ teams add deployment-agnostic tests, it is expected to be loaded in `configs/stateful/platform.index.ts` and _at least one_ of `<project>.serverless.config` under `configs/serverless` When _Solution_ team adds deployment-agnostic tests (e.g. one of Oblt teams), it is expected to be loaded _both_ in `configs/stateful/oblt.index.ts` and `configs/serverless/oblt.index.ts`
- Loading branch information
1 parent
0415dd7
commit b50eb08
Showing
17 changed files
with
92 additions
and
49 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
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
16 changes: 16 additions & 0 deletions
16
x-pack/test/api_integration/deployment_agnostic/configs/serverless/security.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,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 { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { | ||
describe('Serverless Security - Deployment-agnostic api integration tests', () => { | ||
// load new security and platform deployment-agnostic test here | ||
loadTestFile(require.resolve('../../apis/console')); | ||
loadTestFile(require.resolve('../../apis/core')); | ||
loadTestFile(require.resolve('../../apis/painless_lab')); | ||
}); | ||
} |
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/api_integration/deployment_agnostic/configs/stateful/oblt.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,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 { DeploymentAgnosticFtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({}: DeploymentAgnosticFtrProviderContext) { | ||
describe('apis', () => { | ||
// load new oblt deployment-agnostic test here | ||
}); | ||
} |
15 changes: 15 additions & 0 deletions
15
x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.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,15 @@ | ||
/* | ||
* 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 { createStatefulTestConfig } from '../../default_configs/stateful.config.base'; | ||
|
||
export default createStatefulTestConfig({ | ||
testFiles: [require.resolve('./oblt.index.ts')], | ||
junit: { | ||
reportName: 'Observibility Stateful - Deployment-agnostic API Integration Tests', | ||
}, | ||
}); |
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
15 changes: 0 additions & 15 deletions
15
x-pack/test/api_integration/deployment_agnostic/security.index.ts
This file was deleted.
Oops, something went wrong.