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

[ftr] migrating 'saved_objects_management/bulk' API integration test to deployment-agnostic one #192070

Conversation

dmlemeshko
Copy link
Member

Summary

The goal is to consolidate 2 existing test files with identical logic into a single, deployment-agnostic test file:

Files to be replaced:

  • test/api_integration/apis/saved_objects_management/bulk_delete.ts
  • test/api_integration/apis/saved_objects_management/bulk_get.ts
  • x-pack/test_serverless/api_integration/test_suites/common/saved_objects_management/bulk_delete.ts
  • x-pack/test_serverless/api_integration/test_suites/common/saved_objects_management/bulk_get.ts

New test file:

  • x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_delete.ts
  • x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_get.ts

The migration leverages the serverless test file as a basis for the new deployment-agnostic test.
Necessary modifications are minimal and include FTR context provider & its services to ensure compatibility across different environments.
Lastly new file has to be loaded into both the serverless and stateful config files under x-pack/test/api_integration/deployment_agnostic/configs

This approach ensures that the test logic remains consistent while reducing redundancy and maintenance effort.

@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v8.16.0 labels Sep 4, 2024
@dmlemeshko dmlemeshko marked this pull request as ready for review September 6, 2024 09:21
@dmlemeshko dmlemeshko requested review from a team as code owners September 6, 2024 09:21
Copy link
Member

@wayneseymour wayneseymour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmlemeshko
Copy link
Member Author

holding back merging until https://github.com/elastic/qaf-tests/issues/94 is resolved

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmlemeshko dmlemeshko enabled auto-merge (squash) September 10, 2024 09:10
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dmlemeshko dmlemeshko merged commit 4cd23a1 into elastic:main Sep 10, 2024
20 checks passed
gergoabraham pushed a commit to gergoabraham/kibana that referenced this pull request Sep 13, 2024
…to deployment-agnostic one (elastic#192070)

## Summary

_The goal is to consolidate 2 existing test files with identical logic
into a single, deployment-agnostic test file:_

Files to be replaced:
- test/api_integration/apis/saved_objects_management/bulk_delete.ts
- test/api_integration/apis/saved_objects_management/bulk_get.ts
-
x-pack/test_serverless/api_integration/test_suites/common/saved_objects_management/bulk_delete.ts
-
x-pack/test_serverless/api_integration/test_suites/common/saved_objects_management/bulk_get.ts

New test file:
-
x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_delete.ts
-
x-pack/test/api_integration/deployment_agnostic/apis/saved_objects_management/bulk_get.ts


The migration leverages the serverless test file as a basis for the new
deployment-agnostic test.
Necessary modifications are minimal and include FTR context provider &
its services to ensure compatibility across different environments.
Lastly new file has to be loaded into both the serverless and stateful
config files under
`x-pack/test/api_integration/deployment_agnostic/configs`

This approach ensures that the test logic remains consistent while
reducing redundancy and maintenance effort.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants