diff --git a/opencti-platform/opencti-graphql/tests/01-unit/utils/schema-attributes-test.ts b/opencti-platform/opencti-graphql/tests/01-unit/utils/schema-attributes-test.ts index 845ce9d0a325e..e1901fdc10212 100644 --- a/opencti-platform/opencti-graphql/tests/01-unit/utils/schema-attributes-test.ts +++ b/opencti-platform/opencti-graphql/tests/01-unit/utils/schema-attributes-test.ts @@ -4,17 +4,18 @@ import { schemaAttributesDefinition } from '../../../src/schema/schema-attribute describe('Schema utilities', () => { let mapping; it('getAttributeMappingFromPath gives access to internal attribute definitions', () => { - mapping = schemaAttributesDefinition.getAttributeMappingFromPath('name'); + mapping = schemaAttributesDefinition.getAttributeMappingFromPath('standard_id'); expect(mapping).toEqual({ - editDefault: false, + name: 'standard_id', + label: 'Standard id', + type: 'string', format: 'short', - isFilterable: true, - label: 'Name', - mandatoryType: 'external', + update: false, + mandatoryType: 'internal', + editDefault: false, multiple: false, - name: 'name', - type: 'string', upsert: false, + isFilterable: false, }); mapping = schemaAttributesDefinition.getAttributeMappingFromPath('group_confidence_level.overrides.entity_type'); expect(mapping).toEqual({