Skip to content

Commit

Permalink
[backend] updated hardcoded api tests to account for additional relat…
Browse files Browse the repository at this point in the history
…ionship types
  • Loading branch information
Bonsai8863 authored and SarahBocognano committed Oct 14, 2024
1 parent 12e6d2f commit 11925f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ describe('Filter keys schema generation testing', async () => {

// Stix Core Relationships
filterDefinition = filterKeysSchema.get(ABSTRACT_STIX_CORE_RELATIONSHIP)?.get(RELATION_FROM_FILTER);
expect(filterDefinition?.subEntityTypes.length).toEqual(50); // 49 stix core relationship types + abstract type 'stix-core-relationships'
expect(filterDefinition?.subEntityTypes.length).toEqual(52); // 51 stix core relationship types + abstract type 'stix-core-relationships'
// Stix Cyber Observables
filterDefinition = filterKeysSchema.get(ABSTRACT_STIX_CYBER_OBSERVABLE)?.get('x_opencti_score'); // attribute existing for all the observables
filterDefinition = filterKeysSchema.get(ABSTRACT_STIX_CYBER_OBSERVABLE)?.get(INPUT_LABELS); // ref existing for all the observables
Expand Down

0 comments on commit 11925f1

Please sign in to comment.