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

[Security Solution][API testing] Move and restructures Basic detection engine tests #171531

Merged

Conversation

WafaaNasr
Copy link
Contributor

@WafaaNasr WafaaNasr commented Nov 20, 2023

Summary

Following the initial work in this #166755

  • Addresses part of [Security Solution] Restructure API integration tests into meaningful groups that run in parallel on CI #151902 for basic detection engine-related tests
  • Introduced a new license folder to hold the Basic Ess tests and the Essentials Serverless tests, is called basic_essentials_license
  • Added new base configurations files for serverless/config.base.essentials and ess/config.base.basic
  • Moved the utility files associated with Basic tests to the new directory security_solution_api_integration. Files not actively used in the previous folder were moved, while duplicate files remained in their original positions.
  • Updated the CodeOwner file for the newly moved tests
  • Old/new group details, decisions, and execution time are mentioned in this document
  • The Privileges Tests are skipped in Serverless now until the FTR Roles PR gets merged
Action File New Path
Moved basic/create_rules basic_essentials_license/detection_engine/rules/create_rules
Moved basic/create_rules basic_essentials_license/detection_engine/rules/create_ml_rules_privileges
Moved basic/create_rules basic_essentials_license/detection_engine/alerts/open_close_alerts
Moved basic/create_rules basic_essentials_license/detection_engine/alerts/query_alerts_backword_compatibility
Moved basic/create_rules basic_essentials_license/detection_engine/alerts/query_alerts

@WafaaNasr WafaaNasr added release_note:skip Skip the PR/issue when compiling release notes FTR labels Nov 20, 2023
@WafaaNasr WafaaNasr self-assigned this Nov 20, 2023
@WafaaNasr WafaaNasr marked this pull request as ready for review November 21, 2023 19:24
@WafaaNasr WafaaNasr requested review from a team as code owners November 21, 2023 19:24
const dataPathBuilder = new EsArchivePathBuilder(isServerless);
const auditbeatPath = dataPathBuilder.getPath('auditbeat/hosts');

describe('create_ml_rules', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it ok to not have a tag at the parent level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, in this test suite (parent level) specifically we don't share the test methods in both envs instead we test the differences among both, so it wouldn't make sense to add the tag on the top level, and Mocha already pick up the tags at any level (the suite & the test method)

Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

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

LGTM! Just one comment to ensure the test gets picked up if a tag is missing at the top describe block for one of the tests.

@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

cc @WafaaNasr

@WafaaNasr WafaaNasr merged commit 5fa20cc into elastic:main Nov 23, 2023
26 checks passed
@WafaaNasr WafaaNasr deleted the move-structure-basic-detection_engine branch November 23, 2023 08:03
@kibanamachine kibanamachine added v8.12.0 backport:skip This commit does not require backporting labels Nov 23, 2023
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 FTR release_note:skip Skip the PR/issue when compiling release notes v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants