[8.11] [RAM] Fix flaky test get_global_execution_kpi (#170328) (#170348)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[RAM] Fix flaky test get_global_execution_kpi
(#170328)](https://github.com/elastic/kibana/pull/170328)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Xavier
Mouligneau","email":"xavier.mouligneau@elastic.co"},"sourceCommit":{"committedDate":"2023-11-01T19:09:20Z","message":"[RAM]
Fix flaky test get_global_execution_kpi (#170328)\n\n##
Summary\r\n\r\nFix ->
https://github.com/elastic/kibana/issues/153112\r\n\r\nI think it is
possible to only have two errors, one for each
rule.","sha":"ea80be5baf5c5e21ccf970487771448770d6fdfc","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v8.11.0","v8.12.0"],"number":170328,"url":"https://github.com/elastic/kibana/pull/170328","mergeCommit":{"message":"[RAM]
Fix flaky test get_global_execution_kpi (#170328)\n\n##
Summary\r\n\r\nFix ->
https://github.com/elastic/kibana/issues/153112\r\n\r\nI think it is
possible to only have two errors, one for each
rule.","sha":"ea80be5baf5c5e21ccf970487771448770d6fdfc"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170328","number":170328,"mergeCommit":{"message":"[RAM]
Fix flaky test get_global_execution_kpi (#170328)\n\n##
Summary\r\n\r\nFix ->
https://github.com/elastic/kibana/issues/153112\r\n\r\nI think it is
possible to only have two errors, one for each
rule.","sha":"ea80be5baf5c5e21ccf970487771448770d6fdfc"}}]}] BACKPORT-->

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
This commit is contained in:
Kibana Machine 2023-11-01 17:58:12 -04:00 committed by GitHub
parent 44d0b927b7
commit c5ffc4c971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,7 @@ export default function getGlobalExecutionKpiTests({ getService }: FtrProviderCo
const retry = getService('retry');
// FLAKY: https://github.com/elastic/kibana/issues/153112
describe.skip('getGlobalExecutionKpi', () => {
describe('getGlobalExecutionKpi', () => {
const objectRemover = new ObjectRemover(supertest);
afterEach(() => objectRemover.removeAll());
@ -298,7 +297,7 @@ export default function getGlobalExecutionKpiTests({ getService }: FtrProviderCo
'triggeredActions',
]);
expect(kpiLogs.success).to.be.above(1);
expect(kpiLogs.failure).to.be.above(2);
expect(kpiLogs.failure).to.be.above(1);
});
});
}