From 2b99109b6fd78dd2b07eaeedebdb10fe3404e383 Mon Sep 17 00:00:00 2001 From: Jeremy Cloarec Date: Tue, 24 Sep 2024 15:40:35 +0200 Subject: [PATCH] [backend] fix inconsistent test --- .../tests/01-unit/utils/schema-attributes-test.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 845ce9d0a325..e1901fdc1021 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({