diff --git a/jest.config.typescript.js b/jest.config.typescript.js index 66f4236e7e..fde50e3d5e 100644 --- a/jest.config.typescript.js +++ b/jest.config.typescript.js @@ -2,186 +2,186 @@ // https://jestjs.io/docs/en/configuration.html module.exports = { - // All imported modules in your tests should be mocked automatically - // automock: false, + // All imported modules in your tests should be mocked automatically + // automock: false, - // Stop running tests after `n` failures - bail: 1, + // Stop running tests after `n` failures + bail: 1, - // Respect "browser" field in package.json when resolving modules - // browser: false, + // Respect "browser" field in package.json when resolving modules + // browser: false, - // The directory where Jest should store its cached dependency information - // cacheDirectory: "/private/var/folders/bj/xt4sffgd21z57fxhvqrd30_80000gn/T/jest_dx", + // The directory where Jest should store its cached dependency information + // cacheDirectory: "/private/var/folders/bj/xt4sffgd21z57fxhvqrd30_80000gn/T/jest_dx", - // Automatically clear mock calls and instances between every test - // clearMocks: false, + // Automatically clear mock calls and instances between every test + // clearMocks: false, - // Indicates whether the coverage information should be collected while executing the test - collectCoverage: false, + // Indicates whether the coverage information should be collected while executing the test + collectCoverage: false, - // An array of glob patterns indicating a set of files for which coverage information should be collected - // collectCoverageFrom: null, + // An array of glob patterns indicating a set of files for which coverage information should be collected + // collectCoverageFrom: null, - // The directory where Jest should output its coverage files - coverageDirectory: 'reports/ts-coverage', + // The directory where Jest should output its coverage files + coverageDirectory: 'reports/ts-coverage', - // An array of regexp pattern strings used to skip coverage collection - coveragePathIgnorePatterns: ['/node_modules/', '__tests__'], + // An array of regexp pattern strings used to skip coverage collection + coveragePathIgnorePatterns: ['/node_modules/', '__tests__'], - // A list of reporter names that Jest uses when writing coverage reports - coverageReporters: ['json', 'text', 'lcov', 'clover'], + // A list of reporter names that Jest uses when writing coverage reports + coverageReporters: ['json', 'text', 'lcov', 'clover'], - // An object that configures minimum threshold enforcement for coverage results - coverageThreshold: { - global: { - branches: 30, - functions: 40, - lines: 50, - statements: 50, - }, + // An object that configures minimum threshold enforcement for coverage results + coverageThreshold: { + global: { + branches: 30, + functions: 40, + lines: 50, + statements: 50, }, + }, - // A path to a custom dependency extractor - // dependencyExtractor: null, + // A path to a custom dependency extractor + // dependencyExtractor: null, - // Make calling deprecated APIs throw helpful error messages - errorOnDeprecated: true, + // Make calling deprecated APIs throw helpful error messages + errorOnDeprecated: true, - // Force coverage collection from ignored files using an array of glob patterns - // forceCoverageMatch: [], + // Force coverage collection from ignored files using an array of glob patterns + // forceCoverageMatch: [], - // A path to a module which exports an async function that is triggered once before all test suites - // globalSetup: null, + // A path to a module which exports an async function that is triggered once before all test suites + // globalSetup: null, - // A path to a module which exports an async function that is triggered once after all test suites - // globalTeardown: null, + // A path to a module which exports an async function that is triggered once after all test suites + // globalTeardown: null, - // A set of global variables that need to be available in all test environments - // globals: { - // 'ts-jest': { - // tsConfigFile: 'tsconfig.json', - // diagnostics: true - // }, - // }, + // A set of global variables that need to be available in all test environments + // globals: { + // 'ts-jest': { + // tsConfigFile: 'tsconfig.json', + // diagnostics: true + // }, + // }, - // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - // maxWorkers: "50%", + // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. + // maxWorkers: "50%", - // An array of directory names to be searched recursively up from the requiring module's location - moduleDirectories: ['node_modules'], + // An array of directory names to be searched recursively up from the requiring module's location + moduleDirectories: ['node_modules'], - // An array of file extensions your modules use - moduleFileExtensions: ['js', 'json', 'ts', 'node'], + // An array of file extensions your modules use + moduleFileExtensions: ['js', 'json', 'ts', 'node'], - // A map from regular expressions to module names that allow to stub out resources with a single module - // moduleNameMapper: {}, + // A map from regular expressions to module names that allow to stub out resources with a single module + // moduleNameMapper: {}, - // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader - // modulePathIgnorePatterns: [], + // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader + modulePathIgnorePatterns: ['/test/__mocks__/axios.js'], - // Activates notifications for test results - notify: true, + // Activates notifications for test results + notify: true, - // An enum that specifies notification mode. Requires { notify: true } - notifyMode: 'failure-change', + // An enum that specifies notification mode. Requires { notify: true } + notifyMode: 'failure-change', - // A preset that is used as a base for Jest's configuration - preset: 'ts-jest', + // A preset that is used as a base for Jest's configuration + preset: 'ts-jest', - // Run tests from one or more projects - // projects: null, + // Run tests from one or more projects + // projects: null, - // Use this configuration option to add custom reporters to Jest - // reporters: undefined, + // Use this configuration option to add custom reporters to Jest + // reporters: undefined, - // Automatically reset mock state between every test - // resetMocks: false, + // Automatically reset mock state between every test + // resetMocks: false, - // Reset the module registry before running each individual test - // resetModules: false, + // Reset the module registry before running each individual test + // resetModules: false, - // A path to a custom resolver - // resolver: null, + // A path to a custom resolver + // resolver: null, - // Automatically restore mock state between every test - // restoreMocks: false, + // Automatically restore mock state between every test + // restoreMocks: false, - // The root directory that Jest should scan for tests and modules within - // rootDir: null, + // The root directory that Jest should scan for tests and modules within + // rootDir: null, - // A list of paths to directories that Jest should use to search for files in - // roots: [ - // "" - // ], + // A list of paths to directories that Jest should use to search for files in + // roots: [ + // "" + // ], - // Allows you to use a custom runner instead of Jest's default test runner - // runner: "jest-runner", + // Allows you to use a custom runner instead of Jest's default test runner + // runner: "jest-runner", - // The paths to modules that run some code to configure or set up the testing environment before each test - // setupFiles: [], + // The paths to modules that run some code to configure or set up the testing environment before each test + // setupFiles: [], - // A list of paths to modules that run some code to configure or set up the testing framework before each test - // setupFilesAfterEnv: [], + // A list of paths to modules that run some code to configure or set up the testing framework before each test + // setupFilesAfterEnv: [], - // A list of paths to snapshot serializer modules Jest should use for snapshot testing - // snapshotSerializers: [], + // A list of paths to snapshot serializer modules Jest should use for snapshot testing + // snapshotSerializers: [], - // The test environment that will be used for testing - testEnvironment: 'node', + // The test environment that will be used for testing + testEnvironment: 'node', - // Options that will be passed to the testEnvironment - // testEnvironmentOptions: {}, + // Options that will be passed to the testEnvironment + // testEnvironmentOptions: {}, - // Adds a location field to test results - // testLocationInResults: false, + // Adds a location field to test results + // testLocationInResults: false, - // The glob patterns Jest uses to detect test files - testMatch: ['**/*.(test).ts?(x)'], + // The glob patterns Jest uses to detect test files + testMatch: ['**/*.(test).ts?(x)'], - // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - testPathIgnorePatterns: ['/node_modules/'], + // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped + testPathIgnorePatterns: ['/node_modules/'], - // The regexp pattern or array of patterns that Jest uses to detect test files - // testRegex: [], + // The regexp pattern or array of patterns that Jest uses to detect test files + // testRegex: [], - // This option allows the use of a custom results processor - // testResultsProcessor: null, + // This option allows the use of a custom results processor + // testResultsProcessor: null, - // This option allows use of a custom test runner - // testRunner: "jasmine2", + // This option allows use of a custom test runner + // testRunner: "jasmine2", - // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href - // testURL: "http://localhost", + // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href + // testURL: "http://localhost", - // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" - // timers: "real", + // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" + // timers: "real", - // A map from regular expressions to paths to transformers - transform: { - '^.+\\.tsx?$': [ - 'ts-jest', - { - tsconfig: 'tsconfig.json', - diagnostics: true, - }, - ], - }, + // A map from regular expressions to paths to transformers + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + tsconfig: 'tsconfig.json', + diagnostics: true, + }, + ], + }, - // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation - // transformIgnorePatterns: [ - // "/node_modules/" - // ], + // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation + // transformIgnorePatterns: [ + // "/node_modules/" + // ], - // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them - // unmockedModulePathPatterns: undefined, + // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them + // unmockedModulePathPatterns: undefined, - // Indicates whether each individual test should be reported during the run - // verbose: null, + // Indicates whether each individual test should be reported during the run + // verbose: null, - // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode - // watchPathIgnorePatterns: [], + // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode + // watchPathIgnorePatterns: [], - // Whether to use watchman for file crawling - // watchman: true, + // Whether to use watchman for file crawling + // watchman: true, }; diff --git a/package-lock.json b/package-lock.json index 43d0c0c653..f0c6c90ebd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -80,6 +80,7 @@ "@types/node": "^20.2.5", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.59.2", + "axios-mock-adapter": "^1.22.0", "benchmark-suite": "^0.1.8", "commander": "^10.0.1", "commitizen": "^4.3.0", @@ -93,7 +94,6 @@ "eslint-plugin-json": "^3.1.0", "eslint-plugin-sonarjs": "^0.19.0", "eslint-plugin-unicorn": "^46.0.1", - "fast-json-stable-stringify": "^2.1.0", "glob": "^10.3.3", "http-terminator": "^3.2.0", "husky": "^8.0.3", @@ -5523,6 +5523,42 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/axios-mock-adapter": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/axios-mock-adapter/-/axios-mock-adapter-1.22.0.tgz", + "integrity": "sha512-dmI0KbkyAhntUR05YY96qg2H6gg0XMl2+qTW0xmYg6Up+BFBAJYRLROMXRdDEL06/Wqwa0TJThAYvFtSFdRCZw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "is-buffer": "^2.0.5" + }, + "peerDependencies": { + "axios": ">= 0.17.0" + } + }, + "node_modules/axios-mock-adapter/node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, "node_modules/babel-jest": { "version": "29.6.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.0.tgz", diff --git a/package.json b/package.json index 00f4ab9f41..54367babeb 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,7 @@ "@types/node": "^20.2.5", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.59.2", + "axios-mock-adapter": "^1.22.0", "benchmark-suite": "^0.1.8", "commander": "^10.0.1", "commitizen": "^4.3.0", @@ -135,7 +136,6 @@ "eslint-plugin-json": "^3.1.0", "eslint-plugin-sonarjs": "^0.19.0", "eslint-plugin-unicorn": "^46.0.1", - "fast-json-stable-stringify": "^2.1.0", "glob": "^10.3.3", "http-terminator": "^3.2.0", "husky": "^8.0.3", diff --git a/src/adapters/network.js b/src/adapters/network.js index ea9418aa07..5ee62029a3 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -10,7 +10,7 @@ const stats = require('../util/stats'); const { removeUndefinedValues } = require('../v0/util'); const { processAxiosResponse } = require('./utils/networkUtils'); // Only for tests -const { setResponsesForNwMockGeneration } = require('../../test/testHelper'); +const { setResponsesForMockAxiosAdapter } = require('../../test/testHelper'); const MAX_CONTENT_LENGTH = parseInt(process.env.MAX_CONTENT_LENGTH, 10) || 100000000; const MAX_BODY_LENGTH = parseInt(process.env.MAX_BODY_LENGTH, 10) || 100000000; @@ -86,6 +86,7 @@ const httpSend = async (options, statTags = {}) => { const requestOptions = enhanceRequestOptions(options); const startTime = new Date(); + const { url, data, method } = requestOptions; try { const response = await axios(requestOptions); clientResponse = { success: true, response }; @@ -94,7 +95,8 @@ const httpSend = async (options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('constructor', { requestOptions }, clientResponse); + + setResponsesForMockAxiosAdapter({ url, data, method, options }, clientResponse); return clientResponse; }; @@ -120,7 +122,7 @@ const httpGET = async (url, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('get', { url, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter({ url, options, method: 'GET' }, clientResponse); return clientResponse; }; @@ -146,7 +148,7 @@ const httpDELETE = async (url, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('delete', { url, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter({ url, options, method: 'DELETE' }, clientResponse); return clientResponse; }; @@ -173,7 +175,7 @@ const httpPOST = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('post', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter({ url, data, options, method: 'POST' }, clientResponse); return clientResponse; }; @@ -200,7 +202,7 @@ const httpPUT = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('put', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter({ url, data, options, method: 'PUT' }, clientResponse); return clientResponse; }; @@ -227,7 +229,7 @@ const httpPATCH = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('patch', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter({ url, data, options, method: 'PATCH' }, clientResponse); return clientResponse; }; diff --git a/src/v0/destinations/canny/util.js b/src/v0/destinations/canny/util.js index 9666f143df..002d9aa69f 100644 --- a/src/v0/destinations/canny/util.js +++ b/src/v0/destinations/canny/util.js @@ -25,7 +25,7 @@ const retrieveUserId = async (apiKey, message) => { message.traits?.email || message.context?.traits?.email || message.properties?.email; const { userId } = message; - const header = { + const headers = { 'Content-Type': 'application/x-www-form-urlencoded', Accept: JSON_MIME_TYPE, }; @@ -38,10 +38,15 @@ const retrieveUserId = async (apiKey, message) => { } else { requestBody.userID = `${userId}`; } - const response = await httpPOST(url, qs.stringify(requestBody), header, { - destType: 'canny', - feature: 'transformation', - }); + const response = await httpPOST( + url, + qs.stringify(requestBody), + { headers }, + { + destType: 'canny', + feature: 'transformation', + }, + ); logger.debug(response); // If the request fails, throwing error. if (response.success === false) { diff --git a/src/v0/destinations/yahoo_dsp/util.js b/src/v0/destinations/yahoo_dsp/util.js index f47717df51..a069660bde 100644 --- a/src/v0/destinations/yahoo_dsp/util.js +++ b/src/v0/destinations/yahoo_dsp/util.js @@ -1,7 +1,7 @@ const qs = require('qs'); const sha256 = require('sha256'); const { generateJWTToken } = require('../../../util/jwtTokenGenerator'); -const { httpPOST } = require('../../../adapters/network'); +const { httpSend } = require('../../../adapters/network'); const { isDefinedAndNotNullAndNotEmpty } = require('../../util'); const { getDynamicErrorType } = require('../../../adapters/utils/networkUtils'); const { ACCESS_TOKEN_CACHE_TTL, AUDIENCE_ATTRIBUTE, DSP_SUPPORTED_OPERATION } = require('./config'); @@ -119,7 +119,7 @@ const getAccessToken = async (destination) => { }; const request = { - header: { + headers: { 'Content-Type': 'application/x-www-form-urlencoded', Accept: JSON_MIME_TYPE, }, @@ -134,7 +134,7 @@ const getAccessToken = async (destination) => { }), method: 'POST', }; - const dspAuthorisationData = await httpPOST(request.url, request.data, request.header, { + const dspAuthorisationData = await httpSend(request, { destType: 'yahoo_dsp', feature: 'transformation', }); diff --git a/test/__mocks__/axios.js b/test/__mocks__/axios.js index dc3005d909..6a3139c4e9 100644 --- a/test/__mocks__/axios.js +++ b/test/__mocks__/axios.js @@ -40,7 +40,6 @@ const { sendgridGetRequestHandler } = require("./sendgrid.mock"); const { sendinblueGetRequestHandler } = require("./sendinblue.mock"); const { courierGetRequestHandler } = require("./courier.mock"); const { brazePostRequestHandler } = require("./braze.mock"); -const {optimizelyFullStackGetRequestHandler} = require("./optimizely_fullstack.mock"); const urlDirectoryMap = { "api.hubapi.com": "hs", @@ -55,7 +54,6 @@ const urlDirectoryMap = { "api.sendinblue.com": "sendinblue", "api.criteo.com": "criteo_audience", "api.courier.com": "courier", - "cdn.optimizely.com": "optimizely_fullstack", }; const fs = require("fs"); diff --git a/test/__mocks__/optimizely_fullstack.mock.js b/test/__mocks__/optimizely_fullstack.mock.js deleted file mode 100644 index f2eb3deb8c..0000000000 --- a/test/__mocks__/optimizely_fullstack.mock.js +++ /dev/null @@ -1,19 +0,0 @@ -const optimizelyFullStackGetRequestHandler = (url, mockData) => { - if (url === 'https://cdn.optimizely.com/datafiles/abc.json') { - return { data: mockData, status: 200 }; - } - - return Promise.reject({ - response: { - data: { - code: 'document_not_found', - message: 'document_not_found', - }, - status: 404, - }, - }); -}; - -module.exports = { - optimizelyFullStackGetRequestHandler, -}; diff --git a/test/__tests__/data/optimizely_fullstack.json b/test/__tests__/data/optimizely_fullstack.json deleted file mode 100644 index 1331d38033..0000000000 --- a/test/__tests__/data/optimizely_fullstack.json +++ /dev/null @@ -1,1641 +0,0 @@ -[ - { - "description": "Missing Data File URL", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Data File Url is not present. Aborting" - } - }, - { - "description": "Identify call: Missing Variation ID in integration object", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Variation ID is not present in the integrations object" - } - }, - { - "description": "Missing Account ID", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Account ID is not present. Aborting" - } - }, - { - "description": "Missing Campaign ID", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Campaign ID is not present. Aborting" - } - }, - { - "description": "Missing Experiment ID", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id" - } - } - }, - "output": { - "error": "Experiment ID is not present. Aborting" - } - }, - { - "description": "Page: Track Categorized Page and Track Named Pages toggle are disabled", - "input": { - "message": { - "type": "page", - "channel": "web", - "name": "Home", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "123" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id", - "trackCategorizedPages": false, - "trackNamedPages": false - } - } - }, - "output": { - "error": "Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely." - } - }, - { - "description": "Invalid Configuration (Track known users toggle is on and userId is missing in request)", - "input": { - "message": { - "type": "track", - "channel": "web", - "event": "Product Added", - "properties": { - "price": 999, - "quantity": 1 - }, - "context": { - "traits": { - "firstName": "John", - "age": 27 - } - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "optimizely_fullstack": { - "variationId": "123" - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id", - "trackCategorizedPages": false, - "trackNamedPages": false, - "trackKnownUsers": true - } - } - }, - "output": { - "error": "UserId is required for event tracking when the 'Track Known Users' setting is enabled. Please include a 'userId' in your event payload" - } - }, - { - "description": "Invalid Configuration (Track known users toggle is off and anonymousId is missing in request)", - "input": { - "message": { - "type": "track", - "channel": "web", - "event": "Product Added", - "properties": { - "price": 999, - "quantity": 1 - }, - "context": { - "traits": { - "firstName": "John", - "age": 27 - } - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "123" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "AnonymousId is required when 'Track Known Users' setting is disabled" - } - }, - { - "description": "Track call without event", - "input": { - "message": { - "type": "track", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Event is not present. Aborting." - } - }, - { - "description": "Invalid data file url", - "input": { - "message": { - "type": "track", - "event": "Product Added", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/wrong_cdn.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "error": "Data File Lookup Failed due to {\"code\":\"document_not_found\",\"message\":\"document_not_found\"}" - } - }, - { - "description": "Invalid data file url", - "input": { - "message": { - "type": "track", - "event": "Product Added", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "123" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id", - "eventMapping": [ - { - "from": "Product Added", - "to": "product_added" - } - ] - } - } - }, - "output": { - "error": "Event 'product_added' is not present in data file. Make sure event exists in Optimizely." - } - }, - { - "description": "Identify call (Decision Event) with userId", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe", - "country": "US" - }, - "sessionId": 1685626914716 - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "timestamp": "2023-02-10T12:16:07.251Z", - "userId": "userId123", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": false, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [ - { - "campaign_id": "test_campaign_id", - "experiment_id": "test_experiment_id", - "variation_id": "test_variation_id_1" - } - ], - "events": [ - { - "entity_id": "test_campaign_id", - "type": "campaign_activated", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call (Decision Event) with anonymousId", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe", - "country": "US" - }, - "sessionId": 1685626914716 - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "timestamp": "2023-02-10T12:16:07.251Z", - "userId": "userId123", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": false - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": false, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "97c46c81-3140-456d-b2a9-690d70aaca35", - "snapshots": [ - { - "decisions": [ - { - "campaign_id": "test_campaign_id", - "experiment_id": "test_experiment_id", - "variation_id": "test_variation_id_1" - } - ], - "events": [ - { - "entity_id": "test_campaign_id", - "type": "campaign_activated", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Identify call (Decision Event) with projectId is empty", - "input": { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe", - "country": "US" - }, - "sessionId": 1685626914716 - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "timestamp": "2023-02-10T12:16:07.251Z", - "userId": "userId123", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "projectId": "", - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": false, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [ - { - "campaign_id": "test_campaign_id", - "experiment_id": "test_experiment_id", - "variation_id": "test_variation_id_1" - } - ], - "events": [ - { - "entity_id": "test_campaign_id", - "type": "campaign_activated", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call (Conversion event) with userId", - "input": { - "message": { - "type": "track", - "event": "product_added", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "revenue": 123, - "quantity": 2 - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_2" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "eventMapping": [ - { - "from": "Product Searched", - "to": "Searched" - }, - { - "from": "product_added", - "to": "Product Added" - } - ], - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "quantity": 2, - "revenue": 12300, - "tags": { - "foo": "bar" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call (Conversion event) without event mapping configured in webapp", - "input": { - "message": { - "type": "track", - "event": "Product Added", - "channel": "web", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "timestamp": "2023-02-10T12:16:07.251Z", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "123" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": false, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "97c46c81-3140-456d-b2a9-690d70aaca35", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": {} - } - ] - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track call: Missing Variation ID in integration object ", - "input": { - "message": { - "type": "track", - "event": "product_added", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "revenue": 123, - "quantity": 2 - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "eventMapping": [ - { - "from": "Product Searched", - "to": "Searched" - }, - { - "from": "product_added", - "to": "Product Added" - } - ], - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "quantity": 2, - "revenue": 12300, - "tags": { - "foo": "bar" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Categorized and Named Page", - "input": { - "message": { - "type": "page", - "name": "Meal", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "category": "food" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar", - "category": "food" - } - }, - { - "entity_id": "test_event_id_4", - "key": "Viewed Meal page", - "timestamp": 1676031367251, - "uuid": "generated_uuid", - "tags": { - "foo": "bar", - "category": "food" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Categorized and Named Page without event mapping configured in webapp", - "input": { - "message": { - "type": "page", - "name": "home", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "category": "index" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "", - "to": "" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_8", - "key": "Index", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar", - "category": "index" - } - }, - { - "entity_id": "test_event_id_7", - "key": "Home", - "timestamp": 1676031367251, - "uuid": "generated_uuid", - "tags": { - "foo": "bar", - "category": "index" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Categorized Page: trackCategorizedPages,trackNamedPages toggle are enabled and name is not provided", - "input": { - "message": { - "type": "page", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "category": "food" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar", - "category": "food" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Named Page: trackCategorizedPages,trackNamedPages toggle are enabled and category is not provided", - "input": { - "message": { - "type": "page", - "userId": "userId123", - "name": "Meal", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_4", - "key": "Viewed Meal page", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Named Page: trackCategorizedPages,trackNamedPages toggle are enabled and category mapping is wrong", - "input": { - "message": { - "type": "page", - "userId": "userId123", - "name": "Meal", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "ABC" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_4", - "key": "Viewed Meal page", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track Named Page: mapping is not provided for page name in webapp", - "input": { - "message": { - "type": "page", - "userId": "userId123", - "name": "Meal", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": false, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "Home", - "to": "Viewed Home Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - } - }, - "output": { - "error": "Events [meal] are not present in the data file. Make sure events exist in Optimizely." - } - }, - { - "description": "Track Categorized and Named Screen", - "input": { - "message": { - "type": "screen", - "name": "Home", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "category": "food" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": true, - "pageMapping": [ - { - "from": "home", - "to": "Viewed Main Screen" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar", - "category": "food" - } - }, - { - "entity_id": "test_event_id_6", - "key": "Viewed Main screen", - "timestamp": 1676031367251, - "uuid": "generated_uuid", - "tags": { - "foo": "bar", - "category": "food" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/optimizely_fullstack_router.json b/test/__tests__/data/optimizely_fullstack_router.json deleted file mode 100644 index 6be928afc9..0000000000 --- a/test/__tests__/data/optimizely_fullstack_router.json +++ /dev/null @@ -1,494 +0,0 @@ -[ - { - "input": [ - { - "message": { - "type": "identify", - "channel": "web", - "properties": {}, - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe", - "country": "US" - }, - "sessionId": 1685626914716 - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "timestamp": "2023-02-10T12:16:07.251Z", - "userId": "userId123", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - }, - "metadata": { - "jobId": 1 - } - }, - { - "message": { - "type": "track", - "event": "product_added", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "revenue": 123, - "quantity": 2 - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_2" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "eventMapping": [ - { - "from": "Product Searched", - "to": "Searched" - }, - { - "from": "product_added", - "to": "Product Added" - } - ], - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - }, - "metadata": { - "jobId": 2 - } - }, - { - "message": { - "type": "page", - "userId": "userId123", - "channel": "web", - "context": { - "traits": { - "organization": "RudderStack", - "fullName": "John Doe" - }, - "sessionId": 1685626914716 - }, - "rudderId": "5354b3f2-cb72-4355-a2b5-a298c3837c7d", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "timestamp": "2023-02-10T12:16:07.251Z", - "properties": { - "foo": "bar", - "category": "food" - }, - "anonymousId": "856365b8-da4b-4c13-9098-84df18559446", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "test_variation_id_1" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": false, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - }, - "metadata": { - "jobId": 3 - } - }, - { - "message": { - "type": "page", - "channel": "web", - "name": "Home", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "integrations": { - "All": true, - "optimizely_fullstack": { - "variationId": "123" - } - } - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "experimentId": "test_experiment_id", - "trackCategorizedPages": false, - "trackNamedPages": false - } - }, - "metadata": { - "jobId": 4 - } - } - ], - "output": [ - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": false, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [ - { - "campaign_id": "test_campaign_id", - "experiment_id": "test_experiment_id", - "variation_id": "test_variation_id_1" - } - ], - "events": [ - { - "entity_id": "test_campaign_id", - "type": "campaign_activated", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff" - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "attributes": [ - { - "entity_id": "test_attribute_id_5", - "key": "company", - "type": "custom", - "value": "RudderStack" - }, - { - "entity_id": "test_attribute_id_2", - "key": "name", - "type": "custom", - "value": "John Doe" - } - ], - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "quantity": 2, - "revenue": 12300, - "tags": { - "foo": "bar" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "eventMapping": [ - { - "from": "Product Searched", - "to": "Searched" - }, - { - "from": "product_added", - "to": "Product Added" - } - ], - "attributeMapping": [ - { - "from": "organization", - "to": "company" - }, - { - "from": "fullName", - "to": "name" - } - ] - } - }, - "metadata": [ - { - "jobId": 2 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://logx.optimizely.com/v1/events", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "account_id": "test_account_id", - "anonymize_ip": true, - "enrich_decisions": true, - "client_name": "RudderStack", - "client_version": "1.0.0", - "visitors": [ - { - "visitor_id": "userId123", - "snapshots": [ - { - "decisions": [], - "events": [ - { - "entity_id": "test_event_id_1", - "key": "Product Added", - "timestamp": 1676031367251, - "uuid": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "tags": { - "foo": "bar", - "category": "food" - } - } - ] - } - ], - "session_id": "1685626914716" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "accountId": "test_account_id", - "campaignId": "test_campaign_id", - "experimentId": "test_experiment_id", - "trackKnownUsers": true, - "anonymizeIp": true, - "trackCategorizedPages": true, - "trackNamedPages": false, - "pageMapping": [ - { - "from": "meal", - "to": "Viewed Meal Page" - }, - { - "from": "food", - "to": "Product Added" - } - ] - } - }, - "metadata": [ - { - "jobId": 3 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "destination": { - "Config": { - "accountId": "test_account_id", - "campaignId": "test_campagin_id", - "dataFileUrl": "https://cdn.optimizely.com/datafiles/abc.json", - "experimentId": "test_experiment_id", - "trackCategorizedPages": false, - "trackNamedPages": false - } - }, - "error": "Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely.", - "metadata": [ - { - "jobId": 4 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - }, - "statusCode": 400 - } - ] - } -] diff --git a/test/__tests__/optimizely_fullstack-cdk.test.ts b/test/__tests__/optimizely_fullstack-cdk.test.ts deleted file mode 100644 index b51cd18b11..0000000000 --- a/test/__tests__/optimizely_fullstack-cdk.test.ts +++ /dev/null @@ -1,60 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { processCdkV2Workflow } from '../../src/cdk/v2/handler'; -import tags from '../../src/v0/util/tags'; - -const integration = 'optimizely_fullstack'; -const destName = 'Optimizely Fullstack'; - -jest.mock('../../src/v0/util/index', () => { - const originalModule = jest.requireActual('../../src/v0/util/index'); - return { - ...originalModule, - generateUUID: jest.fn(() => 'generated_uuid'), - }; -}); - -// Processor Test files -const testDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}.json`), { - encoding: 'utf8', -}); -const testData = JSON.parse(testDataFile); - -// Router Test files -const routerTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router.json`), - { encoding: 'utf8' }, -); -const routerTestData = JSON.parse(routerTestDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - testData.forEach((dataPoint, index) => { - it(`${destName} - payload: ${index}`, async () => { - try { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.PROCESSOR, - ); - expect(output).toEqual(dataPoint.output); - } catch (error: any) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe('Router Tests', () => { - routerTestData.forEach((dataPoint) => { - it('Optimizely fullstack router test case', async () => { - const output = await processCdkV2Workflow( - integration, - dataPoint.input, - tags.FEATURES.ROUTER, - ); - expect(output).toEqual(dataPoint.output); - }); - }); - }); -}); diff --git a/test/__tests__/proxy.test.ts b/test/__tests__/proxy.test.ts index 9f13c198fc..c526edd05d 100644 --- a/test/__tests__/proxy.test.ts +++ b/test/__tests__/proxy.test.ts @@ -1,12 +1,13 @@ const name = 'Proxy'; -import fs from 'fs'; -import path from 'path'; +import fs, { appendFileSync } from 'fs'; +import path, { join } from 'path'; import request from 'supertest'; import { createHttpTerminator } from 'http-terminator'; import { mockedAxiosClient } from '../__mocks__/network'; import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; import { applicationRoutes } from '../../src/routes'; +import { responses } from '../testHelper'; let server: any; const OLD_ENV = process.env; @@ -48,7 +49,7 @@ const destinations = [ 'marketo_static_list', 'criteo_audience', 'tiktok_ads', - 'intercom' + 'intercom', ]; // start of generic tests @@ -89,6 +90,20 @@ destinations.forEach((destination) => { expect(response.body).toEqual(expectedData[index]); }); }); + afterAll(() => { + if (process.env.GEN_AXIOS_FOR_TESTS === 'true') { + const callsDataStr = responses.join('\n'); + const calls = ` + export const networkCallsData = [ + ${callsDataStr} + ] + `; + appendFileSync( + join(__dirname, '..', 'integrations', 'destinations', destination, 'network.ts'), + calls, + ); + } + }); }); }); // destination tests end diff --git a/test/deleteUsers/README.md b/test/deleteUsers/README.md deleted file mode 100644 index c3170f3a8c..0000000000 --- a/test/deleteUsers/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# DeleteUsers Tests - -All the tests data for deleteUsers are to be present in **tests**/data/deleteUsers/${destination}/ - -### Files and their significance - -- **`handler_input.json`** - Input data for `handleDeletionOfUsers` function in `versionedRouter.js`(alias for `_deleteUsers_proxy_input.json`) -- **`handler_output.json`** - Output of `handleDeletionOfUsers` function in `versionedRouter.js`(alias for `_deleteUsers_proxy_output.json`) -- **`nw_client_data.json`** - the mock http responses(An example can be seen in the case of `ga`) - -### Fields in new files - -#### nw_client_data.json - -- Type: Array> -- The array of object is how many responses have to be sent back -- Each of the object contains below mentioned fields - - type: - - Indicates what type of http client invocation it is - - Recommended to be sent - - Supported values: - - post - - get - - delete - - constructor - - if nothing is mentioned, `post` is considered by default - - reqParams: - - Type: Array - - Optional - - Indicates the expected arguments that are to be sent to the http client instance - - We would `recommend` to also add this as part of your `nw_client_data.json` - - response: - - Type: object - - Required - - The response that needs to be returned from the http client diff --git a/test/deleteUsers/data/af/handler_input.json b/test/deleteUsers/data/af/handler_input.json deleted file mode 100644 index 7685ec7a73..0000000000 --- a/test/deleteUsers/data/af/handler_input.json +++ /dev/null @@ -1,177 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "userId": "test_user_id", - "android_advertising_id": "1665148898336-5539842602053895577" - } - ], - "config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "appleAppId": "123456789", - "androidAppId": "AnAID", - "apiToken": "dummyApiToken" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "userId": "test_user_id", - "ios_advertising_id": "1665148898336-5539842602053895577" - } - ], - "config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "appleAppId": "123456789", - "androidAppId": "AnAID", - "apiToken": "dummyApiToken", - "statusCallbackUrls": "https://examplecontroller.com/opengdpr_callbacks" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "userId": "test_user_id", - "appsflyer_id": "jklhajksfh" - }, - { - "userId": "user_sdk2", - "appsflyer_id": "jklhajksfh" - } - ], - "config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "apiToken": "dummyApiToken" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "userId": "test_user_id", - "appsflyer_id": "jklhajksfh" - }, - { - "userId": "user_sdk2", - "appsflyer_id": "jklhajksfh" - } - ], - "config": { - "devKey": "ef1d42390426e3f7c90ac78272e74344", - "appleAppId": "123456789", - "statusCallbackUrls": "https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks", - "apiToken": "dummyApiToken" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "email": "testUser@testMail.com", - "android_advertising_id": "1234" - }, - { - "userId": "user_sdk2", - "android_advertising_id": "1234" - } - ], - "config": { - "devKey": "abcde", - "appleAppId": "asdfasdf", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false, - "apiToken": "dummyApiToken" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "email": "testUser@testMail.com", - "ios_advertising_id": "1234" - }, - { - "userId": "user_sdk2", - "ios_advertising_id": "1234" - } - ], - "config": { - "devKey": "abcde", - "androidAppId": "com.rudder.rs", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false, - "apiToken": "dummyApiToken" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "AF", - "userAttributes": [ - { - "email": "testUser@testMail.com", - "userId": "user1234" - }, - { - "userId": "user_sdk2", - "ios_advertising_id": "1234" - } - ], - "config": { - "devKey": "abcde", - "androidAppId": "com.rudder.rs", - "groupTypeTrait": "email", - "groupValueTrait": "age", - "trackProductsOnce": false, - "trackRevenuePerProduct": false, - "apiToken": "dummyApiToken" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/af/handler_output.json b/test/deleteUsers/data/af/handler_output.json deleted file mode 100644 index 33363c69d3..0000000000 --- a/test/deleteUsers/data/af/handler_output.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "API Token and one of Apple ID or Android App Id are required fields for user deletion" - } - ], - [ - { - "statusCode": 400, - "error": "You can send utmost 3 callBackUrls" - } - ], - [ - { - "statusCode": 400, - "error": "androidAppId is required for android_advertising_id type identifier" - } - ], - [ - { - "statusCode": 400, - "error": "appleAppId is required for ios_advertising_id type identifier" - } - ], - [ - { - "statusCode": 400, - "error": "none of the possible identityTypes i.e.(ios_advertising_id, android_advertising_id, appsflyer_id) is provided for deletion" - } - ] -] diff --git a/test/deleteUsers/data/af/nw_client_data.json b/test/deleteUsers/data/af/nw_client_data.json deleted file mode 100644 index b7ecfc1596..0000000000 --- a/test/deleteUsers/data/af/nw_client_data.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://hq1.appsflyer.com/gdpr/opengdpr_requests?api_token=dummyApiToken", - { - "subject_request_type": "erasure", - "subject_identities": { - "identity_format": "raw", - "identity_type": "android_advertising_id", - "identity_value": "1665148898336-5539842602053895577" - }, - "property_id": "AnAID", - "subject_request_id": "f31a16f4-2357-47b5-aba0-d83742f2fd66", - "submitted_time": "2022-12-26T12:51:27.570Z" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "error": { - "code": 400, - "af_gdpr_code": "e411", - "message": "AppID given in 'property_id' is incorrect or does not belong to your account" - } - }, - "status": 400 - } - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://hq1.appsflyer.com/gdpr/opengdpr_requests?api_token=dummyApiToken", - { - "subject_request_type": "erasure", - "subject_identities": { - "identity_format": "raw", - "identity_type": "ios_advertising_id", - "identity_value": "1665148898336-5539842602053895577" - }, - "property_id": "123456789", - "subject_request_id": "f31a16f4-2357-47b5-aba0-d83742f2fd66", - "submitted_time": "2022-12-26T12:51:27.570Z" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - } - ] -] diff --git a/test/deleteUsers/data/am/handler_input.json b/test/deleteUsers/data/am/handler_input.json deleted file mode 100644 index 66b97d4a4d..0000000000 --- a/test/deleteUsers/data/am/handler_input.json +++ /dev/null @@ -1,380 +0,0 @@ -[ - { - "request": { - "body": [ - { - "jobId": "423451324652346", - "destType": "AM", - "userAttributes": [ - { - "userIderror": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - } - ], - "config": { - "apiKey": "1234", - "apiSecret": "abcd" - } - } - ] - } - } -] - - diff --git a/test/deleteUsers/data/am/handler_output.json b/test/deleteUsers/data/am/handler_output.json deleted file mode 100644 index c453a831d9..0000000000 --- a/test/deleteUsers/data/am/handler_output.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "Config for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "api key/secret for deletion not present" - } - ] -] diff --git a/test/deleteUsers/data/am/nw_client_data.json b/test/deleteUsers/data/am/nw_client_data.json deleted file mode 100644 index 3abf39691a..0000000000 --- a/test/deleteUsers/data/am/nw_client_data.json +++ /dev/null @@ -1,91 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://amplitude.com/api/2/deletions/users", - { - "userIds": ["Batch1"] - }, - { - "Content-Type": "application/json", - "Authorization": "Basic MTIzNDphYmNk" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 403, - "message": "HTTP 403: Forbidden (Invalid API Key)", - "status": "Forbidden" - }, - "status": 400 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://amplitude.com/api/2/deletions/users", - { - "userIds": ["Batch2"] - }, - { - "Content-Type": "application/json", - "Authorization": "Basic MTIzNDphYmNk" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "Nothing scheduled due to invalid amplitude/user ids for app XXXXX" - } - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://amplitude.com/api/2/deletions/users", - { - "userIds": ["Batch1"] - }, - { - "Content-Type": "application/json", - "Authorization": "Basic MTIzNDphYmNk" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "Mocking" - } - } - }, - { - "type": "post", - "reqParams": [ - "https://amplitude.com/api/2/deletions/users", - { - "userIds": ["Batch2"] - }, - { - "Content-Type": "application/json", - "Authorization": "Basic MTIzNDphYmNk" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "Mocking" - } - } - } - ] -] diff --git a/test/deleteUsers/data/braze/handler_input.json b/test/deleteUsers/data/braze/handler_input.json deleted file mode 100644 index 6a8ad60f4d..0000000000 --- a/test/deleteUsers/data/braze/handler_input.json +++ /dev/null @@ -1,393 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "BRAZE", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - } - ], - "config": { - "dataCenter": "US-03", - "restApiKey": "1234" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "BRAZE", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - } - ], - "config": { - "dataCenter": "US-03", - "restApiKey": "1234" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "BRAZE", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - } - ] - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "BRAZE", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "dataCenter": "US-03" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "BRAZE", - "userAttributes": [ - { - "name": "a" - } - ], - "config": { - "restApiKey": "b1bd90e2-d203-480a-962c-f7bb03ea0afe", - "dataCenter": "US-03" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/braze/handler_output.json b/test/deleteUsers/data/braze/handler_output.json deleted file mode 100644 index 7df562646a..0000000000 --- a/test/deleteUsers/data/braze/handler_output.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "Config for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "data center / api key for deletion not present" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/braze/nw_client_data.json b/test/deleteUsers/data/braze/nw_client_data.json deleted file mode 100644 index 34b2d488da..0000000000 --- a/test/deleteUsers/data/braze/nw_client_data.json +++ /dev/null @@ -1,97 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://rest.iad-03.braze.com/users/delete", - { - "externalIds": ["Batch1"] - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer ${restApiKey}" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "Fail Case" - }, - "status": 400 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://rest.iad-03.braze.com/users/delete", - { - "externalIds": ["Batch2"] - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer ${restApiKey}" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://rest.iad-03.braze.com/users/delete", - { - "externalIds": ["Batch4"] - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer ${restApiKey}" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": { - "deleted": 50, - "message": "success" - } - } - } - }, - { - "type": "post", - "reqParams": [ - "https://rest.iad-03.braze.com/users/delete", - { - "externalIds": ["Batch"] - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer ${restApiKey}" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": { - "deleted": 50, - "message": "success" - } - } - } - } - ] -] diff --git a/test/deleteUsers/data/clevertap/handler_input.json b/test/deleteUsers/data/clevertap/handler_input.json deleted file mode 100644 index 61c9446cf7..0000000000 --- a/test/deleteUsers/data/clevertap/handler_input.json +++ /dev/null @@ -1,441 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "CLEVERTAP", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "accountId": "476550467", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "CLEVERTAP", - "userAttributes": [ - { - "email": "testUser@testMail.com" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "CLEVERTAP", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - }, - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "accountId": "testFail", - "passcode": "tofail", - "trackAnonymous": true, - "enableObjectIdMapping": false - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/clevertap/handler_output.json b/test/deleteUsers/data/clevertap/handler_output.json deleted file mode 100644 index cff9494cef..0000000000 --- a/test/deleteUsers/data/clevertap/handler_output.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "Project ID and Passcode is required for delete user" - } - ], - [ - { - "statusCode": 400, - "error": "Project ID and Passcode is required for delete user" - } - ], - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ] -] diff --git a/test/deleteUsers/data/clevertap/nw_client_data.json b/test/deleteUsers/data/clevertap/nw_client_data.json deleted file mode 100644 index 75a4f4550f..0000000000 --- a/test/deleteUsers/data/clevertap/nw_client_data.json +++ /dev/null @@ -1,177 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://api.clevertap.com/1/delete/profiles.json", - { - "identity": [ - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2" - ] - }, - { - "X-CleverTap-Account-Id": "testFail", - "X-CleverTap-Passcode": "tofail" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "Fail Case" - }, - "status": 400 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://api.clevertap.com/1/delete/profiles.json", - { - "identity": [ - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2", - "test_user_id", - "user_sdk2" - ] - }, - { - "X-CleverTap-Account-Id": "testFail", - "X-CleverTap-Passcode": "tofail" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "rpoxy" - } - } - } - ] -] diff --git a/test/deleteUsers/data/engage/handler_input.json b/test/deleteUsers/data/engage/handler_input.json deleted file mode 100644 index c999787e60..0000000000 --- a/test/deleteUsers/data/engage/handler_input.json +++ /dev/null @@ -1,133 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "userId": "1" - }, - { - "userId": "2" - }, - { - "userId": "3" - } - ], - "config": { - "publicKey": "abcd", - "privateKey": "efgh" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "userId": "4" - }, - { - "userId": "5" - }, - { - "userId": "6" - } - ], - "config": { - "publicKey": "abcd", - "privateKey": "efgh" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "userId": "7" - }, - { - "userId": "8" - }, - { - "userId": "9" - } - ], - "config": { - "publicKey": "abcd", - "privateKey": "efgh" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "userId": "1" - } - ], - "config": { - "publicKey": "abcd", - "privateKey": "efgh" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "userId": "userid1" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "privateKey": "abcd" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ENGAGE", - "userAttributes": [ - { - "email": "testUser@testMail.com" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "publicKey": "abcd", - "privateKey": "efgh" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/engage/handler_output.json b/test/deleteUsers/data/engage/handler_output.json deleted file mode 100644 index 1c3f854391..0000000000 --- a/test/deleteUsers/data/engage/handler_output.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - - [ - { - "statusCode": 400, - "error": "Public key is a required field for user deletion" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/engage/nw_client_data.json b/test/deleteUsers/data/engage/nw_client_data.json deleted file mode 100644 index 833b440766..0000000000 --- a/test/deleteUsers/data/engage/nw_client_data.json +++ /dev/null @@ -1,197 +0,0 @@ -[ - [ - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/1", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "Fail first" - }, - "status": 400 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/2", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/3", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/4", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/5", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/6", - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "fail 6 " - }, - "status": 400 - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/7", - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/8", - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "fail mid case 8" - }, - "status": 400 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/9", - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/1", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.engage.so/v1/users/user_sdk2", - {}, - { - "Content-Type": "application/json", - "Authorization": "Basic YWJjZDplZmdo" - } - ], - "response": { - "status": 200, - "statusText": "success" - } - } - ] -] diff --git a/test/deleteUsers/data/ga/handler_input.json b/test/deleteUsers/data/ga/handler_input.json deleted file mode 100644 index 7470e3cc29..0000000000 --- a/test/deleteUsers/data/ga/handler_input.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "getValue": { - "x-rudder-dest-info": "{\"secret\": { \"access_token\": \"valid_token\" }}" - }, - "request": { - "body": [ - { - "destType": "GA", - "userAttributes": [ - { - "userId": "test_user_1" - }, - { - "userId": "test_user_2" - } - ], - "config": { - "trackingID": "UA-123456789-5", - "useNativeSDK": false - } - } - ] - } - }, - { - "getValue": { - "x-rudder-dest-info": "{\"secret\": { \"access_token\": \"expired_token\" }}" - }, - "request": { - "body": [ - { - "destType": "GA", - "userAttributes": [ - { - "userId": "test_user_3" - }, - { - "userId": "test_user_4" - } - ], - "config": { - "trackingID": "UA-123456789-6", - "useNativeSDK": false - } - } - ] - } - }, - { - "getValue": { - "x-rudder-dest-info": "{\"secret\": { \"access_token\": \"valid_token_1\" }}" - }, - "request": { - "body": [ - { - "destType": "GA", - "userAttributes": [ - { - "userId": "test_user_5" - }, - { - "userId": "test_user_6" - }, - { - "userId": "test_user_7" - }, - { - "userId": "test_user_8" - }, - { - "userId": "test_user_9" - } - ], - "config": { - "trackingID": "UA-123456789-7", - "useNativeSDK": false - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/ga/handler_output.json b/test/deleteUsers/data/ga/handler_output.json deleted file mode 100644 index db31670781..0000000000 --- a/test/deleteUsers/data/ga/handler_output.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 500, - "authErrorCategory": "REFRESH_TOKEN", - "error": "invalid credentials" - } - ], - [ - { - "statusCode": 403, - "error": "Error occurred while completing deletion request: [dummy response] The parameter used to query is not correct" - } - ] -] diff --git a/test/deleteUsers/data/ga/nw_client_data.json b/test/deleteUsers/data/ga/nw_client_data.json deleted file mode 100644 index 7cbeaf726c..0000000000 --- a/test/deleteUsers/data/ga/nw_client_data.json +++ /dev/null @@ -1,316 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_1" - }, - "webPropertyId": "UA-123456789-5" - }, - { - "headers": { - "Authorization": "Bearer valid_token", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_1" - }, - "webPropertyId": "UA-123456789-5", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_1" - }, - "webPropertyId": "UA-123456789-5" - }, - { - "headers": { - "Authorization": "Bearer valid_token", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_2" - }, - "webPropertyId": "UA-123456789-5", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_3" - }, - "webPropertyId": "UA-123456789-6" - }, - { - "headers": { - "Authorization": "Bearer expired_token", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - }, - "status": 200, - "statusText": "OK" - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_4" - }, - "webPropertyId": "UA-123456789-6" - }, - { - "headers": { - "Authorization": "Bearer expired_token", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "error": { - "code": 401, - "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", - "status": "UNAUTHENTICATED" - } - }, - "status": 200, - "statusText": "OK" - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_5" - }, - "webPropertyId": "UA-123456789-7" - }, - { - "headers": { - "Authorization": "Bearer valid_token_1", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_5" - }, - "webPropertyId": "UA-123456789-7", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_6" - }, - "webPropertyId": "UA-123456789-7" - }, - { - "headers": { - "Authorization": "Bearer valid_token_1", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_6" - }, - "webPropertyId": "UA-123456789-7", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_7" - }, - "webPropertyId": "UA-123456789-7" - }, - { - "headers": { - "Authorization": "Bearer valid_token_1", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "response": { - "data": { - "error": { - "errors": [ - { - "domain": "global", - "reason": "invalidParameter", - "message": "[dummy response] The parameter used to query is not correct" - } - ], - "code": 403, - "message": "[dummy response] The parameter used to query is not correct" - } - }, - "status": 403, - "statusText": "Bad Request" - } - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_8" - }, - "webPropertyId": "UA-123456789-7" - }, - { - "headers": { - "Authorization": "Bearer valid_token_1", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_8" - }, - "webPropertyId": "UA-123456789-7", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - }, - { - "type": "post", - "reqParams": [ - "https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert", - { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_9" - }, - "webPropertyId": "UA-123456789-7" - }, - { - "headers": { - "Authorization": "Bearer valid_token_1", - "Accept": "application/json", - "Content-Type": "application/json" - } - } - ], - "response": { - "data": { - "kind": "analytics#userDeletionRequest", - "id": { - "type": "USER_ID", - "userId": "test_user_9" - }, - "webPropertyId": "UA-123456789-7", - "deletionRequestTime": "2022-11-04T10:39:57.933Z" - }, - "status": 200, - "statusText": "OK" - } - } - ] -] diff --git a/test/deleteUsers/data/intercom/handler_input.json b/test/deleteUsers/data/intercom/handler_input.json deleted file mode 100644 index d843db83bc..0000000000 --- a/test/deleteUsers/data/intercom/handler_input.json +++ /dev/null @@ -1,90 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "INTERCOM", - "userAttributes": [ - { - "userId": "1" - }, - { - "userId": "12" - } - ], - "config": { - "apiKey": "API_KEY" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "INTERCOM", - "userAttributes": [ - { - "userId": "7" - }, - { - "userId": "9" - } - ], - "config": { - "apiKey": "API_KEY" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "INTERCOM", - "userAttributes": [ - { - "userId": "6188c2c5f47e464b4abf3235" - }, - { - "userId": "user_sdk2" - } - ] - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "INTERCOM", - "userAttributes": [ - { - "userId": "6188c2c5f47e464b4abf3235" - }, - { - "userId": "user_sdk2" - } - ], - "config": {} - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "INTERCOM", - "userAttributes": [{}], - "config": { - "apiKey": "a=" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/intercom/handler_output.json b/test/deleteUsers/data/intercom/handler_output.json deleted file mode 100644 index 156c6ec114..0000000000 --- a/test/deleteUsers/data/intercom/handler_output.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "Config for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "api key for deletion not present" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/intercom/nw_client_data.json b/test/deleteUsers/data/intercom/nw_client_data.json deleted file mode 100644 index 462a68cbfd..0000000000 --- a/test/deleteUsers/data/intercom/nw_client_data.json +++ /dev/null @@ -1,96 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://api.intercom.io/users/1", - { - "intercom_user_id": 1 - }, - { - "Accept": "application/json", - "Authorization": "Bearer API_KEY" - } - ], - "response": { - "code": 401, - "statusText": "Unauthorized", - "response": { - "data": { - "type": "error.list", - "request_id": "0022e6v5qc7m04jeu5pg", - "errors": [ - { - "code": "unauthorized", - "message": "Access Token Invalid" - } - ] - }, - "status": 400 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://api.intercom.io/user_delete_requests", - { - "intercom_user_id": 12 - }, - { - "Accept": "application/json", - "Authorization": "Bearer API_KEY" - } - ], - "response": { - "status": 200, - "statusText": "ok", - "data": { - "id": 12 - } - } - } - ], - [ - { - "type": "post", - "reqParams": [ - "https://api.intercom.io/user_delete_requests", - { - "intercom_user_id": 7 - }, - { - "Accept": "application/json", - "Authorization": "Bearer API_KEY" - } - ], - "response": { - "status": 200, - "statusText": "ok", - "data": { - "id": 7 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://api.intercom.io/user_delete_requests", - { - "intercom_user_id": 9 - }, - { - "Accept": "application/json", - "Authorization": "Bearer API_KEY" - } - ], - "response": { - "status": 200, - "statusText": "ok", - "data": { - "id": 9 - } - } - } - ] -] diff --git a/test/deleteUsers/data/mp/handler_input.json b/test/deleteUsers/data/mp/handler_input.json deleted file mode 100644 index 17bf5818c2..0000000000 --- a/test/deleteUsers/data/mp/handler_input.json +++ /dev/null @@ -1,3155 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - } - ], - "config": { - "token": "testToken", - "prefixProperties": true, - "useNativeSDK": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "rudder1" - }, - { - "userId": "rudder1" - } - ], - "config": { - "token": "testToken", - "prefixProperties": true, - "useNativeSDK": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "test_user_id" - }, - { - "userId": "user_sdk2" - } - ], - "config": { - "apiKey": "dummyApiKey", - "prefixProperties": true, - "useNativeSDK": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "name": "test1" - } - ], - "config": { - "token": "testToken", - "prefixProperties": true, - "useNativeSDK": false - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "rudder1" - }, - { - "userId": "rudder2" - }, - { - "userId": "rudder3" - } - ], - "config": { - "token": "test_token", - "prefixProperties": true, - "useNativeSDK": false, - "userDeletionApi": "task", - "gdprApiToken": "test_gdpr_token" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "rudder1" - } - ], - "config": { - "token": "test_token", - "prefixProperties": true, - "useNativeSDK": false, - "userDeletionApi": "task", - "dataResidency": "eu" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "MP", - "userAttributes": [ - { - "userId": "rudder1" - } - ], - "config": { - "token": "test_token", - "prefixProperties": true, - "useNativeSDK": false, - "dataResidency": "eu" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/mp/handler_output.json b/test/deleteUsers/data/mp/handler_output.json deleted file mode 100644 index ddf8387375..0000000000 --- a/test/deleteUsers/data/mp/handler_output.json +++ /dev/null @@ -1,44 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed for `delete profile` api" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "API Token is a required field for user deletion" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "GDPR API Token is a required field for creating deletion task in mixpanel" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/mp/nw_client_data.json b/test/deleteUsers/data/mp/nw_client_data.json deleted file mode 100644 index 7a045d9065..0000000000 --- a/test/deleteUsers/data/mp/nw_client_data.json +++ /dev/null @@ -1,6159 +0,0 @@ -[ - [ - { - "type": "post", - "reqParams": [ - "https://api.mixpanel.com/engage", - [ - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - } - ], - { - "Content-Type": "application/json", - "Accept": "text/plain" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "Fail Case" - }, - "status": 400 - } - } - }, - { - "type": "post", - "reqParams": [ - "https://api.mixpanel.com/engage", - [ - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - } - ], - { - "Content-Type": "application/json", - "Accept": "text/plain" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - } - ], - { - "type": "post", - "reqParams": [ - "https://api.mixpanel.com/engage", - [ - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - }, - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - } - ], - { - "Content-Type": "application/json", - "Accept": "text/plain" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - }, - [ - { - "type": "post", - "reqParams": [ - "https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token", - { - "distinct_ids": ["rudder1", "rudder3"], - "compliance_type": "CCPA" - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer test_gdpr_token" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - }, - { - "type": "post", - "reqParams": [ - "https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token", - { - "distinct_ids": ["rudder2"], - "compliance_type": "GDPR" - }, - { - "Content-Type": "application/json", - "Authorization": "Bearer test_gdpr_token" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - } - ], - { - "type": "post", - "reqParams": [ - "https://api-eu.mixpanel.com/engage", - [ - { - "$distinct_id": "rudder1", - "$token": "dummyAccessToken", - "$delete": null, - "$ignore_alias": true - } - ], - { - "Content-Type": "application/json", - "Accept": "text/plain" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": "1" - } - } - } -] diff --git a/test/deleteUsers/data/sendgrid/handler_input.json b/test/deleteUsers/data/sendgrid/handler_input.json deleted file mode 100644 index 253657dbde..0000000000 --- a/test/deleteUsers/data/sendgrid/handler_input.json +++ /dev/null @@ -1,921 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "SENDGRID", - "userAttributes": [ - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - } - ], - "config": { - "apiKey": "1234" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "SENDGRID", - "userAttributes": [ - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - }, - { - "userId": "test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id" - }, - { - "userId": "user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2" - } - ], - "config": { - "apiKey": "1234" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "SENDGRID", - "userAttributes": [ - { - "userId": "eab57ccf-6322-498e-9338-7761c6dc0656" - }, - { - "userId": "47983ca9-7cc6-4942-8ff0-ac443g95658d" - } - ], - "config": {} - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "SENDGRID", - "userAttributes": { - "userId": "eab57ccf-6322-498e-9338-7761c6dc0656" - }, - "config": { - "apiKey": "1234" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/sendgrid/handler_output.json b/test/deleteUsers/data/sendgrid/handler_output.json deleted file mode 100644 index 201821f50a..0000000000 --- a/test/deleteUsers/data/sendgrid/handler_output.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "User deletion request failed" - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ], - [ - { - "statusCode": 400, - "error": "apiKey is required for deleting user" - } - ], - [ - { - "statusCode": 400, - "error": "userAttributes is not an array" - } - ] -] diff --git a/test/deleteUsers/data/sendgrid/nw_client_data.json b/test/deleteUsers/data/sendgrid/nw_client_data.json deleted file mode 100644 index e6bc96bb7f..0000000000 --- a/test/deleteUsers/data/sendgrid/nw_client_data.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - [ - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch1]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - "message": { - "job_id": "bb33b1f9-e7d6-4a6c-bf1c-a2143275e257" - } - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch2]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "code": 400, - "statusText": "fail", - "response": { - "data": { - "code": 400, - "message": "Bad Req", - "status": "Fail Case" - }, - "status": 400 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch3]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": { - "job_id": "bb33b1f9-e7d6-4a6c-bf1c-a2143275e257" - } - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch1]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - "message": { - "job_id": "bb33b1f9-e7d6-4a6c-bf1c-a2143275e257" - } - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch2]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": { - "job_id": "bb33b1f9-e7d6-4a6c-bf1c-a2143275e257" - } - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.sendgrid.com/v3/marketing/contacts?ids=[batch3]", - { - "Authorization": "Bearer 1234" - } - ], - "response": { - "status": 200, - "statusText": "OK", - "data": { - " message": { - "job_id": "bb33b1f9-e7d6-4a6c-bf1c-a2143275e257" - } - } - } - } - ] -] diff --git a/test/deleteUsers/deleteUsers.test.ts b/test/deleteUsers/deleteUsers.test.ts deleted file mode 100644 index 18cebc7085..0000000000 --- a/test/deleteUsers/deleteUsers.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -const name = 'DeleteUsers'; -import logger from '../../src/logger'; -import { formAxiosMock, validateMockAxiosClientReqParams } from '../__mocks__/gen-axios.mock'; -const deleteUserDestinations = [ - 'am', - 'braze', - 'intercom', - 'mp', - 'af', - 'clevertap', - 'engage', - 'ga', - 'sendgrid', -]; -// Note: Useful for troubleshooting not to be used in production -const exclusionDestList: string[] = []; -import RegulationController from '../../src/controllers/regulation'; - -// delete user tests -deleteUserDestinations - .filter((d) => !exclusionDestList.includes(d)) - .forEach((destination) => { - const inputData = require(`./data/${destination}/handler_input.json`); - const expectedData = require(`./data/${destination}/handler_output.json`); - - let axiosResponses; - describe(`${name} Tests: ${destination}`, () => { - jest.unmock('axios'); - beforeAll(() => { - try { - axiosResponses = require(`./data/${destination}/nw_client_data.json`); - } catch (error) { - // Do nothing - logger.error(`Error while reading /${destination}/nw_client_data.json: ${error}`); - } - if (Array.isArray(axiosResponses)) { - formAxiosMock(axiosResponses); - } else { - // backward compatibility - jest.mock('axios'); - } - }); - - inputData.forEach((input, index) => { - it(`Payload - ${index}`, async () => { - try { - input.get = jest.fn((destInfoKey) => { - return input.getValue && input.getValue[destInfoKey]; - }); - - const output = await RegulationController.deleteUsers(input); - // validate the axios arguments - if (Array.isArray(axiosResponses) && Array.isArray(axiosResponses[index])) { - axiosResponses[index].forEach((axsRsp) => { - validateMockAxiosClientReqParams({ - resp: axsRsp, - }); - }); - } - expect(output.body).toEqual(expectedData[index]); - } catch (error: any) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - }); diff --git a/test/integrations/component.test.ts b/test/integrations/component.test.ts index 9118e638e0..5e011e4115 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -4,22 +4,25 @@ import request from 'supertest'; // Mocking of axios calls import axios from 'axios'; // new-library we are using -import stringify from 'fast-json-stable-stringify'; import bodyParser from 'koa-bodyparser'; import { Command } from 'commander'; import { createHttpTerminator } from 'http-terminator'; import { MockHttpCallsData, TestCaseData } from './testTypes'; import { applicationRoutes } from '../../src/routes/index'; +import MockAxiosAdapter from 'axios-mock-adapter'; import { getTestDataFilePaths, getTestData, getMockHttpCallsData, getAllTestMockDataFilePaths, + addMock, } from './testUtils'; -import tags from '../../src/v0/util/tags'; +import tags, { FEATURES } from '../../src/v0/util/tags'; import { Server } from 'http'; import { appendFileSync } from 'fs'; import { responses } from '../testHelper'; +import utils from '../../src/v0/util'; +import isMatch from 'lodash/isMatch'; // To run single destination test cases // npm run test:ts -- component --destination=adobe_analytics @@ -67,80 +70,26 @@ afterAll(async () => { `; appendFileSync(join(__dirname, 'destinations', opts.destination, 'network.ts'), calls); } - jest.clearAllMocks(); await createHttpTerminator({ server }).terminate(); }); - +let mock; if (!opts.generate || opts.generate === 'false') { // unmock already existing axios-mocking - jest.unmock('axios'); - - jest.mock('axios'); - const formAxiosReqsMap = (calls: MockHttpCallsData[]) => { - try { - return calls.reduce((agg, curr) => { - let obj = curr.httpReq; - return { ...agg, [stringify(obj)]: curr.httpRes }; - }, {}); - } catch (error) { - return {}; - } - }; - - const mockImpl = (type, axReqMap) => { - // return value fn - const retVal = (key) => { - if (axReqMap[key]) { - return axReqMap[key]; - } - return { - status: 500, - body: 'Something bad', - }; - }; - - if (['constructor'].includes(type)) { - return (opts) => { - // mock result from some cache - const key = stringify({ ...opts }); - return retVal(key); - }; - } else if (['delete', 'get'].includes(type)) { - return (url, opts) => { - // mock result from some cache - const key = stringify({ url, ...opts }); - return retVal(key); - }; - } - - // post, patch, put - return (url, data, opts) => { - // mock result from some cache - const key = stringify({ url, data, ...opts }); - return retVal(key); - }; + mock = new MockAxiosAdapter(axios, { onNoMatch: 'passthrough' }); + const registerAxiosMocks = (axiosMocks: MockHttpCallsData[]) => { + axiosMocks.forEach((axiosMock) => addMock(mock, axiosMock)); }; - const makeNetworkMocks = (axiosReqsMap: Record) => { - axios.put = jest.fn(mockImpl('put', axiosReqsMap)); - axios.post = jest.fn(mockImpl('post', axiosReqsMap)); - axios.patch = jest.fn(mockImpl('patch', axiosReqsMap)); - // @ts-ignore - axios.delete = jest.fn(mockImpl('delete', axiosReqsMap)); - // @ts-ignore - axios.get = jest.fn(mockImpl('get', axiosReqsMap)); - // @ts-ignore - axios.mockImplementation(mockImpl('constructor', axiosReqsMap)); - }; - - // all the axios requests will be stored in this map + // // all the axios requests will be stored in this map const allTestMockDataFilePaths = getAllTestMockDataFilePaths(__dirname, opts.destination); - const allAxiosReqsMap = allTestMockDataFilePaths.reduce((agg, currPath) => { - const mockNetworkCallsData: MockHttpCallsData[] = getMockHttpCallsData(currPath); - const reqMap = formAxiosReqsMap(mockNetworkCallsData); - return { ...agg, ...reqMap }; - }, {}); - makeNetworkMocks(allAxiosReqsMap); + const allAxiosRequests = allTestMockDataFilePaths + .filter((d) => !d.includes('/af/')) + .map((currPath) => { + const mockNetworkCallsData: MockHttpCallsData[] = getMockHttpCallsData(currPath); + return mockNetworkCallsData; + }) + .flat(); + registerAxiosMocks(allAxiosRequests); } // END @@ -197,7 +146,7 @@ const destinationTestHandler = async (tcData: TestCaseData) => { route = `/${join(tcData.version || DEFAULT_VERSION, 'destinations', tcData.name, 'proxy')}`; break; case tags.FEATURES.USER_DELETION: - route = 'deleteUsers'; + route = '/deleteUsers'; break; case tags.FEATURES.PROCESSOR: // Processor transformation @@ -224,13 +173,14 @@ const sourceTestHandler = async (tcData) => { // Trigger the test suites describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { + beforeEach(() => { + jest.clearAllMocks(); + }); // add special mocks for specific destinations - if (testDataPath.includes('yahoo_dsp')) { - // 21 September 2023 19:39:50 GMT+05:30 - Date.now = jest.fn(() => 1695305390000); - } const testData: TestCaseData[] = getTestData(testDataPath); test.each(testData)('$name - $module - $feature -> $description', async (tcData) => { + tcData?.mockFns?.(mock); + switch (tcData.module) { case tags.MODULES.DESTINATION: await destinationTestHandler(tcData); diff --git a/test/integrations/destinations/active_campaign/network.ts b/test/integrations/destinations/active_campaign/network.ts index 85563e06fc..34834096b1 100644 --- a/test/integrations/destinations/active_campaign/network.ts +++ b/test/integrations/destinations/active_campaign/network.ts @@ -9,52 +9,14 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -119,52 +81,14 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -234,52 +158,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -353,52 +239,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -472,52 +320,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -535,52 +345,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 1 } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -598,52 +370,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 2 } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -661,155 +395,38 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { - headers: { 'Api-Token': 'dummyApiToken' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiToken' }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -947,52 +564,14 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -1058,155 +637,38 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -1344,52 +806,14 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -1454,52 +878,14 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -1569,52 +955,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -1688,52 +1036,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -1807,52 +1117,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -1870,52 +1142,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 6 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -1933,52 +1167,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 7 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -1996,155 +1192,38 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -2274,52 +1353,15 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + + 'Content-Type': 'application/json', + }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { @@ -2332,103 +1374,24 @@ export const networkCallsData = [ { httpReq: { data: { eventTrackingEvent: { name: 'ScreenViewed' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { eventTrackingEvent: { name: 'ScreenViewed' } }, status: 201 }, }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { 'Api-Token': 'dummyApiKey', Accept: 'application/json, text/plain, */*' }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { @@ -2441,104 +1404,28 @@ export const networkCallsData = [ { httpReq: { data: { eventTrackingEvent: { name: 'Tracking Action' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { eventTrackingEvent: { name: 'Tracking Action' } }, status: 201 }, }, { httpReq: { data: { contact: { email: 'jamesDoe@gmail.com', phone: '92374162212' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -2603,52 +1490,14 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -2718,52 +1567,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -2837,52 +1648,14 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -2956,52 +1729,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3019,52 +1754,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 11 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3082,52 +1779,14 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 12 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3145,155 +1804,38 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, + + method: 'POST', + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, + + method: 'GET', + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/af/deleteUsers/data.ts b/test/integrations/destinations/af/deleteUsers/data.ts new file mode 100644 index 0000000000..c552b79f67 --- /dev/null +++ b/test/integrations/destinations/af/deleteUsers/data.ts @@ -0,0 +1,302 @@ +import { cloneDeep } from 'lodash'; +import { FEATURES } from '../../../../../src/v0/util/tags'; +import { networkCallsData } from '../network'; +import { addMock } from '../../../testUtils'; +import MockAdapter from 'axios-mock-adapter'; +import utils from '../../../../../src/v0/util'; + +const defaultMockFns = () => { + jest.spyOn(Date.prototype, 'toISOString').mockReturnValue('2023-09-24T11:22:24.018Z'); + jest.spyOn(utils, 'generateUUID').mockReturnValue('97fcd7b2-cc24-47d7-b776-057b7b199513'); +}; + +const requests = [ + { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + userId: 'test_user_id', + appsflyer_id: 'jklhajksfh', + }, + { + userId: 'user_sdk2', + appsflyer_id: 'jklhajksfh', + }, + ], + config: { + devKey: 'ef1d42390426e3f7c90ac78272e74344', + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, + { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + userId: 'test_user_id', + appsflyer_id: 'jklhajksfh', + }, + { + userId: 'user_sdk2', + appsflyer_id: 'jklhajksfh', + }, + ], + config: { + devKey: 'ef1d42390426e3f7c90ac78272e74344', + appleAppId: '123456789', + statusCallbackUrls: + 'https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks,https://examplecontroller.com/opengdpr_callbacks', + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, + { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + email: 'testUser@testMail.com', + android_advertising_id: '1234', + }, + { + userId: 'user_sdk2', + android_advertising_id: '1234', + }, + ], + config: { + devKey: 'abcde', + appleAppId: 'asdfasdf', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: false, + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, + { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + email: 'testUser@testMail.com', + ios_advertising_id: '1234', + }, + { + userId: 'user_sdk2', + ios_advertising_id: '1234', + }, + ], + config: { + devKey: 'abcde', + androidAppId: 'com.rudder.rs', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: false, + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, + { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + email: 'testUser@testMail.com', + userId: 'user1234', + }, + { + userId: 'user_sdk2', + ios_advertising_id: '1234', + }, + ], + config: { + devKey: 'abcde', + androidAppId: 'com.rudder.rs', + groupTypeTrait: 'email', + groupValueTrait: 'age', + trackProductsOnce: false, + trackRevenuePerProduct: false, + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, +]; +const resultBodies = [ + [ + { + statusCode: 400, + error: + 'API Token and one of Apple ID or Android App Id are required fields for user deletion', + }, + ], + [ + { + statusCode: 400, + error: 'You can send utmost 3 callBackUrls', + }, + ], + [ + { + statusCode: 400, + error: 'androidAppId is required for android_advertising_id type identifier', + }, + ], + [ + { + statusCode: 400, + error: 'appleAppId is required for ios_advertising_id type identifier', + }, + ], + [ + { + statusCode: 400, + error: + 'none of the possible identityTypes i.e.(ios_advertising_id, android_advertising_id, appsflyer_id) is provided for deletion', + }, + ], +]; +const parentCaseVars = { + name: 'af', + description: 'Test ', + feature: FEATURES.USER_DELETION, + module: 'destination', + version: 'v0', + input: {}, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, +}; +const nonNetworkCases = requests.map((req, index) => { + const testCase = cloneDeep(parentCaseVars); + testCase.description = `Test ${2 + index}`; + testCase.input = req; + testCase.output.response.status = resultBodies[index][0].statusCode; + //@ts-ignore + testCase.output.response.body = resultBodies[index]; + return testCase; +}); + +export const data = [ + { + name: 'af', + description: 'Test 0', + feature: FEATURES.USER_DELETION, + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + userId: 'test_user_id', + android_advertising_id: '1665148898336-5539842602053895577', + }, + ], + config: { + devKey: 'ef1d42390426e3f7c90ac78272e74344', + appleAppId: '123456789', + androidAppId: 'AnAID', + apiToken: 'dummyApiToken', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + mockFns: (mockAdapter: MockAdapter) => { + const nwData = networkCallsData[0]; + addMock(mockAdapter, nwData); + defaultMockFns(); + }, + }, + { + name: 'af', + description: 'Test 1', + feature: FEATURES.USER_DELETION, + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'AF', + userAttributes: [ + { + userId: 'test_user_id', + ios_advertising_id: '1665148898336-5539842602053895577', + }, + ], + config: { + devKey: 'ef1d42390426e3f7c90ac78272e74344', + appleAppId: '123456789', + androidAppId: 'AnAID', + apiToken: 'dummyApiToken', + statusCallbackUrls: 'https://examplecontroller.com/opengdpr_callbacks', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + mockFns: (mockAdapter: MockAdapter) => { + const nwData = networkCallsData[1]; + addMock(mockAdapter, nwData); + defaultMockFns(); + }, + }, + ...nonNetworkCases, +]; diff --git a/test/integrations/destinations/af/network.ts b/test/integrations/destinations/af/network.ts new file mode 100644 index 0000000000..2e9557539e --- /dev/null +++ b/test/integrations/destinations/af/network.ts @@ -0,0 +1,67 @@ +import { JSON_MIME_TYPE } from '../../../../src/v0/util/constant'; + +export const networkCallsData = [ + { + httpReq: { + method: 'post', + url: 'https://hq1.appsflyer.com/api/gdpr/v1/opendsr_request', + headers: { + 'Content-Type': JSON_MIME_TYPE, + + Authorization: 'Bearer dummyApiToken', + }, + data: { + subject_request_type: 'erasure', + subject_identities: [ + { + identity_format: 'raw', + identity_type: 'android_advertising_id', + identity_value: '1665148898336-5539842602053895577', + }, + ], + property_id: 'AnAID', + subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', + submitted_time: '2023-09-24T11:22:24.018Z', + }, + }, + httpRes: { + data: { + error: { + code: 400, + af_gdpr_code: 'e411', + message: "AppID given in 'property_id' is incorrect or does not belong to your account", + }, + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://hq1.appsflyer.com/api/gdpr/v1/opendsr_request', + data: { + subject_request_type: 'erasure', + subject_identities: [ + { + identity_format: 'raw', + identity_type: 'ios_advertising_id', + identity_value: '1665148898336-5539842602053895577', + }, + ], + status_callback_urls: ['https://examplecontroller.com/opengdpr_callbacks'], + property_id: '123456789', + subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', + submitted_time: '2023-09-24T11:22:24.018Z', + }, + headers: { + 'Content-Type': JSON_MIME_TYPE, + + Authorization: 'Bearer dummyApiToken', + }, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, +]; diff --git a/test/integrations/destinations/am/deleteUsers/data.ts b/test/integrations/destinations/am/deleteUsers/data.ts new file mode 100644 index 0000000000..bd10a4d7e0 --- /dev/null +++ b/test/integrations/destinations/am/deleteUsers/data.ts @@ -0,0 +1,396 @@ +export const data = [ + { + name: 'am', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + jobId: '423451324652346', + destType: 'AM', + userAttributes: [ + { + userIderror: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + ], + config: { + apiKey: '1234', + apiSecret: 'abcd', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/am/network.ts b/test/integrations/destinations/am/network.ts new file mode 100644 index 0000000000..81daa29621 --- /dev/null +++ b/test/integrations/destinations/am/network.ts @@ -0,0 +1,209 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://amplitude.com/api/2/deletions/users', + data: { + user_ids: [ + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + ], + requester: 'RudderStack', + ignore_invalid_id: 'true', + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + }, + httpRes: { + data: { + code: 403, + message: 'HTTP 403: Forbidden (Invalid API Key)', + status: 'Forbidden', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://amplitude.com/api/2/deletions/users', + data: { + user_ids: [ + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + ], + requester: 'RudderStack', + ignore_invalid_id: 'true', + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'Nothing scheduled due to invalid amplitude/user ids for app XXXXX', + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://amplitude.com/api/2/deletions/users', + data: { + userIds: ['Batch1'], + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'Mocking', + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://amplitude.com/api/2/deletions/users', + data: { + userIds: ['Batch2'], + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'Mocking', + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/braze/deleteUsers/data.ts b/test/integrations/destinations/braze/deleteUsers/data.ts new file mode 100644 index 0000000000..cad61fd12d --- /dev/null +++ b/test/integrations/destinations/braze/deleteUsers/data.ts @@ -0,0 +1,483 @@ +export const data = [ + { + name: 'braze', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'BRAZE', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + ], + config: { + dataCenter: 'US-03', + restApiKey: '1234', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'BRAZE', + userAttributes: [ + { + userId: 'test_user_id10', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id18', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id51', + }, + ], + config: { + dataCenter: 'US-03', + restApiKey: '1234', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'BRAZE', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + ], + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Config for deletion not present', + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 3', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'BRAZE', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + dataCenter: 'US-03', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'data center / api key for deletion not present', + }, + ], + }, + }, + }, + { + name: 'braze', + description: 'Test 4', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'BRAZE', + userAttributes: [ + { + name: 'a', + }, + ], + config: { + restApiKey: 'b1bd90e2-d203-480a-962c-f7bb03ea0afe', + dataCenter: 'US-03', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/braze/network.ts b/test/integrations/destinations/braze/network.ts new file mode 100644 index 0000000000..4dfd5fa2a5 --- /dev/null +++ b/test/integrations/destinations/braze/network.ts @@ -0,0 +1,191 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://rest.iad-03.braze.com/users/delete', + data: { + external_ids: [ + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + ], + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://rest.iad-03.braze.com/users/delete', + data: { + external_ids: [ + 'test_user_id10', + 'user_sdk2', + 'test_user_id18', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + ], + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + deleted: 50, + message: 'success', + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://rest.iad-03.braze.com/users/delete', + data: { external_ids: ['test_user_id51'] }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + deleted: '1', + message: 'success', + }, + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://rest.iad-03.braze.com/users/delete', + data: { + externalIds: ['test_user_id'], + }, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + deleted: 1, + message: 'success', + }, + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/canny/network.ts b/test/integrations/destinations/canny/network.ts index b1ac61389d..db1b639632 100644 --- a/test/integrations/destinations/canny/network.ts +++ b/test/integrations/destinations/canny/network.ts @@ -1,25 +1,81 @@ -import QueryString from 'qs'; -import { enhanceRequestOptions } from '../../../../src/adapters/network'; - export const networkCallsData = [ { - httpReq: enhanceRequestOptions({ + httpReq: { + headers: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + }, + data: 'apiKey=apikey123&email=test%40rudderstack.com', + method: 'POST', + url: 'https://canny.io/api/v1/users/retrieve', + }, + httpRes: { + data: { + data: { + avatarURL: 'https://canny.io/images/cddfd145056cd4bc04132ee0e7de04ee.png', + created: '2022-07-15T11:16:32.648Z', + email: 'test@rudderstack.com', + id: '52d14c90fff7c80abcd12345', + isAdmin: true, + lastActivity: '2022-07-18T14:24:43.632Z', + name: 'Rudder Test', + url: 'https://ruderstack.canny.io/admin/users/dummyUser', + userID: null, + }, + }, + status: 200, + }, + }, + { + httpReq: { + headers: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + }, + data: 'apiKey=apikey123&email=test%40rudderstack.com', + method: 'POST', url: 'https://canny.io/api/v1/users/retrieve', - 'Content-Type': 'application/x-www-form-urlencoded', - Accept: 'application/json', - data: QueryString.stringify({ apiKey: 'apikey123', email: 'test@rudderstack.com' }), - }), + }, + httpRes: { + data: { + data: { + avatarURL: 'https://canny.io/images/cddfd145056cd4bc04132ee0e7de04ee.png', + created: '2022-07-15T11:16:32.648Z', + email: 'test@rudderstack.com', + id: '52d14c90fff7c80abcd12345', + isAdmin: true, + lastActivity: '2022-07-18T14:24:43.632Z', + name: 'Rudder Test', + url: 'https://ruderstack.canny.io/admin/users/dummyUser', + userID: null, + }, + }, + status: 200, + }, + }, + { + httpReq: { + headers: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + }, + data: 'apiKey=apikey123&email=test%40rudderstack.com', + method: 'POST', + url: 'https://canny.io/api/v1/users/retrieve', + }, httpRes: { data: { - avatarURL: 'https://canny.io/images/cddfd145056cd4bc04132ee0e7de04ee.png', - created: '2022-07-15T11:16:32.648Z', - email: 'test@rudderstack.com', - id: '52d14c90fff7c80abcd12345', - isAdmin: true, - lastActivity: '2022-07-18T14:24:43.632Z', - name: 'Rudder Test', - url: 'https://ruderstack.canny.io/admin/users/dummyUser', - userID: null, + data: { + avatarURL: 'https://canny.io/images/cddfd145056cd4bc04132ee0e7de04ee.png', + created: '2022-07-15T11:16:32.648Z', + email: 'test@rudderstack.com', + id: '52d14c90fff7c80abcd12345', + isAdmin: true, + lastActivity: '2022-07-18T14:24:43.632Z', + name: 'Rudder Test', + url: 'https://ruderstack.canny.io/admin/users/dummyUser', + userID: null, + }, }, status: 200, }, diff --git a/test/integrations/destinations/clevertap/deleteUsers/data.ts b/test/integrations/destinations/clevertap/deleteUsers/data.ts new file mode 100644 index 0000000000..c0eb447a53 --- /dev/null +++ b/test/integrations/destinations/clevertap/deleteUsers/data.ts @@ -0,0 +1,495 @@ +export const data = [ + { + name: 'clevertap', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'CLEVERTAP', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + accountId: '476550467', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Project ID and Passcode is required for delete user', + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'CLEVERTAP', + userAttributes: [ + { + email: 'testUser@testMail.com', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + passcode: 'fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Project ID and Passcode is required for delete user', + }, + ], + }, + }, + }, + { + name: 'clevertap', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'CLEVERTAP', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + accountId: 'testFail', + passcode: 'tofail', + trackAnonymous: true, + enableObjectIdMapping: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/clevertap/network.ts b/test/integrations/destinations/clevertap/network.ts new file mode 100644 index 0000000000..458d6faba0 --- /dev/null +++ b/test/integrations/destinations/clevertap/network.ts @@ -0,0 +1,175 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://api.clevertap.com/1/delete/profiles.json', + data: { + identity: [ + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + ], + }, + headers: { + 'Content-Type': 'application/json', + 'X-CleverTap-Account-Id': 'testFail', + 'X-CleverTap-Passcode': 'tofail', + }, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.clevertap.com/1/delete/profiles.json', + data: { + identity: [ + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + 'test_user_id', + 'user_sdk2', + ], + }, + headers: { + 'Content-Type': 'application/json', + 'X-CleverTap-Account-Id': 'testFail', + 'X-CleverTap-Passcode': 'tofail', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'rpoxy', + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/engage/deleteUsers/data.ts b/test/integrations/destinations/engage/deleteUsers/data.ts new file mode 100644 index 0000000000..5a6ea9d268 --- /dev/null +++ b/test/integrations/destinations/engage/deleteUsers/data.ts @@ -0,0 +1,241 @@ +export const data = [ + { + name: 'engage', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + userId: '1', + }, + { + userId: '2', + }, + { + userId: '3', + }, + ], + config: { + publicKey: 'abcd', + privateKey: 'efgh', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'engage', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + userId: '4', + }, + { + userId: '5', + }, + { + userId: '6', + }, + ], + config: { + publicKey: 'abcd', + privateKey: 'efgh', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'engage', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + userId: '7', + }, + { + userId: '8', + }, + { + userId: '9', + }, + ], + config: { + publicKey: 'abcd', + privateKey: 'efgh', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'engage', + description: 'Test 3', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + userId: '12', + }, + ], + config: { + publicKey: 'abcd', + privateKey: 'efgh', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'engage', + description: 'Test 4', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + userId: 'userid1', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + privateKey: 'abcd', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Public key is a required field for user deletion', + }, + ], + }, + }, + }, + { + name: 'engage', + description: 'Test 5', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'ENGAGE', + userAttributes: [ + { + email: 'testUser@testMail.com', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + publicKey: 'abcd', + privateKey: 'efgh', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/engage/network.ts b/test/integrations/destinations/engage/network.ts new file mode 100644 index 0000000000..a675603d4e --- /dev/null +++ b/test/integrations/destinations/engage/network.ts @@ -0,0 +1,141 @@ +const deleteNwData = [ + { + httpReq: { + method: 'delete', + url: 'https://api.engage.so/v1/users/1', + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail first', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.engage.so/v1/users/2', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.engage.so/v1/users/3', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/4', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/5', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/6', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'fail 6 ', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/7', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/8', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'fail mid case 8', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/9', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/12', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + + url: 'https://api.engage.so/v1/users/user_sdk2', + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/ga/deleteUsers/data.ts b/test/integrations/destinations/ga/deleteUsers/data.ts new file mode 100644 index 0000000000..d11881e8fe --- /dev/null +++ b/test/integrations/destinations/ga/deleteUsers/data.ts @@ -0,0 +1,139 @@ +export const data = [ + { + name: 'ga', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + headers: { + 'x-rudder-dest-info': '{"secret": { "access_token": "valid_token" }}', + }, + body: [ + { + destType: 'GA', + userAttributes: [ + { + userId: 'test_user_1', + }, + { + userId: 'test_user_2', + }, + ], + config: { + trackingID: 'UA-123456789-5', + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'ga', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + headers: { + 'x-rudder-dest-info': '{"secret": { "access_token": "expired_token" }}', + }, + body: [ + { + destType: 'GA', + userAttributes: [ + { + userId: 'test_user_3', + }, + { + userId: 'test_user_4', + }, + ], + config: { + trackingID: 'UA-123456789-6', + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 500, + body: [ + { + statusCode: 500, + authErrorCategory: 'REFRESH_TOKEN', + error: 'invalid credentials', + }, + ], + }, + }, + }, + { + name: 'ga', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + headers: { + 'x-rudder-dest-info': '{"secret": { "access_token": "valid_token_1" }}', + }, + body: [ + { + destType: 'GA', + userAttributes: [ + { + userId: 'test_user_5', + }, + { + userId: 'test_user_6', + }, + { + userId: 'test_user_7', + }, + { + userId: 'test_user_8', + }, + { + userId: 'test_user_9', + }, + ], + config: { + trackingID: 'UA-123456789-7', + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 403, + body: [ + { + statusCode: 403, + error: + 'Error occurred while completing deletion request: [dummy response] The parameter used to query is not correct', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/ga/network.ts b/test/integrations/destinations/ga/network.ts new file mode 100644 index 0000000000..bef0b7a047 --- /dev/null +++ b/test/integrations/destinations/ga/network.ts @@ -0,0 +1,293 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_1', + }, + webPropertyId: 'UA-123456789-5', + }, + headers: { + Authorization: 'Bearer valid_token', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_1', + }, + webPropertyId: 'UA-123456789-5', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_2', + }, + webPropertyId: 'UA-123456789-5', + }, + headers: { + Authorization: 'Bearer valid_token', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_2', + }, + webPropertyId: 'UA-123456789-5', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_3', + }, + webPropertyId: 'UA-123456789-6', + }, + headers: { + Authorization: 'Bearer expired_token', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + error: { + code: 401, + message: + 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', + status: 'UNAUTHENTICATED', + }, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_4', + }, + webPropertyId: 'UA-123456789-6', + }, + headers: { + Authorization: 'Bearer expired_token', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + error: { + code: 401, + message: + 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', + status: 'UNAUTHENTICATED', + }, + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_5', + }, + webPropertyId: 'UA-123456789-7', + }, + headers: { + Authorization: 'Bearer valid_token_1', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_5', + }, + webPropertyId: 'UA-123456789-7', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_6', + }, + webPropertyId: 'UA-123456789-7', + }, + headers: { + Authorization: 'Bearer valid_token_1', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_6', + }, + webPropertyId: 'UA-123456789-7', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_7', + }, + webPropertyId: 'UA-123456789-7', + }, + headers: { + Authorization: 'Bearer valid_token_1', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + error: { + errors: [ + { + domain: 'global', + reason: 'invalidParameter', + message: '[dummy response] The parameter used to query is not correct', + }, + ], + code: 403, + message: '[dummy response] The parameter used to query is not correct', + }, + }, + status: 403, + statusText: 'Bad Request', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_8', + }, + webPropertyId: 'UA-123456789-7', + }, + headers: { + Authorization: 'Bearer valid_token_1', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_8', + }, + webPropertyId: 'UA-123456789-7', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, + { + httpReq: { + method: 'post', + url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_9', + }, + webPropertyId: 'UA-123456789-7', + }, + headers: { + Authorization: 'Bearer valid_token_1', + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + kind: 'analytics#userDeletionRequest', + id: { + type: 'USER_ID', + userId: 'test_user_9', + }, + webPropertyId: 'UA-123456789-7', + deletionRequestTime: '2022-11-04T10:39:57.933Z', + }, + status: 200, + statusText: 'OK', + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/intercom/deleteUsers/data.ts b/test/integrations/destinations/intercom/deleteUsers/data.ts new file mode 100644 index 0000000000..a45af0a98f --- /dev/null +++ b/test/integrations/destinations/intercom/deleteUsers/data.ts @@ -0,0 +1,180 @@ +export const data = [ + { + name: 'intercom', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'INTERCOM', + userAttributes: [ + { + userId: '1', + }, + { + userId: '12', + }, + ], + config: { + apiKey: 'API_KEY', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'INTERCOM', + userAttributes: [ + { + userId: '7', + }, + { + userId: '9', + }, + ], + config: { + apiKey: 'API_KEY', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'INTERCOM', + userAttributes: [ + { + userId: '6188c2c5f47e464b4abf3235', + }, + { + userId: 'user_sdk2', + }, + ], + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'Config for deletion not present', + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 3', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'INTERCOM', + userAttributes: [ + { + userId: '6188c2c5f47e464b4abf3235', + }, + { + userId: 'user_sdk2', + }, + ], + config: {}, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'api key for deletion not present', + }, + ], + }, + }, + }, + { + name: 'intercom', + description: 'Test 4', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'INTERCOM', + userAttributes: [{}], + config: { + apiKey: 'a=', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/intercom/network.ts b/test/integrations/destinations/intercom/network.ts new file mode 100644 index 0000000000..9f064d63ea --- /dev/null +++ b/test/integrations/destinations/intercom/network.ts @@ -0,0 +1,93 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + url: 'https://api.intercom.io/user_delete_requests', + data: { + intercom_user_id: '1', + }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer API_KEY', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + data: { + type: 'error.list', + request_id: '0022e6v5qc7m04jeu5pg', + errors: [ + { + code: 'unauthorized', + message: 'Access Token Invalid', + }, + ], + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.intercom.io/user_delete_requests', + data: { + intercom_user_id: '12', + }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer API_KEY', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + status: 200, + statusText: 'ok', + data: { + id: 12, + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.intercom.io/user_delete_requests', + data: { + intercom_user_id: '7', + }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer API_KEY', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + status: 200, + statusText: 'ok', + data: { + id: 7, + }, + }, + }, + { + httpReq: { + method: 'post', + url: 'https://api.intercom.io/user_delete_requests', + data: { + intercom_user_id: '9', + }, + headers: { + Accept: 'application/json', + Authorization: 'Bearer API_KEY', + 'Content-Type': 'application/json', + }, + }, + httpRes: { + status: 200, + statusText: 'ok', + data: { + id: 9, + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/marketo_static_list/network.ts b/test/integrations/destinations/marketo_static_list/network.ts index 31b8729ce5..c369e1af26 100644 --- a/test/integrations/destinations/marketo_static_list/network.ts +++ b/test/integrations/destinations/marketo_static_list/network.ts @@ -1,56 +1,13 @@ export const networkCallsData = [ { httpReq: { - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', + method: 'GET', params: { client_id: 'marketo_client_id_success', client_secret: 'marketo_client_secret_success', grant_type: 'client_credentials', }, - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://marketo_acct_id_success.mktorest.com/identity/oauth/token', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/mautic/network.ts b/test/integrations/destinations/mautic/network.ts index 856c795a2b..593a630641 100644 --- a/test/integrations/destinations/mautic/network.ts +++ b/test/integrations/destinations/mautic/network.ts @@ -5,51 +5,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=email&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=abc@xyz.com', - withCredentials: false, }, httpRes: { data: { contacts: {}, total: 0 }, status: 200 }, }, @@ -59,51 +16,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=email&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=abc@xyz.com', - withCredentials: false, }, httpRes: { data: { contacts: {}, total: 0 }, status: 200 }, }, @@ -113,51 +27,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=email&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=hijibi@gmail.com', - withCredentials: false, }, httpRes: { data: { @@ -806,51 +677,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=email&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=hijibi@gmail.com', - withCredentials: false, }, httpRes: { data: { @@ -1499,51 +1327,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=lastname&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=kumar', - withCredentials: false, }, httpRes: { data: { @@ -3439,51 +3224,8 @@ export const networkCallsData = [ Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://ruddertest2.mautic.net/api/contacts?where%5B0%5D%5Bcol%5D=lastname&where%5B0%5D%5Bexpr%5D=eq&where%5B0%5D%5Bval%5D=Singh', - withCredentials: false, }, httpRes: { data: { Conatcts: {}, Total: 0 }, status: 200 }, }, diff --git a/test/integrations/destinations/mp/deleteUsers/data.ts b/test/integrations/destinations/mp/deleteUsers/data.ts new file mode 100644 index 0000000000..0f469b508f --- /dev/null +++ b/test/integrations/destinations/mp/deleteUsers/data.ts @@ -0,0 +1,3281 @@ +export const data = [ + { + name: 'mp', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + ], + config: { + token: 'testToken', + prefixProperties: true, + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed for `delete profile` api', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'rudder1', + }, + { + userId: 'rudder1', + }, + ], + config: { + token: 'testToken', + prefixProperties: true, + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'test_user_id', + }, + { + userId: 'user_sdk2', + }, + ], + config: { + apiKey: 'dummyApiKey', + prefixProperties: true, + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'API Token is a required field for user deletion', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 3', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + name: 'test1', + }, + ], + config: { + token: 'testToken', + prefixProperties: true, + useNativeSDK: false, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 4', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'rudder1', + }, + { + userId: 'rudder2', + }, + { + userId: 'rudder3', + }, + ], + config: { + token: 'test_token', + prefixProperties: true, + useNativeSDK: false, + userDeletionApi: 'task', + gdprApiToken: 'test_gdpr_token', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 5', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'rudder1', + }, + ], + config: { + token: 'test_token', + prefixProperties: true, + useNativeSDK: false, + userDeletionApi: 'task', + dataResidency: 'eu', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'GDPR API Token is a required field for creating deletion task in mixpanel', + }, + ], + }, + }, + }, + { + name: 'mp', + description: 'Test 6', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'MP', + userAttributes: [ + { + userId: 'rudder1', + }, + ], + config: { + token: 'test_token', + prefixProperties: true, + useNativeSDK: false, + dataResidency: 'eu', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/mp/network.ts b/test/integrations/destinations/mp/network.ts new file mode 100644 index 0000000000..a386451a21 --- /dev/null +++ b/test/integrations/destinations/mp/network.ts @@ -0,0 +1,1150 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + + url: 'https://api.mixpanel.com/engage', + data: [ + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + ], + headers: { + 'Content-Type': 'application/json', + Accept: 'text/plain', + }, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + + url: 'https://api.mixpanel.com/engage', + data: [ + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, + ], + headers: { + 'Content-Type': 'application/json', + Accept: 'text/plain', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + + url: 'https://api.mixpanel.com/engage', + data: [ + { + $distinct_id: 'rudder1', + $token: 'dummyAccessToken', + $delete: null, + $ignore_alias: true, + }, + { + $distinct_id: 'rudder1', + $token: 'dummyAccessToken', + $delete: null, + $ignore_alias: true, + }, + ], + headers: { + 'Content-Type': 'application/json', + Accept: 'text/plain', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + + url: 'https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token', + data: { + distinct_ids: ['rudder1', 'rudder2', 'rudder3'], + compliance_type: 'CCPA', + }, + headers: { + 'Content-Type': 'application/json', + + Authorization: 'Bearer test_gdpr_token', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + + url: 'https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token', + data: { + distinct_ids: ['rudder2'], + compliance_type: 'GDPR', + }, + headers: { + 'Content-Type': 'application/json', + Accept: 'text/plain', + Authorization: 'Bearer test_gdpr_token', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + + url: 'https://api-eu.mixpanel.com/engage', + data: [ + { + $distinct_id: 'rudder1', + $token: 'dummyAccessToken', + $delete: null, + $ignore_alias: true, + }, + ], + headers: { + 'Content-Type': 'application/json', + Accept: 'text/plain', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/optimizely_fullstack/network.ts b/test/integrations/destinations/optimizely_fullstack/network.ts new file mode 100644 index 0000000000..e6a1101ab9 --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/network.ts @@ -0,0 +1,206 @@ +const deleteNwData = [ + { + httpReq: { + method: 'get', + url: 'https://cdn.optimizely.com/datafiles/abc.json', + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + accountId: 'test_account_id', + projectId: 'test_project_id', + revision: '45', + attributes: [ + { + id: 'test_attribute_id_1', + key: 'gender', + }, + { + id: 'test_attribute_id_2', + key: 'name', + }, + { + id: 'test_attribute_id_3', + key: 'userId', + }, + { + id: 'test_attribute_id_4', + key: 'anonymousId', + }, + { + id: 'test_attribute_id_5', + key: 'company', + }, + ], + audiences: [ + { + id: '$opt_test_audience', + name: 'Optimizely-Generated Audience for Backwards Compatibility', + conditions: + '["or", {"match": "exact", "name": "$opt_test_attribute", "type": "custom_attribute", "value": "$opt_test_value"}]', + }, + ], + version: '4', + events: [ + { + id: 'test_event_id_1', + experimentIds: ['test_experiment_id'], + key: 'Product Added', + }, + { + id: 'test_event_id_2', + experimentIds: ['test_experiment_id'], + key: 'Product Removed', + }, + { + id: 'test_event_id_3', + experimentIds: ['test_experiment_id'], + key: 'Order Placed', + }, + { + id: 'test_event_id_4', + experimentIds: ['test_experiment_id'], + key: 'Viewed Meal page', + }, + { + id: 'test_event_id_5', + experimentIds: ['test_experiment_id'], + key: 'Viewed food page', + }, + { + id: 'test_event_id_6', + experimentIds: ['test_experiment_id'], + key: 'Viewed Main screen', + }, + { + id: 'test_event_id_7', + experimentIds: ['test_experiment_id'], + key: 'Home', + }, + { + id: 'test_event_id_8', + experimentIds: ['test_experiment_id'], + key: 'Index', + }, + ], + anonymizeIP: true, + botFiltering: false, + typedAudiences: [], + variables: [], + environmentKey: 'production', + sdkKey: 'test_sdk_key', + featureFlags: [ + { + id: 'test_feature_flag_id', + key: 'testfeature', + experimentIds: ['test_experiment_id'], + rolloutId: 'test_rollout_id', + variables: [ + { + id: 'test_variable_id', + key: 'sort_method', + type: 'string', + defaultValue: 'alphabetical', + }, + ], + }, + ], + rollouts: [ + { + id: 'test_rollout_id', + experiments: [ + { + forcedVariations: {}, + id: 'test_experiment_id', + key: 'test_experiment_key', + status: 'Running', + trafficAllocation: [ + { + entityId: 'test_variation_id', + endOfRange: 10000, + }, + ], + variations: [ + { + id: 'test_variation_id', + key: 'test_variation_key', + variables: [ + { + id: 'test_variable_id', + value: 'alphabetical', + }, + ], + featureEnabled: true, + }, + ], + layerId: 'test_layer_id', + audienceIds: [], + }, + ], + }, + ], + experiments: [ + { + forcedVariations: {}, + id: 'test_experiment_id', + key: 'test_experiment_key', + status: 'Running', + trafficAllocation: [ + { + entityId: 'test_variation_id_1', + endOfRange: 5000, + }, + { + entityId: 'test_variation_id_2', + endOfRange: 10000, + }, + ], + variations: [ + { + id: 'test_variation_id_1', + key: 'variation_1', + variables: [ + { + id: 'test_variable_id', + value: 'popular_first', + }, + ], + featureEnabled: true, + }, + { + id: 'test_variation_id_2', + key: 'variation_2', + variables: [ + { + id: 'test_variable_id', + value: 'popular_first', + }, + ], + featureEnabled: true, + }, + ], + layerId: 'test_layer_id', + audienceIds: [], + }, + ], + groups: [], + }, + }, + }, + { + httpReq: { + method: 'get', + url: 'https://cdn.optimizely.com/datafiles/wrong_cdn.json', + }, + httpRes: { + status: 404, + statusText: 'Not Found', + data: { + code: 'document_not_found', + message: 'document_not_found', + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/optimizely_fullstack/processor/data.ts b/test/integrations/destinations/optimizely_fullstack/processor/data.ts new file mode 100644 index 0000000000..47ce3314fd --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/processor/data.ts @@ -0,0 +1,2170 @@ +import utils from '../../../../../src/v0/util'; +export const mockFns = (_) => { + // @ts-ignore + jest.spyOn(utils, 'generateUUID').mockImplementation(() => 'generated_uuid'); +}; +export const data = [ + { + name: 'optimizely_fullstack', + description: 'Missing Data File URL', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 1, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Data File Url is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Data File Url is not present. Aborting', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 1, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Identify call: Missing Variation ID in integration object', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 2, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Variation ID is not present in the integrations object: Workflow: procWorkflow, Step: validateInputForIdentify, ChildStep: undefined, OriginalError: Variation ID is not present in the integrations object', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 2, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Missing Account ID', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 3, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Account ID is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Account ID is not present. Aborting', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 3, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Missing Campaign ID', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 4, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Campaign ID is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Campaign ID is not present. Aborting', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 4, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Missing Experiment ID', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + }, + }, + metadata: { + jobId: 5, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Experiment ID is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Experiment ID is not present. Aborting', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 5, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Page: Track Categorized Page and Track Named Pages toggle are disabled', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + channel: 'web', + name: 'Home', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + optimizely_fullstack: { + variationId: '123', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + trackCategorizedPages: false, + trackNamedPages: false, + }, + }, + metadata: { + jobId: 6, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + "Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely.: Workflow: procWorkflow, Step: validateInputForPageAndScreen, ChildStep: undefined, OriginalError: Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely.", + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 6, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: + 'Invalid Configuration (Track known users toggle is on and userId is missing in request)', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + channel: 'web', + event: 'Product Added', + properties: { + price: 999, + quantity: 1, + }, + context: { + traits: { + firstName: 'John', + age: 27, + }, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + optimizely_fullstack: { + variationId: '123', + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + trackCategorizedPages: false, + trackNamedPages: false, + trackKnownUsers: true, + }, + }, + metadata: { + jobId: 7, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + "UserId is required for event tracking when the 'Track Known Users' setting is enabled. Please include a 'userId' in your event payload: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: UserId is required for event tracking when the 'Track Known Users' setting is enabled. Please include a 'userId' in your event payload", + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 7, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track call without event', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 9, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Event is not present. Aborting.: Workflow: procWorkflow, Step: validateInputForTrack, ChildStep: undefined, OriginalError: Event is not present. Aborting.', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 9, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Invalid data file url', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Product Added', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/wrong_cdn.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { + jobId: 10, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + 'Data File Lookup Failed due to {"code":"document_not_found","message":"document_not_found"}: Workflow: procWorkflow, Step: dataFile, ChildStep: undefined, OriginalError: Data File Lookup Failed due to {"code":"document_not_found","message":"document_not_found"}', + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 10, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Event not present in data-file', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Product Added', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + optimizely_fullstack: { + variationId: '123', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + eventMapping: [ + { + from: 'Product Added', + to: 'product_added', + }, + ], + }, + }, + metadata: { + jobId: 11, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: + "Event 'product_added' is not present in data file. Make sure event exists in Optimizely.: Workflow: procWorkflow, Step: prepareTrackPayload, ChildStep: optimizelyEvent, OriginalError: Event 'product_added' is not present in data file. Make sure event exists in Optimizely.", + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + metadata: { + jobId: 11, + }, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Identify call (Decision Event) with userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + country: 'US', + }, + sessionId: 1685626914716, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + timestamp: '2023-02-10T12:16:07.251Z', + userId: 'userId123', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: { + jobId: 12, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 12 }, + output: { + body: { + FORM: {}, + JSON: { + account_id: 'test_account_id', + anonymize_ip: false, + client_name: 'RudderStack', + client_version: '1.0.0', + enrich_decisions: true, + visitors: [ + { + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + session_id: '1685626914716', + snapshots: [ + { + decisions: [ + { + campaign_id: 'test_campaign_id', + experiment_id: 'test_experiment_id', + variation_id: 'test_variation_id_1', + }, + ], + events: [ + { + entity_id: 'test_campaign_id', + timestamp: 1676031367251, + type: 'campaign_activated', + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + ], + }, + ], + visitor_id: 'userId123', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://logx.optimizely.com/v1/events', + files: {}, + headers: { 'Content-Type': 'application/json' }, + method: 'POST', + params: {}, + type: 'REST', + userId: '', + version: '1', + }, + statusCode: 200, + }, + ], + }, + }, + }, + + { + name: 'optimizely_fullstack', + description: 'Identify call (Decision Event) with anonymousId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + country: 'US', + }, + sessionId: 1685626914716, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + timestamp: '2023-02-10T12:16:07.251Z', + userId: 'userId123', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: false, + }, + }, + metadata: { + jobId: 13, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 13 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: false, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: '97c46c81-3140-456d-b2a9-690d70aaca35', + snapshots: [ + { + decisions: [ + { + campaign_id: 'test_campaign_id', + experiment_id: 'test_experiment_id', + variation_id: 'test_variation_id_1', + }, + ], + events: [ + { + entity_id: 'test_campaign_id', + type: 'campaign_activated', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + userId: '', + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Identify call (Decision Event) with projectId is empty"', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + country: 'US', + }, + sessionId: 1685626914716, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + timestamp: '2023-02-10T12:16:07.251Z', + userId: 'userId123', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + projectId: '', + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: { + jobId: 14, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 14 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + userId: '', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: false, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + snapshots: [ + { + decisions: [ + { + campaign_id: 'test_campaign_id', + experiment_id: 'test_experiment_id', + variation_id: 'test_variation_id_1', + }, + ], + events: [ + { + entity_id: 'test_campaign_id', + type: 'campaign_activated', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track Named Page: mapping is not provided for page name in webapp', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + userId: 'userId123', + name: 'Meal', + channel: 'web', + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { + foo: 'bar', + }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: false, + trackNamedPages: true, + pageMapping: [ + { + from: 'Home', + to: 'Viewed Home Page', + }, + { + from: 'food', + to: 'Product Added', + }, + ], + }, + }, + metadata: { + jobId: 15, + }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 15 }, + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'platform', + feature: 'processor', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + error: + 'Events [meal] are not present in the data file. Make sure events exist in Optimizely.: Workflow: procWorkflow, Step: preparePageOrScreenPayload, ChildStep: optimizelyEvents, OriginalError: Events [meal] are not present in the data file. Make sure events exist in Optimizely.', + }, + ], + }, + }, + }, + + { + name: 'optimizely_fullstack', + description: 'Track call (Conversion event) with userId', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'product_added', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', revenue: 123, quantity: 2 }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_2' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + eventMapping: [ + { from: 'Product Searched', to: 'Searched' }, + { from: 'product_added', to: 'Product Added' }, + ], + attributeMapping: [ + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, + ], + }, + }, + metadata: { jobId: 20 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 20 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + quantity: 2, + revenue: 12300, + tags: { foo: 'bar' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track call (Conversion event) without event mapping configured in webapp', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'Product Added', + channel: 'web', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + timestamp: '2023-02-10T12:16:07.251Z', + integrations: { All: true, optimizely_fullstack: { variationId: '123' } }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + }, + }, + metadata: { jobId: 21 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 21 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: false, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: '97c46c81-3140-456d-b2a9-690d70aaca35', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: {}, + }, + ], + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track call: Missing Variation ID in integration object ', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'track', + event: 'product_added', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', revenue: 123, quantity: 2 }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { All: true }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + eventMapping: [ + { from: 'Product Searched', to: 'Searched' }, + { from: 'product_added', to: 'Product Added' }, + ], + attributeMapping: [ + { from: 'organization', to: 'company' }, + { from: 'fullName', to: 'name' }, + ], + }, + }, + metadata: { jobId: 22 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 22 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + quantity: 2, + revenue: 12300, + tags: { foo: 'bar' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track Categorized and Named Page', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + name: 'Meal', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', category: 'food' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [ + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'Product Added' }, + ], + }, + }, + metadata: { jobId: 23 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 23 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar', category: 'food' }, + }, + { + entity_id: 'test_event_id_4', + key: 'Viewed Meal page', + timestamp: 1676031367251, + uuid: 'generated_uuid', + tags: { foo: 'bar', category: 'food' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track Categorized and Named Page without event mapping configured in webapp', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + name: 'home', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', category: 'index' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [{ from: '', to: '' }], + }, + }, + metadata: { jobId: 24 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 24 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_8', + key: 'Index', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar', category: 'index' }, + }, + { + entity_id: 'test_event_id_7', + key: 'Home', + timestamp: 1676031367251, + uuid: 'generated_uuid', + tags: { foo: 'bar', category: 'index' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: + 'Track Categorized Page: trackCategorizedPages,trackNamedPages toggle are enabled and name is not provided', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', category: 'food' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [ + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'Product Added' }, + ], + }, + }, + metadata: { jobId: 25 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 25 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar', category: 'food' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: + 'Track Named Page: trackCategorizedPages,trackNamedPages toggle are enabled and category is not provided', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + userId: 'userId123', + name: 'Meal', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [ + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'Product Added' }, + ], + }, + }, + metadata: { jobId: 26 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 26 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_4', + key: 'Viewed Meal page', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: + 'Track Named Page: trackCategorizedPages,trackNamedPages toggle are enabled and category mapping is wrong', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'page', + userId: 'userId123', + name: 'Meal', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [ + { from: 'meal', to: 'Viewed Meal Page' }, + { from: 'food', to: 'ABC' }, + ], + }, + }, + metadata: { jobId: 27 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 27 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_4', + key: 'Viewed Meal page', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'optimizely_fullstack', + description: 'Track Categorized and Named Screen', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + type: 'screen', + name: 'Home', + userId: 'userId123', + channel: 'web', + context: { + traits: { organization: 'RudderStack', fullName: 'John Doe' }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { foo: 'bar', category: 'food' }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { variationId: 'test_variation_id_1' }, + }, + }, + destination: { + DestinationDefinition: { Config: { cdkV2Enabled: true } }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: true, + pageMapping: [ + { from: 'home', to: 'Viewed Main Screen' }, + { from: 'food', to: 'Product Added' }, + ], + }, + }, + metadata: { jobId: 28 }, + }, + ], + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: [ + { + metadata: { jobId: 28 }, + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { 'Content-Type': 'application/json' }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { foo: 'bar', category: 'food' }, + }, + { + entity_id: 'test_event_id_6', + key: 'Viewed Main screen', + timestamp: 1676031367251, + uuid: 'generated_uuid', + tags: { foo: 'bar', category: 'food' }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, +].map((d) => ({ ...d, mockFns })); diff --git a/test/integrations/destinations/optimizely_fullstack/router/data.ts b/test/integrations/destinations/optimizely_fullstack/router/data.ts new file mode 100644 index 0000000000..1803881f30 --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/router/data.ts @@ -0,0 +1,563 @@ +import { FEATURES } from '../../../../../src/v0/util/tags'; +import { mockFns } from '../processor/data'; + +export const data = [ + { + name: 'optimizely_fullstack', + description: 'Test 0', + feature: FEATURES.ROUTER, + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'identify', + channel: 'web', + properties: {}, + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + country: 'US', + }, + sessionId: 1685626914716, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + timestamp: '2023-02-10T12:16:07.251Z', + userId: 'userId123', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: { + jobId: 1, + }, + }, + { + message: { + type: 'track', + event: 'product_added', + userId: 'userId123', + channel: 'web', + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { + foo: 'bar', + revenue: 123, + quantity: 2, + }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_2', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + eventMapping: [ + { + from: 'Product Searched', + to: 'Searched', + }, + { + from: 'product_added', + to: 'Product Added', + }, + ], + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: { + jobId: 2, + }, + }, + { + message: { + type: 'page', + userId: 'userId123', + channel: 'web', + context: { + traits: { + organization: 'RudderStack', + fullName: 'John Doe', + }, + sessionId: 1685626914716, + }, + rudderId: '5354b3f2-cb72-4355-a2b5-a298c3837c7d', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + timestamp: '2023-02-10T12:16:07.251Z', + properties: { + foo: 'bar', + category: 'food', + }, + anonymousId: '856365b8-da4b-4c13-9098-84df18559446', + integrations: { + All: true, + optimizely_fullstack: { + variationId: 'test_variation_id_1', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: false, + pageMapping: [ + { + from: 'meal', + to: 'Viewed Meal Page', + }, + { + from: 'food', + to: 'Product Added', + }, + ], + }, + }, + metadata: { + jobId: 3, + }, + }, + { + message: { + type: 'page', + channel: 'web', + name: 'Home', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + integrations: { + All: true, + optimizely_fullstack: { + variationId: '123', + }, + }, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + experimentId: 'test_experiment_id', + trackCategorizedPages: false, + trackNamedPages: false, + }, + }, + metadata: { + jobId: 4, + }, + }, + ], + destType: 'optimizely_fullstack', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: false, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + snapshots: [ + { + decisions: [ + { + campaign_id: 'test_campaign_id', + experiment_id: 'test_experiment_id', + variation_id: 'test_variation_id_1', + }, + ], + events: [ + { + entity_id: 'test_campaign_id', + type: 'campaign_activated', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: [ + { + jobId: 1, + }, + ], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + attributes: [ + { + entity_id: 'test_attribute_id_5', + key: 'company', + type: 'custom', + value: 'RudderStack', + }, + { + entity_id: 'test_attribute_id_2', + key: 'name', + type: 'custom', + value: 'John Doe', + }, + ], + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + quantity: 2, + revenue: 12300, + tags: { + foo: 'bar', + }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + eventMapping: [ + { + from: 'Product Searched', + to: 'Searched', + }, + { + from: 'product_added', + to: 'Product Added', + }, + ], + attributeMapping: [ + { + from: 'organization', + to: 'company', + }, + { + from: 'fullName', + to: 'name', + }, + ], + }, + }, + metadata: [ + { + jobId: 2, + }, + ], + statusCode: 200, + }, + { + batched: false, + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://logx.optimizely.com/v1/events', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + account_id: 'test_account_id', + anonymize_ip: true, + enrich_decisions: true, + client_name: 'RudderStack', + client_version: '1.0.0', + visitors: [ + { + visitor_id: 'userId123', + snapshots: [ + { + decisions: [], + events: [ + { + entity_id: 'test_event_id_1', + key: 'Product Added', + timestamp: 1676031367251, + uuid: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + tags: { + foo: 'bar', + category: 'food', + }, + }, + ], + }, + ], + session_id: '1685626914716', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + accountId: 'test_account_id', + campaignId: 'test_campaign_id', + experimentId: 'test_experiment_id', + trackKnownUsers: true, + anonymizeIp: true, + trackCategorizedPages: true, + trackNamedPages: false, + pageMapping: [ + { + from: 'meal', + to: 'Viewed Meal Page', + }, + { + from: 'food', + to: 'Product Added', + }, + ], + }, + }, + metadata: [ + { + jobId: 3, + }, + ], + statusCode: 200, + }, + { + batched: false, + destination: { + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, + Config: { + accountId: 'test_account_id', + campaignId: 'test_campagin_id', + dataFileUrl: 'https://cdn.optimizely.com/datafiles/abc.json', + experimentId: 'test_experiment_id', + trackCategorizedPages: false, + trackNamedPages: false, + }, + }, + error: + "Both 'Track Categorized Pages' and 'Track Named Pages' toggles are disabled in webapp. Please enable at one of them to send page/screen events to Optimizely.", + metadata: [ + { + jobId: 4, + }, + ], + statTags: { + destType: 'OPTIMIZELY_FULLSTACK', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'router', + implementation: 'cdkV2', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + mockFns, + }, +]; diff --git a/test/integrations/destinations/pardot/network.ts b/test/integrations/destinations/pardot/network.ts index 2d57c58c5d..bbbe0d70f9 100644 --- a/test/integrations/destinations/pardot/network.ts +++ b/test/integrations/destinations/pardot/network.ts @@ -3,7 +3,7 @@ import { enhanceRequestOptions, getFormData } from '../../../../src/adapters/net export const networkCallsData = [ // 2nd proxy test-case { - httpReq: enhanceRequestOptions({ + httpReq: { url: 'https://pi.pardot.com/api/prospect/version/4/do/upsert/email/Roger_12@waltair.io', data: getFormData({ first_name: 'Roger_12', @@ -11,15 +11,17 @@ export const networkCallsData = [ website: 'https://rudderstack.com', score: 14, campaign_id: 42213, - }), + format: 'json', + }).toString(), params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, method: 'POST', - }), + }, httpRes: { data: { '@attributes': { @@ -135,7 +137,7 @@ export const networkCallsData = [ }, // 4th proxy test-case { - httpReq: enhanceRequestOptions({ + httpReq: { url: 'https://pi.pardot.com/api/prospect/version/4/do/upsert/email/rolex_waltair@mywebsite.io', data: getFormData({ first_name: 'Rolex', @@ -144,15 +146,16 @@ export const networkCallsData = [ score: 15, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myExpiredToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, method: 'POST', - }), + }, httpRes: { data: { '@attributes': { @@ -168,7 +171,7 @@ export const networkCallsData = [ }, // 1st proxy test-case { - httpReq: enhanceRequestOptions({ + httpReq: { url: 'https://pi.pardot.com/api/prospect/version/4/do/upsert/id/123435', data: getFormData({ first_name: 'Roger12', @@ -177,15 +180,16 @@ export const networkCallsData = [ score: 14, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, method: 'POST', - }), + }, httpRes: { data: { '@attributes': { @@ -301,7 +305,7 @@ export const networkCallsData = [ }, // 3rd proxy test-case { - httpReq: enhanceRequestOptions({ + httpReq: { url: 'https://pi.pardot.com/api/prospect/version/4/do/upsert/fid/00Q6r000002LKhTPVR', data: getFormData({ first_name: 'Nick', @@ -310,15 +314,16 @@ export const networkCallsData = [ score: 12, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, method: 'POST', - }), + }, httpRes: { data: { '@attributes': { diff --git a/test/integrations/destinations/sendgrid/deleteUsers/data.ts b/test/integrations/destinations/sendgrid/deleteUsers/data.ts new file mode 100644 index 0000000000..85c6e1275f --- /dev/null +++ b/test/integrations/destinations/sendgrid/deleteUsers/data.ts @@ -0,0 +1,1275 @@ +export const data = [ + { + name: 'sendgrid', + description: 'Test 0', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SENDGRID', + userAttributes: [ + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + ], + config: { + apiKey: '1234', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'User deletion request failed', + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Test 1', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SENDGRID', + userAttributes: [ + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + { + userId: + 'test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + }, + { + userId: + 'user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + }, + ], + config: { + apiKey: '1234', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 200, + status: 'successful', + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Test 2', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SENDGRID', + userAttributes: [ + { + userId: 'eab57ccf-6322-498e-9338-7761c6dc0656', + }, + { + userId: '47983ca9-7cc6-4942-8ff0-ac443g95658d', + }, + ], + config: {}, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'apiKey is required for deleting user', + }, + ], + }, + }, + }, + { + name: 'sendgrid', + description: 'Test 3', + feature: 'userDeletion', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destType: 'SENDGRID', + userAttributes: { + userId: 'eab57ccf-6322-498e-9338-7761c6dc0656', + }, + config: { + apiKey: '1234', + }, + }, + ], + }, + }, + output: { + response: { + status: 400, + body: [ + { + statusCode: 400, + error: 'userAttributes is not an array', + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/sendgrid/network.ts b/test/integrations/destinations/sendgrid/network.ts new file mode 100644 index 0000000000..18a8a8d34d --- /dev/null +++ b/test/integrations/destinations/sendgrid/network.ts @@ -0,0 +1,110 @@ +const deleteNwData = [ + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + message: { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=[user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2]', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=[user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2]', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + message: { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + url: 'https://api.sendgrid.com/v3/marketing/contacts?ids=user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2,test_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_idtest_user_id,user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2user_sdk2', + headers: { + Authorization: 'Bearer 1234', + }, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/trengo/network.ts b/test/integrations/destinations/trengo/network.ts index bd85961d3d..e409489b8f 100644 --- a/test/integrations/destinations/trengo/network.ts +++ b/test/integrations/destinations/trengo/network.ts @@ -1,52 +1,13 @@ export const networkCallsData = [ { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=9830311521', - withCredentials: false, }, httpRes: { data: { @@ -118,52 +79,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=j@d.com', - withCredentials: false, }, httpRes: { data: { @@ -187,52 +109,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=j@d.com', - withCredentials: false, }, httpRes: { data: { @@ -256,103 +139,25 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=null', - withCredentials: false, }, - httpRes: { error: 'Request failed', status: 404 }, + httpRes: { data: { error: 'Request failed', status: 404 }, status: 200 }, }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=12345678910', - withCredentials: false, }, httpRes: { data: { @@ -376,103 +181,25 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=99999666661', - withCredentials: false, }, - httpRes: { error: 'Request failed', status: 404 }, + httpRes: { data: { error: 'Request failed', status: 404 }, status: 200 }, }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=98765432100', - withCredentials: false, }, httpRes: { data: { @@ -591,52 +318,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -764,52 +452,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -937,52 +586,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=98765432100', - withCredentials: false, }, httpRes: { data: { @@ -1101,52 +711,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1274,52 +845,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1447,52 +979,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1620,52 +1113,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1793,52 +1247,13 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://app.trengo.com/api/v2/contacts?page=1&term=9830311521', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/user/network.ts b/test/integrations/destinations/user/network.ts index e9b2c9b3c0..dff2e0726d 100644 --- a/test/integrations/destinations/user/network.ts +++ b/test/integrations/destinations/user/network.ts @@ -2,55 +2,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users-by-id/user@123/', - withCredentials: false, }, httpRes: { data: { @@ -86,55 +44,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/companies-by-id/group@795/', - withCredentials: false, }, httpRes: { data: { @@ -176,55 +92,13 @@ export const networkCallsData = [ user_custom_id: 'user@123', }, headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'PUT', + url: 'https://commander.user.com/api/public/companies/21/', - withCredentials: false, }, httpRes: { data: { @@ -256,55 +130,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users/search/?email=test@rudderstack.com', - withCredentials: false, }, httpRes: { data: { @@ -335,55 +167,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users/search/?key=lel1c5u1wuk8', - withCredentials: false, }, httpRes: { data: { @@ -414,55 +204,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users/search/?email=test@rudderstack.com', - withCredentials: false, }, httpRes: { data: { @@ -493,55 +241,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users-by-id/43/', - withCredentials: false, }, httpRes: { data: { @@ -571,55 +277,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users-by-id/43/', - withCredentials: false, }, httpRes: { data: { @@ -649,55 +313,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/users-by-id/user@123/', - withCredentials: false, }, httpRes: { data: { @@ -733,55 +355,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'GET', + url: 'https://commander.user.com/api/public/companies-by-id/group@795/', - withCredentials: false, }, httpRes: { data: { @@ -823,55 +403,13 @@ export const networkCallsData = [ user_custom_id: 'user@123', }, headers: { - Accept: '*/*;version=2', Authorization: 'Token dummyApiKey', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + + method: 'PUT', + url: 'https://commander.user.com/api/public/companies/21/', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/yahoo_dsp/network.ts b/test/integrations/destinations/yahoo_dsp/network.ts index 30f423fc99..2dcd0d2a9f 100644 --- a/test/integrations/destinations/yahoo_dsp/network.ts +++ b/test/integrations/destinations/yahoo_dsp/network.ts @@ -1,54 +1,13 @@ export const networkCallsData = [ { httpReq: { - Accept: 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded', - data: 'grant_type=client_credentials&scope=dsp-api-access&realm=dsp&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJodHRwczovL2lkLmIyYi55YWhvb2luYy5jb20vaWRlbnRpdHkvb2F1dGgyL2FjY2Vzc190b2tlbj9yZWFsbT1kc3AiLCJzdWIiOiJhYmNkZWY4LWY0OS00Y2Q2LWI0YzUtOTU4YjNkNjZkNDMxIiwiaXNzIjoiYWJjZGVmOC1mNDktNGNkNi1iNGM1LTk1OGIzZDY2ZDQzMSIsImV4cCI6MTY5NTMwODk5MCwiaWF0IjoxNjk1MzA1MzkwfQ.HdBZJ0PoI8L0LRRdfbYtbJbmtrOAQmfu2APbuIQguIA', - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, + headers: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + data: 'grant_type=client_credentials&scope=dsp-api-access&realm=dsp&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJodHRwczovL2lkLmIyYi55YWhvb2luYy5jb20vaWRlbnRpdHkvb2F1dGgyL2FjY2Vzc190b2tlbj9yZWFsbT1kc3AiLCJzdWIiOiJhYmNkZWY4LWY0OS00Y2Q2LWI0YzUtOTU4YjNkNjZkNDMxIiwiaXNzIjoiYWJjZGVmOC1mNDktNGNkNi1iNGM1LTk1OGIzZDY2ZDQzMSIsImV4cCI6MTY5NTMwODk5MCwiaWF0IjoxNjk1MzA1MzkwfQ.HdBZJ0PoI8L0LRRdfbYtbJbmtrOAQmfu2APbuIQguIA', + method: 'POST', url: 'https://id.b2b.yahooinc.com/identity/oauth2/access_token', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/yahoo_dsp/processor/data.ts b/test/integrations/destinations/yahoo_dsp/processor/data.ts index cb5145ed3a..eb607d60fb 100644 --- a/test/integrations/destinations/yahoo_dsp/processor/data.ts +++ b/test/integrations/destinations/yahoo_dsp/processor/data.ts @@ -1,3 +1,11 @@ +import { addMock } from '../../../testUtils'; +import { networkCallsData } from '../network'; + +export const mockFns = (mockAdapter) => { + addMock(mockAdapter, networkCallsData[0]); + // 21 September 2023 19:39:50 GMT+05:30 + Date.now = jest.fn(() => 1695305390000); +}; export const data = [ { name: 'yahoo_dsp', @@ -1107,4 +1115,6 @@ export const data = [ }, }, }, -]; +].map((d) => { + return { ...d, mockFns }; +}); diff --git a/test/integrations/destinations/yahoo_dsp/router/data.ts b/test/integrations/destinations/yahoo_dsp/router/data.ts index ea340fb6be..59c71b300c 100644 --- a/test/integrations/destinations/yahoo_dsp/router/data.ts +++ b/test/integrations/destinations/yahoo_dsp/router/data.ts @@ -1,3 +1,5 @@ +import { mockFns } from '../processor/data'; + export const data = [ { name: 'yahoo_dsp', @@ -144,5 +146,6 @@ export const data = [ }, }, }, + mockFns, }, ]; diff --git a/test/integrations/destinations/zendesk/network.ts b/test/integrations/destinations/zendesk/network.ts index 21a959fd90..bc80f0cd0a 100644 --- a/test/integrations/destinations/zendesk/network.ts +++ b/test/integrations/destinations/zendesk/network.ts @@ -5,51 +5,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -116,51 +73,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -203,51 +117,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/organizations/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -277,51 +148,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -380,51 +208,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2//users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { error: 'Request failed' }, }, @@ -434,51 +219,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabtest2.zendesk.com/api/v2/users/search.json?query=testemail2@email', - withCredentials: false, }, httpRes: { data: { count: 0, next_page: null, previous_page: null, users: [] }, status: 200 }, }, @@ -496,51 +238,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabtest2.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { user: {} }, status: 200 }, }, @@ -550,51 +249,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -661,51 +317,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -772,51 +385,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -859,51 +429,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/organizations/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -933,51 +460,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1036,51 +520,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2//users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { error: 'Request failed' }, }, @@ -1090,51 +531,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1193,51 +591,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1304,51 +659,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1407,51 +719,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { data: { @@ -1479,51 +748,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1590,51 +816,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1693,51 +876,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { data: { @@ -1765,51 +905,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1879,51 +976,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1990,51 +1044,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2104,51 +1115,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2215,51 +1183,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2329,51 +1254,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2440,107 +1322,10 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=johnwick@example.com', - withCredentials: false, }, - httpRes: { error: 'Request failed' }, - }, - { - httpReq: { - headers: { - Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', - 'Content-Type': 'application/json', - }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, - url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=johnwick@example.com', - withCredentials: false, - }, - httpRes: { error: 'Request failed' }, + httpRes: { error: 'Request failed', status: 200 }, }, { httpReq: { @@ -2556,51 +1341,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -2654,53 +1396,10 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=johnwick@example.com', - withCredentials: false, }, - httpRes: { error: 'Request failed' }, + httpRes: { error: 'Request failed', status: 200 }, }, { httpReq: { @@ -2716,51 +1415,8 @@ export const networkCallsData = [ Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -2814,53 +1470,10 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMi90b2tlbjpteUR1bW15QXBpVG9rZW4y', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://blendohelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, - httpRes: { error: 'Request failed' }, + httpRes: { error: 'Request failed', status: 200 }, }, { httpReq: { @@ -2868,51 +1481,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2979,51 +1549,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -3090,51 +1617,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=abcd-144', - withCredentials: false, }, httpRes: { data: { @@ -3194,51 +1678,8 @@ export const networkCallsData = [ Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/identities', - withCredentials: false, }, httpRes: { data: { @@ -3283,51 +1724,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDFAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabtest1.zendesk.com/api/v2/users/search.json?query=testemail1@email', - withCredentials: false, }, httpRes: { data: { count: 0, next_page: null, previous_page: null, users: [] }, status: 200 }, }, @@ -3345,51 +1743,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDFAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabtest1.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -3443,51 +1798,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'GET', url: 'https://rudderlabtest2.zendesk.com/api/v2/users/search.json?query=testemail2@email', - withCredentials: false, }, httpRes: { data: { count: 0, next_page: null, previous_page: null, users: [] }, status: 200 }, }, @@ -3505,51 +1817,8 @@ export const networkCallsData = [ Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'http:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - _sessionCache: { list: [], map: {} }, - defaultPort: 443, - freeSockets: {}, - keepAlive: true, - keepAliveMsecs: 1000, - maxCachedSessions: 100, - maxFreeSockets: 256, - maxSockets: null, - maxTotalSockets: null, - options: { keepAlive: true, noDelay: true, path: null }, - protocol: 'https:', - requests: {}, - scheduling: 'lifo', - sockets: {}, - totalSocketCount: 0, - }, - maxBodyLength: 100000000, - maxContentLength: 100000000, - maxRedirects: 5, - method: 'get', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + method: 'POST', url: 'https://rudderlabtest2.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { user: {} }, status: 200 }, }, diff --git a/test/integrations/testTypes.ts b/test/integrations/testTypes.ts index 6b90ba9c13..51667e8044 100644 --- a/test/integrations/testTypes.ts +++ b/test/integrations/testTypes.ts @@ -1,4 +1,5 @@ -import { AxiosResponse } from "axios"; +import { AxiosResponse } from 'axios'; +import MockAdapter from 'axios-mock-adapter'; export interface requestType { method: string; @@ -36,9 +37,10 @@ export interface TestCaseData { input: inputType; output: outputType; mock?: mockType[]; + mockFns?: (mockAdapter: MockAdapter) => {}; } export type MockHttpCallsData = { httpReq: Record; httpRes: Partial; -} \ No newline at end of file +}; diff --git a/test/integrations/testUtils.ts b/test/integrations/testUtils.ts index 1f7893de38..8511ac41f4 100644 --- a/test/integrations/testUtils.ts +++ b/test/integrations/testUtils.ts @@ -1,7 +1,8 @@ import { globSync } from 'glob'; import { join } from 'path'; import { MockHttpCallsData, TestCaseData } from './testTypes'; -import stringify from 'fast-json-stable-stringify'; +import MockAdapter from 'axios-mock-adapter'; +import isMatch from 'lodash/isMatch'; export const getTestDataFilePaths = (dirPath: string, destination: string = ''): string[] => { const globPattern = join(dirPath, '**', 'data.ts'); @@ -28,3 +29,39 @@ export const getAllTestMockDataFilePaths = (dirPath: string, destination: string } return testFilePaths; }; + +export const addMock = (mock: MockAdapter, axiosMock: MockHttpCallsData) => { + const { url, method, data: reqData, ...opts } = axiosMock.httpReq; + const { data, headers, status } = axiosMock.httpRes; + + const headersAsymMatch = { + asymmetricMatch: function (actual) { + return isMatch(actual, opts.headers); + }, + }; + + switch (method.toLowerCase()) { + case 'get': + // @ts-ignore + mock.onGet(url, reqData, headersAsymMatch).reply(status, data, headers); + break; + case 'delete': + // @ts-ignore + mock.onDelete(url, reqData, headersAsymMatch).reply(status, data, headers); + break; + case 'post': + // @ts-ignore + mock.onPost(url, reqData, headersAsymMatch).reply(status, data, headers); + break; + case 'patch': + // @ts-ignore + mock.onPatch(url, reqData, headersAsymMatch).reply(status, data, headers); + break; + case 'put': + // @ts-ignore + mock.onPut(url, reqData, headersAsymMatch).reply(status, data, headers); + break; + default: + break; + } +}; diff --git a/test/testHelper.js b/test/testHelper.js index 652ddfc89a..5fe97fed67 100644 --- a/test/testHelper.js +++ b/test/testHelper.js @@ -1,6 +1,5 @@ const fs = require('fs'); const path = require('path'); -const stringify = require('fast-json-stable-stringify'); const getFuncTestData = (dirPath, filePath) => { const fileData = fs.readFileSync(path.resolve(dirPath, filePath)); @@ -10,28 +9,17 @@ const getFuncTestData = (dirPath, filePath) => { const responses = []; -const setResponsesForNwMockGeneration = (reqType, { url, data, requestOptions }, {response}) => { +const setResponsesForMockAxiosAdapter = ({url, method, data, options}, {response}) => { if (process.env.GEN_AXIOS_FOR_TESTS === 'true') { - let resp; - switch (reqType) { - case "constructor": - resp = `{httpReq: ${stringify(requestOptions)},httpRes: ${stringify(response)}},` - break; - case "get": - case "delete": - resp = `{httpReq: ${stringify({url, ...requestOptions})},httpRes: ${stringify(response)}},` - break - default: - // put, patch, post - resp = `{httpReq: ${stringify({url, data, ...requestOptions})},httpRes: ${stringify(response)}},` - break; + const reqObj = {url, ...options, method} + if (data) { + reqObj.data = data } - responses.push(resp) + responses.push(`{httpReq: ${JSON.stringify(reqObj)},httpRes: ${JSON.stringify(response)}},`) } } - module.exports = { getFuncTestData, responses, - setResponsesForNwMockGeneration + setResponsesForMockAxiosAdapter };