[test_serverless/api_integration] convert alerting_wait_for_helpers into FTR service #162623
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR converts helpers into FTR services that should provide better test capabilities and improve stability/error output.
Before change:
The test is not handling its state properly and fails on mocha timeout (6 minutes) without proper error message. It leads the test suite usually taking ~5 min keep running for over 1 hour
After change:
Since the follow-up tests depend on the first test to success, we can either move Rule creation to before hook or check for
ruleId
to be defined. If it is defined,retry
service will pull for status up to 90 sec (important to keep below Mocha timeout so you can get error) and fail if it is not matching expected one.