Skip to content

Commit

Permalink
Add namespaces to event annotation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeihl committed Nov 28, 2023
1 parent b96864f commit affb1b8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const annotationGroupResolveMocks: Record<string, AnnotationGroupSavedObject> =
attributes: {} as EventAnnotationGroupSavedObjectAttributes,
references: [],
id: 'nonExistingGroup',
namespaces: ['default'],
error: {
error: 'Saved object not found',
statusCode: 404,
Expand All @@ -40,6 +41,7 @@ const annotationGroupResolveMocks: Record<string, AnnotationGroupSavedObject> =
dataViewSpec: null,
},
type: 'event-annotation-group',
namespaces: ['default'],
references: [
{
id: 'ipid',
Expand All @@ -59,6 +61,7 @@ const annotationGroupResolveMocks: Record<string, AnnotationGroupSavedObject> =
},
id: 'multiAnnotations',
type: 'event-annotation-group',
namespaces: ['default'],
references: [
{
id: 'ipid',
Expand All @@ -76,6 +79,7 @@ const annotationGroupResolveMocks: Record<string, AnnotationGroupSavedObject> =
} as Partial<EventAnnotationGroupSavedObjectAttributes>,
id: 'multiAnnotations',
type: 'event-annotation-group',
namespaces: ['default'],
references: [],
} as Partial<AnnotationGroupSavedObject> as AnnotationGroupSavedObject,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ describe('annotation list view', () => {
wrapper.find(TableListViewTable).prop('deleteItems')!([
{
id: 'some-id-1',
namespaces: ['default'],
references: [
{
type: 'index-pattern',
Expand All @@ -150,6 +151,7 @@ describe('annotation list view', () => {
},
{
id: 'some-id-2',
namespaces: ['default'],
references: [],
type: EVENT_ANNOTATION_GROUP_TYPE,
updatedAt: '',
Expand Down

0 comments on commit affb1b8

Please sign in to comment.