Skip to content

Commit

Permalink
[8.11] Fixing Failing test: Serverless Security API Integration Tests…
Browse files Browse the repository at this point in the history
… - Common Group 1.x-pack/test_serverless/api_integration/test_suites/common/alerting/rules·ts - Alerting APIs Alerting rules "after each" hook for "should retry when appro (#168157)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Fixing Failing test: Serverless Security API Integration Tests -
Common Group
1.x-pack/test_serverless/api_integration/test_suites/common/alerting/rules·ts
- Alerting APIs Alerting rules "after each" hook for "should retry when
appropriate" (#168109)](#168109)

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

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

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-05T20:28:14Z","message":"Fixing
Failing test: Serverless Security API Integration Tests - Common Group
1.x-pack/test_serverless/api_integration/test_suites/common/alerting/rules·ts
- Alerting APIs Alerting rules \"after each\" hook for \"should retry
when appropriate\"
(#168109)","sha":"c4183534b774b05b54541e536521f2a57ae7968e","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","v8.11.0","v8.12.0"],"number":168109,"url":"https://github.com/elastic/kibana/pull/168109","mergeCommit":{"message":"Fixing
Failing test: Serverless Security API Integration Tests - Common Group
1.x-pack/test_serverless/api_integration/test_suites/common/alerting/rules·ts
- Alerting APIs Alerting rules \"after each\" hook for \"should retry
when appropriate\"
(#168109)","sha":"c4183534b774b05b54541e536521f2a57ae7968e"}},"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/168109","number":168109,"mergeCommit":{"message":"Fixing
Failing test: Serverless Security API Integration Tests - Common Group
1.x-pack/test_serverless/api_integration/test_suites/common/alerting/rules·ts
- Alerting APIs Alerting rules \"after each\" hook for \"should retry
when appropriate\"
(#168109)","sha":"c4183534b774b05b54541e536521f2a57ae7968e"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <[email protected]>
  • Loading branch information
kibanamachine and ymao1 authored Oct 5, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent da1bc60 commit 36a023c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -35,8 +35,7 @@ export default function ({ getService }: FtrProviderContext) {
const esClient = getService('es');
const esDeleteAllIndices = getService('esDeleteAllIndices');

// Failing: See https://github.com/elastic/kibana/issues/167665
describe.skip('Alerting rules', () => {
describe('Alerting rules', () => {
const RULE_TYPE_ID = '.es-query';
const ALERT_ACTION_INDEX = 'alert-action-es-query';
let actionId: string;
@@ -53,6 +52,7 @@ export default function ({ getService }: FtrProviderContext) {
.set('x-elastic-internal-origin', 'foo');
await esClient.deleteByQuery({
index: '.kibana-event-log-*',
conflicts: 'proceed',
query: { term: { 'kibana.alert.rule.consumer': 'alerts' } },
});
await esDeleteAllIndices([ALERT_ACTION_INDEX]);

0 comments on commit 36a023c

Please sign in to comment.