Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ export default ({ getService }: FtrProviderContext) => {
*/
const internalIdPipe = (id: string) => `| where id=="${id}"`;

// Failing: See https://github.com/elastic/kibana/issues/235895
describe.skip('@ess @serverless ES|QL rule type', () => {
describe('@ess @serverless ES|QL rule type', () => {
before(async () => {
await esArchiver.load(
'x-pack/solutions/security/test/fixtures/es_archives/security_solution/ecs_compliant'
Expand Down Expand Up @@ -1712,14 +1711,13 @@ export default ({ getService }: FtrProviderContext) => {
expect(alertsResponse.hits.hits).toHaveLength(4);
});

// flaky test: https://github.com/elastic/kibana/issues/235895
it.skip('should generate alerts over multiple pages from different indices but same event id for mv_expand when number alerts exceeds max signal', async () => {
it('should generate alerts over multiple pages from different indices but same event id for mv_expand when number alerts exceeds max signal', async () => {
const id = uuidv4();
const rule: EsqlRuleCreateProps = {
...getCreateEsqlRulesSchemaMock(`rule-${id}`, true),
query: `from ecs_compliant, ecs_compliant_synthetic_source metadata _id, _index ${internalIdPipe(
id
)} | mv_expand agent.name | sort @timestamp asc`,
)} | mv_expand agent.name | sort @timestamp asc, _index asc`, // sort by timestamp and index to ensure deterministic results, see https://github.com/elastic/kibana/issues/253849
from: '2020-10-28T05:15:00.000Z',
to: '2020-10-28T06:00:00.000Z',
interval: '45m',
Expand All @@ -1733,7 +1731,7 @@ export default ({ getService }: FtrProviderContext) => {
};

await Promise.all(
['ecs_compliant', 'ecs_compliant_synthetic_source'].map((index) =>
['ecs_compliant', 'ecs_compliant_synthetic_source'].map((index, i) =>
es.index({
index,
id,
Expand Down