Skip to content

Commit

Permalink
[backend] Update counters (#issue/4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goumies committed Nov 23, 2023
1 parent 7274c83 commit dad3dcb
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 @@ -20,7 +20,7 @@ describe('Raw streams tests', () => {
expect(createEventsByTypes['marking-definition'].length).toBe(12);
expect(createEventsByTypes['external-reference'].length).toBe(17);
expect(createEventsByTypes.label.length).toBe(15);
expect(createEventsByTypes.identity.length).toBe(28);
expect(createEventsByTypes.identity.length).toBe(30);
expect(createEventsByTypes.relationship.length).toBe(126);
expect(createEventsByTypes.indicator.length).toBe(30);
expect(createEventsByTypes['attack-pattern'].length).toBe(7);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const checkPreSyncContent = async () => {
const initObjectAggregation = await elAggregationCount(testContext, ADMIN_USER, READ_DATA_INDICES, { types: ['Stix-Object'], field: 'entity_type' });
const objectMap = new Map(initObjectAggregation.map((i) => [i.label, i.value]));
expect(objectMap.get('Indicator')).toEqual(28);
expect(objectMap.get('Malware')).toEqual(27);
expect(objectMap.get('Malware')).toEqual(28);
expect(objectMap.get('Label')).toEqual(13);
expect(objectMap.get('Vocabulary')).toEqual(330);
// Relations
Expand Down

0 comments on commit dad3dcb

Please sign in to comment.