Commit 7fe71b3
authored
[Detection Engine][Test Fix] Ensure that alerts are absent before loading our alerts archive (#222691)
## Summary
This test has [failed a few times
recently](#219112) with a
`version_conflict_engine_exception`, stating explicitly that the
documents we're trying to load already exist in elasticsearch. In one
case the reason was obvious (the suite was retried), but in another it
was not clear why the data was there to cause this exception.
Regardless, adding this sanity check (deleting all the alerts) should
ensure that this behavior does not recur.
Closes #219112.
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
([200x](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8329))
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)1 parent 61a4466 commit 7fe71b3
File tree
1 file changed
+6
-0
lines changed- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/alerts/trial_license_complete_tier
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
0 commit comments