Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed May 3, 2022
1 parent 68e8dff commit 2dd9b78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('add_prepackaged_rules_route', () => {
errors: [],
});

(legacyMigrate as jest.Mock).mockResolvedValue(getRuleMock(true, getQueryRuleParams()));
(legacyMigrate as jest.Mock).mockResolvedValue(getRuleMock(getQueryRuleParams()));

context.core.elasticsearch.client.asCurrentUser.search.mockResolvedValue(
elasticsearchClientMock.createSuccessTransportRequestPromise(getBasicEmptySearchResponse())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default ({ loadTestFile }: FtrProviderContext): void => {
describe('', function () {
this.tags('ciGroup11');

// !!NOTE: For new routes that do any updates on a rule, please ensure that you are including the legacy
// action migration code. We are monitoring legacy action telemetry to clean up once we see their
// existence being near 0.
loadTestFile(require.resolve('./aliases'));
loadTestFile(require.resolve('./add_actions'));
loadTestFile(require.resolve('./update_actions'));
Expand Down

0 comments on commit 2dd9b78

Please sign in to comment.