Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Aug 30, 2021
1 parent 37dbcdf commit 4041d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { FtrProviderContext } from '../../../common/ftr_provider_context';
import { ESTestIndexTool, getUrlPrefix, ObjectRemover, AlertUtils } from '../../../common/lib';
import { setupSpacesAndUsers } from '..';
import { SavedObjectsUtils } from '../../../../../../src/core/server/saved_objects';
//import { SavedObjectsUtils } from '../../../../../../src/plugins/saved_objects/server';

// eslint-disable-next-line import/no-default-export
export default function alertTests({ getService }: FtrProviderContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import expect from '@kbn/expect';
import type { ApiResponse, estypes } from '@elastic/elasticsearch';
import { SavedObject } from 'kibana/server';
import { SavedObjectsUtils } from '../../../../../../src/core/server/saved_objects';
import { Spaces } from '../../scenarios';
import {
checkAAD,
Expand Down Expand Up @@ -193,7 +194,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {

const esResponse = await es.get<SavedObject<RawAlert>>({
index: '.kibana',
id: `${Spaces.space1.id}:alert:${response.body.id}`,
id: `alert:${SavedObjectsUtils.getConvertedObjectId(undefined, 'alert', response.body.id)}`,
});
expect(esResponse.statusCode).to.eql(200);
const rawActions = (esResponse.body._source as any)?.alert.actions ?? [];
Expand Down

0 comments on commit 4041d51

Please sign in to comment.