Skip to content

Commit

Permalink
fix: added more test, disable cdkv2
Browse files Browse the repository at this point in the history
  • Loading branch information
manish339k committed Sep 9, 2024
1 parent 4c2de79 commit 64249a6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/configurations/destinations/intercom_v2/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "INTERCOM_V2",
"displayName": "Intercom V2",
"config": {
"cdkV2Enabled": true,
"supportsVisualMapper": true,
"transformAtV1": "router",
"saveDestinationResponse": true,
Expand Down
45 changes: 45 additions & 0 deletions test/data/validation/destinations/intercom_v2.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 64249a6

Please sign in to comment.