diff --git a/src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap b/src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap index 0bd643095dcdc..ad113cc376690 100644 --- a/src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap +++ b/src/plugins/event_annotation/public/event_annotation_service/__snapshots__/service.test.ts.snap @@ -11,6 +11,9 @@ Object { "title": undefined, }, "id": "nonExistingGroup", + "namespaces": Array [ + "default", + ], "references": Array [], "type": undefined, "updatedAt": "", @@ -23,6 +26,9 @@ Object { "title": "groupTitle", }, "id": undefined, + "namespaces": Array [ + "default", + ], "references": Array [ Object { "id": "ipid", @@ -46,6 +52,9 @@ Object { "title": "groupTitle", }, "id": "multiAnnotations", + "namespaces": Array [ + "default", + ], "references": Array [ Object { "id": "ipid", @@ -66,6 +75,9 @@ Object { "title": "groupTitle", }, "id": "multiAnnotations", + "namespaces": Array [ + "default", + ], "references": Array [], "type": "event-annotation-group", "updatedAt": "", diff --git a/src/plugins/event_annotation/public/event_annotation_service/service.test.ts b/src/plugins/event_annotation/public/event_annotation_service/service.test.ts index 7a0f00e7a4de2..b80219694b161 100644 --- a/src/plugins/event_annotation/public/event_annotation_service/service.test.ts +++ b/src/plugins/event_annotation/public/event_annotation_service/service.test.ts @@ -24,6 +24,7 @@ const annotationGroupResolveMocks: Record = attributes: {} as EventAnnotationGroupSavedObjectAttributes, references: [], id: 'nonExistingGroup', + namespaces: ['default'], error: { error: 'Saved object not found', statusCode: 404, @@ -40,6 +41,7 @@ const annotationGroupResolveMocks: Record = dataViewSpec: null, }, type: 'event-annotation-group', + namespaces: ['default'], references: [ { id: 'ipid', @@ -59,6 +61,7 @@ const annotationGroupResolveMocks: Record = }, id: 'multiAnnotations', type: 'event-annotation-group', + namespaces: ['default'], references: [ { id: 'ipid', @@ -76,6 +79,7 @@ const annotationGroupResolveMocks: Record = } as Partial, id: 'multiAnnotations', type: 'event-annotation-group', + namespaces: ['default'], references: [], } as Partial as AnnotationGroupSavedObject, }; diff --git a/src/plugins/event_annotation_listing/public/components/table_list.test.tsx b/src/plugins/event_annotation_listing/public/components/table_list.test.tsx index 65970aeca3c7d..aef902fad6e84 100644 --- a/src/plugins/event_annotation_listing/public/components/table_list.test.tsx +++ b/src/plugins/event_annotation_listing/public/components/table_list.test.tsx @@ -135,6 +135,7 @@ describe('annotation list view', () => { wrapper.find(TableListViewTable).prop('deleteItems')!([ { id: 'some-id-1', + namespaces: ['default'], references: [ { type: 'index-pattern', @@ -150,6 +151,7 @@ describe('annotation list view', () => { }, { id: 'some-id-2', + namespaces: ['default'], references: [], type: EVENT_ANNOTATION_GROUP_TYPE, updatedAt: '',