Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] Migrate /test/apm_api_integration/tests/mobile to be deployment-agnostic API tests #198980

Closed
rmyz opened this issue Nov 5, 2024 · 0 comments · Fixed by #199021
Closed
Assignees
Labels
Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team technical debt Improvement of the software architecture and operational architecture

Comments

@rmyz
Copy link
Contributor

rmyz commented Nov 5, 2024

API ESS Serverless Test files
GET /internal/apm/mobile-services/{serviceName}/crashes/groups/main_statistics ESS: ./test/apm_api_integration/tests/mobile/crashes/crash_group_list.spec.ts
GET /internal/apm/mobile-services/{serviceName}/crashes/distribution ESS: ./test/apm_api_integration/tests/mobile/crashes/distribution.spec.ts
GET /internal/apm/services/{serviceName}/errors/{groupId}/samples ESS: ./test/apm_api_integration/tests/mobile/errors/group_id_samples.spec.ts
GET /internal/apm/mobile-services/{serviceName}/detailed_statistics ESS: ./test/apm_api_integration/tests/mobile/mobile_detailed_statistics_by_field.spec.ts
GET /internal/apm/services/{serviceName}/mobile/filters ESS: ./test/apm_api_integration/tests/mobile/mobile_filters.spec.ts
GET /internal/apm/mobile-services/{serviceName}/transactions/charts/http_requests ESS: ./test/apm_api_integration/tests/mobile/mobile_http_requests_timeseries.spec.ts
GET /internal/apm/mobile-services/{serviceName}/location/stats ESS: ./test/apm_api_integration/tests/mobile/mobile_location_stats.spec.ts
GET /internal/apm/mobile-services/{serviceName}/main_statistics ESS: ./test/apm_api_integration/tests/mobile/mobile_main_statistics_by_field.spec.ts
GET /internal/apm/mobile-services/{serviceName}/most_used_charts ESS: ./test/apm_api_integration/tests/mobile/mobile_most_used_chart.spec.ts
GET /internal/apm/mobile-services/{serviceName}/transactions/charts/sessions ESS: ./test/apm_api_integration/tests/mobile/mobile_sessions_timeseries.spec.ts
GET /internal/apm/mobile-services/{serviceName}/stats ESS: ./test/apm_api_integration/tests/mobile/mobile_stats.spec.ts
GET /internal/apm/mobile-services/{serviceName}/terms ESS: ./test/apm_api_integration/tests/mobile/mobile_terms_by_field.spec.ts
@rmyz rmyz added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team technical debt Improvement of the software architecture and operational architecture labels Nov 5, 2024
@kpatticha kpatticha self-assigned this Nov 5, 2024
kpatticha added a commit to kpatticha/kibana that referenced this issue Nov 11, 2024
…tic#199021)

closes elastic#198980

In addition to migrating the mobile api tests, the PR includes

- Fixing mapping issue with `error.grouping_name` which causing to drop
documents
- Fix and unskip mobile tests

### How to test

- Serverless

```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="APM"
```

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.stateful.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="APM"

```

TODO
- [x]   flaky runner
- [x] locally pass
-  [x] mki run

---------

Co-authored-by: Carlos Crespo <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit f77a805)
tkajtoch pushed a commit to tkajtoch/kibana that referenced this issue Nov 12, 2024
…tic#199021)

closes elastic#198980

In addition to migrating the mobile api tests, the PR includes

- Fixing mapping issue with `error.grouping_name` which causing to drop
documents
- Fix and unskip mobile tests

### How to test

- Serverless

```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="APM"
```

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.stateful.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="APM"

```

TODO 
- [x]   flaky runner 
- [x] locally pass
-  [x] mki run

---------

Co-authored-by: Carlos Crespo <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Nov 18, 2024
…tic#199021)

closes elastic#198980

In addition to migrating the mobile api tests, the PR includes

- Fixing mapping issue with `error.grouping_name` which causing to drop
documents
- Fix and unskip mobile tests

### How to test

- Serverless

```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="APM"
```

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.stateful.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="APM"

```

TODO 
- [x]   flaky runner 
- [x] locally pass
-  [x] mki run

---------

Co-authored-by: Carlos Crespo <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants