From 89b7db7d09fc6f300a396f5f96859ea072d9e1d7 Mon Sep 17 00:00:00 2001 From: Laurent Bonnet Date: Mon, 13 Jan 2025 10:10:47 +0100 Subject: [PATCH] [backend] exclude platform version from logger tests --- .../opencti-graphql/tests/01-unit/utils/logger-test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencti-platform/opencti-graphql/tests/01-unit/utils/logger-test.ts b/opencti-platform/opencti-graphql/tests/01-unit/utils/logger-test.ts index 582f613b3b8a..6d9bced0b179 100644 --- a/opencti-platform/opencti-graphql/tests/01-unit/utils/logger-test.ts +++ b/opencti-platform/opencti-graphql/tests/01-unit/utils/logger-test.ts @@ -32,7 +32,7 @@ const CLASSIC_OBJECT = { message: 'Bulk indexing fail', source: 'backend', timestamp: '2025-01-09T20:57:05.422Z', - version: '6.4.6' + // version: '6.4.6', we remove the octi version from the tests so it works after bumping during the automated release process }; const TOO_COMPLEX_OBJECT = { category: 'APP', @@ -189,6 +189,7 @@ const WITH_ERROR_OBJECT = { describe('Logger test suite', () => { it('Log object is correctly untouched', () => { const cleanObject = prepareLogMetadata(CLASSIC_OBJECT); + delete cleanObject.version; // do not compare octi version, for a stable test after bumping platform version expect(JSON.stringify(cleanObject)).toEqual(JSON.stringify(CLASSIC_OBJECT)); });