Skip to content

Commit

Permalink
[ObsUX][APM] Migrate Service Overview archiver test cases to synthtra…
Browse files Browse the repository at this point in the history
…ce (elastic#201407)

Part of elastic#193245
Related elastic#200226
Closes elastic#200743 

## Summary

This PR completes the migration of remaining Service Overview tests to
the Deployment Agnostic test framework. In this PR, one test was
deduplicated (the Dependencies test), and the Instances Detailed
Statistics cases dealing with archiver data was migrated to make use of
synthtrace instead. Snapshots included were redone to match the data
generated by synthtrace, but no other cases were changed to ensure the
new migrated tests were passing the same assumptions as before.

## How to Test

### Serverless

```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt/apm.serverless.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.apm.serverless.config.ts
```

It's recommended to be run against
[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)

### Stateful

```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.apm.stateful.config.ts
```

---------

Co-authored-by: jennypavlova <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored and CAWilson94 committed Dec 12, 2024
1 parent 6c2d2af commit 2cbb1a8
Show file tree
Hide file tree
Showing 9 changed files with 841 additions and 1,081 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function ({ loadTestFile }: DeploymentAgnosticFtrProviderContext)
describe('custom_dashboards', () => {
loadTestFile(require.resolve('./dependency_metrics.spec.ts'));
loadTestFile(require.resolve('./metadata.spec.ts'));
loadTestFile(require.resolve('./service_dependencies.spec.ts'));
loadTestFile(require.resolve('./top_dependencies.spec.ts'));
loadTestFile(require.resolve('./top_operations.spec.ts'));
loadTestFile(require.resolve('./top_spans.spec.ts'));
Expand Down

This file was deleted.

Loading

0 comments on commit 2cbb1a8

Please sign in to comment.