From 64249a66dae58e39e476fadfea1559e59cd50dc6 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Mon, 9 Sep 2024 19:54:29 +0530 Subject: [PATCH] fix: added more test, disable cdkv2 --- .../destinations/intercom_v2/db-config.json | 1 - .../validation/destinations/intercom_v2.json | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/configurations/destinations/intercom_v2/db-config.json b/src/configurations/destinations/intercom_v2/db-config.json index 7e7debd5e..d69510482 100644 --- a/src/configurations/destinations/intercom_v2/db-config.json +++ b/src/configurations/destinations/intercom_v2/db-config.json @@ -2,7 +2,6 @@ "name": "INTERCOM_V2", "displayName": "Intercom V2", "config": { - "cdkV2Enabled": true, "supportsVisualMapper": true, "transformAtV1": "router", "saveDestinationResponse": true, diff --git a/test/data/validation/destinations/intercom_v2.json b/test/data/validation/destinations/intercom_v2.json index 82ebed0f3..63ccebf15 100644 --- a/test/data/validation/destinations/intercom_v2.json +++ b/test/data/validation/destinations/intercom_v2.json @@ -1,4 +1,49 @@ [ + { + "config": { + "apiVersion": "v2", + "apiServer": "eu", + "connectionMode": { + "ios": "cloud" + }, + "oneTrustCookieCategories": [ + { + "oneTrustCookieCategory": "" + } + ] + }, + "result": true + }, + { + "config": { + "apiVersion": "dummyVersion", + "connectionMode": { + "ios": "cloud" + }, + "oneTrustCookieCategories": [ + { + "oneTrustCookieCategory": "" + } + ] + }, + "result": false, + "err": ["apiVersion must be equal to one of the allowed values"] + }, + { + "config": { + "apiServer": "dummyServer", + "connectionMode": { + "ios": "cloud" + }, + "oneTrustCookieCategories": [ + { + "oneTrustCookieCategory": "" + } + ] + }, + "result": false, + "err": ["apiServer must be equal to one of the allowed values"] + }, { "testTitle": "With valid multiple consent management providers config", "config": {