Skip to content

[Security Solution][API testing] Move and restructures Privileges related tests and Action Throttle#171397

Merged
WafaaNasr merged 3 commits intoelastic:mainfrom
WafaaNasr:move-structure-privileges-throttle-action
Nov 16, 2023
Merged

[Security Solution][API testing] Move and restructures Privileges related tests and Action Throttle#171397
WafaaNasr merged 3 commits intoelastic:mainfrom
WafaaNasr:move-structure-privileges-throttle-action

Conversation

@WafaaNasr
Copy link
Contributor

@WafaaNasr WafaaNasr commented Nov 16, 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 Privileges related tests and Action Throttle
  • Moved the utility files associated with telemetry 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 if moved
Delete security_and_spaces/group4 -
Move detection_engine_api_integration/security_and_spaces/group10/throttle detections_response/default_license/action/throttle
Move detection_engine_api_integration/security_and_spaces/group1/check_privileges detections_response/default_license/actions/check_privileges
Move detection_engine_api_integration/security_and_spaces/group10/read_privileges detections_response/default_license/user_roles/read_privileges

@WafaaNasr WafaaNasr added release_note:skip Skip the PR/issue when compiling release notes FTR labels Nov 16, 2023
@WafaaNasr WafaaNasr self-assigned this Nov 16, 2023
@WafaaNasr WafaaNasr marked this pull request as ready for review November 16, 2023 12:34
@WafaaNasr WafaaNasr requested review from a team as code owners November 16, 2023 12:34
Copy link
Contributor

@nkhristinin nkhristinin left a comment

Choose a reason for hiding this comment

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

LGTM!

Have one question, but it's not blokker! Thank you!

} = await supertest.get(`/api/alerting/rule/${rule.id}`);
} = await supertest
.get(`/api/alerting/rule/${rule.id}`)
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious if we really need here this header, my understanding was that it's needed only for internal requests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct since the notify_when property is internal we need this header to access it!

Copy link
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

ftr_configs.yml

@kibana-ci
Copy link

💚 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 7c80161 into elastic:main Nov 16, 2023
@WafaaNasr WafaaNasr deleted the move-structure-privileges-throttle-action branch November 16, 2023 16:37
@kibanamachine kibanamachine added v8.12.0 backport:skip This PR does not require backporting labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR 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.

5 participants