Skip to content

Commit

Permalink
Add E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiWu committed Dec 1, 2023
1 parent 697e1e4 commit 96b9c50
Show file tree
Hide file tree
Showing 6 changed files with 631 additions and 217 deletions.
5 changes: 1 addition & 4 deletions x-pack/plugins/alerting/server/task_runner/task_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,6 @@ export class TaskRunner<
return false;
});

const maintenanceWindowsWithScopedQuery = maintenanceWindows.filter(
({ scopedQuery }) => scopedQuery
);
const maintenanceWindowsWithoutScopedQuery = maintenanceWindows.filter(
({ scopedQuery }) => !scopedQuery
);
Expand Down Expand Up @@ -598,7 +595,7 @@ export class TaskRunner<
ruleId: rule.id,
spaceId,
executionUuid: this.executionId,
maintenanceWindows: maintenanceWindowsWithScopedQuery,
maintenanceWindows,
});
} catch (e) {
this.logger.debug(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ function getPatternFiringAlertsAsDataRuleType() {
id: 'test.patternFiringAad',
name: 'Test: Firing on a Pattern and writing Alerts as Data',
actionGroups: [{ id: 'default', name: 'Default' }],
category: 'kibana',
category: 'management',
producer: 'alertsFixture',
defaultActionGroupId: 'default',
minimumLicenseRequired: 'basic',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export default function alertingTests({ loadTestFile, getService }: FtrProviderC

loadTestFile(require.resolve('./builtin_alert_types'));
loadTestFile(require.resolve('./maintenance_window_flows'));
loadTestFile(require.resolve('./maintenance_window_scoped_query'));
});
}
Loading

0 comments on commit 96b9c50

Please sign in to comment.