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][deployment-agnostic] move APM tests in its own config file (ela…
…stic#200562) ## Summary Part of elastic#199182 With great progress of elastic#193245 the number of tests in Observability deployment-agnostic config files is growing and so does config run time by reaching **30** minutes. As we try to keep pipeline runtime reasonable, this PR adds a new configs `oblt.apm.stateful.config.ts` and `oblt.apm.serverless.config.ts` that load only APM-related tests from https://github.com/elastic/kibana/blob/main/x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/index.ts It should help to speed up execution, we will double check config runtime when APM test migration is completed. For reviewers: no extra work is expected from Oblt teams if new tests are still imported in `x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/index.ts`
- Loading branch information
1 parent
1b8c802
commit 7872c15
Showing
8 changed files
with
67 additions
and
6 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
16 changes: 16 additions & 0 deletions
16
x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.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 Observability - Deployment-agnostic APM API integration tests', function () { | ||
this.tags(['esGate']); | ||
|
||
// load new oblt APM-only deployment-agnostic test here | ||
loadTestFile(require.resolve('../../apis/observability/apm')); | ||
}); | ||
} |
16 changes: 16 additions & 0 deletions
16
...test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.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,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 { createServerlessTestConfig } from '../../default_configs/serverless.config.base'; | ||
|
||
export default createServerlessTestConfig({ | ||
serverlessProject: 'oblt', | ||
testFiles: [require.resolve('./oblt.apm.index.ts')], | ||
junit: { | ||
reportName: 'Serverless Observability - Deployment-agnostic APM 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
14 changes: 14 additions & 0 deletions
14
x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.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 ({ loadTestFile }: DeploymentAgnosticFtrProviderContext) { | ||
describe('Stateful Observability - Deployment-agnostic APM API integration tests', () => { | ||
loadTestFile(require.resolve('../../apis/observability/apm')); | ||
}); | ||
} |
15 changes: 15 additions & 0 deletions
15
x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.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.apm.index.ts')], | ||
junit: { | ||
reportName: 'Stateful Observability - Deployment-agnostic APM 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