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

[8.x] [APM] Migrate service tests to deployment agnostic (#199812) #200171

Merged
merged 1 commit into from
Nov 14, 2024

Commits on Nov 14, 2024

  1. [APM] Migrate service tests to deployment agnostic (elastic#199812)

    ## Summary
    
    Closes elastic#198988
    Part of elastic#193245
    
    This PR contains the changes to migrate `service` test folder to
    Deployment-agnostic testing strategy.
    
    >[!NOTE]
    > `top_services.spec.ts` and `throughput.spec.ts` were partially
    migrated and `annotations.spec.ts` was not migrated
    
    ### 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"
    ```
    
    - [ ] ~(OPTIONAL, only if a test has been unskipped) Run flaky test
    suite~
    - [x] local run for serverless
    - [x] local run for stateful
    - [x] MKI run for serverless
    
    ---------
    
    Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
    (cherry picked from commit 2e9926d)
    
    # Conflicts:
    #	x-pack/test/apm_api_integration/tests/services/agent.spec.ts
    crespocarlos committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    5dea9c5 View commit details
    Browse the repository at this point in the history