From 350ab922fda4ca2849c5998756a189cf5fdb252a Mon Sep 17 00:00:00 2001 From: shrouti1507 Date: Wed, 1 Nov 2023 17:13:37 +0530 Subject: [PATCH] fix: adding new dest salesforce oauth --- src/constants/destinationCanonicalNames.js | 1 + src/features.json | 1 + .../salesforce/dataDelivery/data.ts | 19 ++++++------------- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/constants/destinationCanonicalNames.js b/src/constants/destinationCanonicalNames.js index 870c534db0..d1e199c9e2 100644 --- a/src/constants/destinationCanonicalNames.js +++ b/src/constants/destinationCanonicalNames.js @@ -1,5 +1,6 @@ const DestHandlerMap = { ga360: 'ga', + salesforce_oauth: 'salesforce', }; const DestCanonicalNames = { diff --git a/src/features.json b/src/features.json index 7de214ab39..d85328bce1 100644 --- a/src/features.json +++ b/src/features.json @@ -25,6 +25,7 @@ "PINTEREST_TAG": true, "PROFITWELL": true, "SALESFORCE": true, + "SALESFORCE_OAUTH": true, "SFMC": true, "SNAPCHAT_CONVERSION": true, "TIKTOK_ADS": true, diff --git a/test/integrations/destinations/salesforce/dataDelivery/data.ts b/test/integrations/destinations/salesforce/dataDelivery/data.ts index 504159cc6f..5016e8fa73 100644 --- a/test/integrations/destinations/salesforce/dataDelivery/data.ts +++ b/test/integrations/destinations/salesforce/dataDelivery/data.ts @@ -119,22 +119,15 @@ export const data = [ body: { output: { status: 500, + authErrorCategory: 'REFRESH_TOKEN', message: 'Salesforce Request Failed - due to "INVALID_SESSION_ID", (Retryable) during Salesforce Response Handling', - destinationResponse: { - response: [ - { - message: 'Session expired or invalid', - errorCode: 'INVALID_SESSION_ID', - }, - ], - status: 401, - rudderJobMetadata: { - destInfo: { - authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf', - }, + destinationResponse: [ + { + message: 'Session expired or invalid', + errorCode: 'INVALID_SESSION_ID', }, - }, + ], statTags: { destType: 'SALESFORCE', errorCategory: 'network',