Skip to content

[8.7] [Security Solution] Support rule id in wait for rule status helper (#153410)#154328

Merged
maximpn merged 4 commits intoelastic:8.7from
maximpn:backport/8.7/pr-153410
Apr 4, 2023
Merged

[8.7] [Security Solution] Support rule id in wait for rule status helper (#153410)#154328
maximpn merged 4 commits intoelastic:8.7from
maximpn:backport/8.7/pr-153410

Conversation

@maximpn
Copy link
Contributor

@maximpn maximpn commented Apr 4, 2023

Backport

This will backport the following commits from main to 8.7:

Questions ?

Please refer to the Backport tool documentation

…lastic#153410)

**Relates to:** elastic#152900

## Summary

This PR adds an ability to wait for rule status by its rule id in functional tests. It is a result of splitting of elastic#150553 into isolated parts.

## Details

Based on what kind of id is used (SO id or rule id) it leads to different behaviour under the hood. SO id related functionality consumes ES Get API while rule id related functionality consumes ES Search API. This way it may require to add some delay to let ES to refresh the data if the testing logic consumes ES Search API while rule status was awaited via SO id so that handled by ES Get API. This PR removes such a delay at rule exporting functional tests.

(cherry picked from commit 519185f)

# Conflicts:
#	x-pack/test/cases_api_integration/common/lib/alerts.ts
@maximpn maximpn added the backport This PR is a backport of another PR label Apr 4, 2023
@maximpn maximpn enabled auto-merge (squash) April 4, 2023 11:13
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@maximpn maximpn merged commit 0c4ffe5 into elastic:8.7 Apr 4, 2023
@maximpn maximpn deleted the backport/8.7/pr-153410 branch March 9, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants