From c9ac01f4ab5ac58fea0e41c0ac9b9e3c9e9e9c4f Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 02:15:07 +0530 Subject: [PATCH 01/10] feat: use axios-mock-adapter for mocking axios requests - migrate several destinations already in component test suite to this - migrate all user-deletion destinations to compnent test suite - remove global axios mock formation automatically --- jest.config.typescript.js | 258 +- package-lock.json | 37 + package.json | 1 + src/adapters/network.js | 28 +- test/__tests__/proxy.test.ts | 21 +- test/deleteUsers/README.md | 35 - test/deleteUsers/data/af/handler_input.json | 177 - test/deleteUsers/data/af/handler_output.json | 44 - test/deleteUsers/data/af/nw_client_data.json | 58 - test/deleteUsers/data/am/handler_input.json | 380 - test/deleteUsers/data/am/handler_output.json | 26 - test/deleteUsers/data/am/nw_client_data.json | 91 - .../deleteUsers/data/braze/handler_input.json | 393 -- .../data/braze/handler_output.json | 32 - .../data/braze/nw_client_data.json | 97 - .../data/clevertap/handler_input.json | 441 -- .../data/clevertap/handler_output.json | 20 - .../data/clevertap/nw_client_data.json | 177 - .../data/engage/handler_input.json | 133 - .../data/engage/handler_output.json | 39 - .../data/engage/nw_client_data.json | 197 - test/deleteUsers/data/ga/handler_input.json | 83 - test/deleteUsers/data/ga/handler_output.json | 21 - test/deleteUsers/data/ga/nw_client_data.json | 316 - .../data/intercom/handler_input.json | 90 - .../data/intercom/handler_output.json | 32 - .../data/intercom/nw_client_data.json | 96 - test/deleteUsers/data/mp/handler_input.json | 3155 --------- test/deleteUsers/data/mp/handler_output.json | 44 - test/deleteUsers/data/mp/nw_client_data.json | 6159 ----------------- .../data/sendgrid/handler_input.json | 921 --- .../data/sendgrid/handler_output.json | 26 - .../data/sendgrid/nw_client_data.json | 117 - test/deleteUsers/deleteUsers.test.ts | 67 - test/integrations/component.test.ts | 117 +- .../destinations/active_campaign/network.ts | 284 +- .../destinations/af/deleteUsers/data.ts | 282 + test/integrations/destinations/af/network.ts | 68 + .../destinations/am/deleteUsers/data.ts | 396 ++ test/integrations/destinations/am/network.ts | 429 ++ .../destinations/braze/deleteUsers/data.ts | 483 ++ .../destinations/braze/network.ts | 411 ++ .../destinations/canny/network.ts | 209 +- .../clevertap/deleteUsers/data.ts | 495 ++ .../destinations/clevertap/network.ts | 284 + .../destinations/engage/deleteUsers/data.ts | 241 + .../destinations/engage/network.ts | 727 ++ .../destinations/ga/deleteUsers/data.ts | 139 + test/integrations/destinations/ga/network.ts | 779 +++ .../destinations/intercom/deleteUsers/data.ts | 180 + .../destinations/intercom/network.ts | 309 + .../marketo_static_list/network.ts | 2 +- .../destinations/mautic/network.ts | 18 +- .../destinations/mp/deleteUsers/data.ts | 3281 +++++++++ test/integrations/destinations/mp/network.ts | 1468 ++++ .../destinations/pardot/network.ts | 17 +- .../destinations/sendgrid/deleteUsers/data.ts | 1275 ++++ .../destinations/sendgrid/network.ts | 440 ++ .../destinations/trengo/network.ts | 109 +- .../integrations/destinations/user/network.ts | 22 +- .../destinations/yahoo_dsp/network.ts | 2 +- .../destinations/zendesk/network.ts | 126 +- test/testHelper.js | 23 +- 63 files changed, 12547 insertions(+), 13881 deletions(-) delete mode 100644 test/deleteUsers/README.md delete mode 100644 test/deleteUsers/data/af/handler_input.json delete mode 100644 test/deleteUsers/data/af/handler_output.json delete mode 100644 test/deleteUsers/data/af/nw_client_data.json delete mode 100644 test/deleteUsers/data/am/handler_input.json delete mode 100644 test/deleteUsers/data/am/handler_output.json delete mode 100644 test/deleteUsers/data/am/nw_client_data.json delete mode 100644 test/deleteUsers/data/braze/handler_input.json delete mode 100644 test/deleteUsers/data/braze/handler_output.json delete mode 100644 test/deleteUsers/data/braze/nw_client_data.json delete mode 100644 test/deleteUsers/data/clevertap/handler_input.json delete mode 100644 test/deleteUsers/data/clevertap/handler_output.json delete mode 100644 test/deleteUsers/data/clevertap/nw_client_data.json delete mode 100644 test/deleteUsers/data/engage/handler_input.json delete mode 100644 test/deleteUsers/data/engage/handler_output.json delete mode 100644 test/deleteUsers/data/engage/nw_client_data.json delete mode 100644 test/deleteUsers/data/ga/handler_input.json delete mode 100644 test/deleteUsers/data/ga/handler_output.json delete mode 100644 test/deleteUsers/data/ga/nw_client_data.json delete mode 100644 test/deleteUsers/data/intercom/handler_input.json delete mode 100644 test/deleteUsers/data/intercom/handler_output.json delete mode 100644 test/deleteUsers/data/intercom/nw_client_data.json delete mode 100644 test/deleteUsers/data/mp/handler_input.json delete mode 100644 test/deleteUsers/data/mp/handler_output.json delete mode 100644 test/deleteUsers/data/mp/nw_client_data.json delete mode 100644 test/deleteUsers/data/sendgrid/handler_input.json delete mode 100644 test/deleteUsers/data/sendgrid/handler_output.json delete mode 100644 test/deleteUsers/data/sendgrid/nw_client_data.json delete mode 100644 test/deleteUsers/deleteUsers.test.ts create mode 100644 test/integrations/destinations/af/deleteUsers/data.ts create mode 100644 test/integrations/destinations/af/network.ts create mode 100644 test/integrations/destinations/am/deleteUsers/data.ts create mode 100644 test/integrations/destinations/am/network.ts create mode 100644 test/integrations/destinations/braze/deleteUsers/data.ts create mode 100644 test/integrations/destinations/braze/network.ts create mode 100644 test/integrations/destinations/clevertap/deleteUsers/data.ts create mode 100644 test/integrations/destinations/clevertap/network.ts create mode 100644 test/integrations/destinations/engage/deleteUsers/data.ts create mode 100644 test/integrations/destinations/engage/network.ts create mode 100644 test/integrations/destinations/ga/deleteUsers/data.ts create mode 100644 test/integrations/destinations/ga/network.ts create mode 100644 test/integrations/destinations/intercom/deleteUsers/data.ts create mode 100644 test/integrations/destinations/intercom/network.ts create mode 100644 test/integrations/destinations/mp/deleteUsers/data.ts create mode 100644 test/integrations/destinations/mp/network.ts create mode 100644 test/integrations/destinations/sendgrid/deleteUsers/data.ts create mode 100644 test/integrations/destinations/sendgrid/network.ts 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..b03c5824a5 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", @@ -5523,6 +5524,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..699063025c 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", diff --git a/src/adapters/network.js b/src/adapters/network.js index ea9418aa07..2aa27c7217 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, ...opts } = 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: opts }, 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: requestOptions, method: 'GET' }, clientResponse); return clientResponse; }; @@ -146,7 +148,10 @@ const httpDELETE = async (url, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('delete', { url, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter( + { url, options: requestOptions, method: 'DELETE' }, + clientResponse, + ); return clientResponse; }; @@ -173,7 +178,10 @@ const httpPOST = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('post', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter( + { url, data, options: requestOptions, method: 'POST' }, + clientResponse, + ); return clientResponse; }; @@ -200,7 +208,10 @@ const httpPUT = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('put', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter( + { url, data, options: requestOptions, method: 'PUT' }, + clientResponse, + ); return clientResponse; }; @@ -227,7 +238,10 @@ const httpPATCH = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForNwMockGeneration('patch', { url, data, requestOptions }, clientResponse); + setResponsesForMockAxiosAdapter( + { url, data, options: requestOptions, method: 'PATCH' }, + clientResponse, + ); return clientResponse; }; 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..208177e504 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -4,22 +4,23 @@ 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, } 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'; // To run single destination test cases // npm run test:ts -- component --destination=adobe_analytics @@ -67,80 +68,53 @@ 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]; + mock = new MockAxiosAdapter(axios, { onNoMatch: 'passthrough' }); + const registerAxiosMocks = (axiosMocks: MockHttpCallsData[]) => { + axiosMocks.forEach((axiosMock) => { + const { url, method, data: reqData, ...opts } = axiosMock.httpReq; + const { data, headers, status } = axiosMock.httpRes; + + switch (method.toLowerCase()) { + case 'get': + // @ts-ignore + mock.onGet(url, reqData, opts.headers).reply(status, data, headers); + break; + case 'delete': + // @ts-ignore + mock.onDelete(url, reqData, opts.headers).reply(status, data, headers); + break; + case 'post': + // @ts-ignore + mock.onPost(url, reqData, opts.headers).reply(status, data, headers); + break; + case 'patch': + // @ts-ignore + mock.onPatch(url, reqData, opts.headers).reply(status, data, headers); + break; + case 'put': + // @ts-ignore + mock.onPut(url, reqData, opts.headers).reply(status, data, headers); + break; + default: + break; } - 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); - }; - }; - - 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 + .map((currPath) => { + const mockNetworkCallsData: MockHttpCallsData[] = getMockHttpCallsData(currPath); + return mockNetworkCallsData; + }) + .flat(); + registerAxiosMocks(allAxiosRequests); } // END @@ -197,7 +171,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 @@ -231,6 +205,11 @@ describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { } const testData: TestCaseData[] = getTestData(testDataPath); test.each(testData)('$name - $module - $feature -> $description', async (tcData) => { + if (tcData.feature === FEATURES.USER_DELETION && tcData.name === 'af') { + utils.generateUUID = jest.fn(() => '97fcd7b2-cc24-47d7-b776-057b7b199513'); + jest.spyOn(Date.prototype, 'toISOString').mockReturnValue('2023-09-24T11:22:24.018Z'); + } + 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..1b950447e5 100644 --- a/test/integrations/destinations/active_campaign/network.ts +++ b/test/integrations/destinations/active_campaign/network.ts @@ -9,7 +9,11 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -49,7 +53,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -119,7 +123,11 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -159,7 +167,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -234,7 +242,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -274,7 +286,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -353,7 +365,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -393,7 +409,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -472,7 +488,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -512,7 +532,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -535,7 +555,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 1 } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -575,7 +599,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -598,7 +622,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 2 } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -638,7 +666,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -661,7 +689,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -701,7 +733,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -713,7 +745,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiToken', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -753,7 +789,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -764,7 +800,7 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiToken' }, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiToken' }, httpAgent: { _events: {}, _eventsCount: 2, @@ -804,7 +840,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -947,7 +983,11 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -987,7 +1027,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1058,7 +1098,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1098,7 +1142,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1110,7 +1154,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1150,7 +1198,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1161,7 +1209,7 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1201,7 +1249,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1344,7 +1392,11 @@ export const networkCallsData = [ phone: '92374162212', }, }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1384,7 +1436,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1454,7 +1506,11 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1494,7 +1550,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1569,7 +1625,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1609,7 +1669,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1688,7 +1748,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1728,7 +1792,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1807,7 +1871,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1847,7 +1915,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1870,7 +1938,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 6 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1910,7 +1982,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1933,7 +2005,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 7 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1973,7 +2049,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1996,7 +2072,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2036,7 +2116,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2048,7 +2128,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2088,7 +2172,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2099,7 +2183,7 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2139,7 +2223,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2274,7 +2358,11 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2314,7 +2402,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2332,7 +2420,11 @@ export const networkCallsData = [ { httpReq: { data: { eventTrackingEvent: { name: 'ScreenViewed' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2372,7 +2464,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2383,7 +2475,7 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, + headers: { 'Api-Token': 'dummyApiKey', Accept: 'application/json, text/plain, */*' }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2423,7 +2515,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2441,7 +2533,11 @@ export const networkCallsData = [ { httpReq: { data: { eventTrackingEvent: { name: 'Tracking Action' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2481,7 +2577,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2493,7 +2589,11 @@ export const networkCallsData = [ { httpReq: { data: { contact: { email: 'jamesDoe@gmail.com', phone: '92374162212' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2533,7 +2633,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2603,7 +2703,11 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2643,7 +2747,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2718,7 +2822,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2758,7 +2866,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2837,7 +2945,11 @@ export const networkCallsData = [ { httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2877,7 +2989,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2956,7 +3068,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -2996,7 +3112,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3019,7 +3135,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 11 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -3059,7 +3179,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3082,7 +3202,11 @@ export const networkCallsData = [ { httpReq: { data: { contactTag: { contact: '2', tag: 12 } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -3122,7 +3246,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3145,7 +3269,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 2, status: '1' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -3185,7 +3313,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3197,7 +3325,11 @@ export const networkCallsData = [ { httpReq: { data: { contactList: { contact: '2', list: 3, status: '2' } }, - headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json' }, + headers: { + 'Api-Token': 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -3237,7 +3369,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3248,7 +3380,7 @@ export const networkCallsData = [ }, { httpReq: { - headers: { 'Api-Token': 'dummyApiKey' }, + headers: { Accept: 'application/json, text/plain, */*', 'Api-Token': 'dummyApiKey' }, httpAgent: { _events: {}, _eventsCount: 2, @@ -3288,7 +3420,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, diff --git a/test/integrations/destinations/af/deleteUsers/data.ts b/test/integrations/destinations/af/deleteUsers/data.ts new file mode 100644 index 0000000000..64976fdee4 --- /dev/null +++ b/test/integrations/destinations/af/deleteUsers/data.ts @@ -0,0 +1,282 @@ +import { cloneDeep } from 'lodash'; +import { FEATURES } from '../../../../../src/v0/util/tags'; +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', + }, + ], + }, + }, + }, + { + 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', + }, + ], + }, + }, + }, + ...nonNetworkCases, +]; diff --git a/test/integrations/destinations/af/network.ts b/test/integrations/destinations/af/network.ts new file mode 100644 index 0000000000..00389b3fa6 --- /dev/null +++ b/test/integrations/destinations/af/network.ts @@ -0,0 +1,68 @@ +import { enhanceRequestOptions } from '../../../../src/adapters/network'; +import { JSON_MIME_TYPE } from '../../../../src/v0/util/constant'; + +export const networkCallsData = [ + { + httpReq: enhanceRequestOptions({ + method: 'post', + url: 'https://hq1.appsflyer.com/api/gdpr/v1/opendsr_request', + headers: { + 'Content-Type': JSON_MIME_TYPE, + Accept: 'application/json, text/plain, */*', + 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: enhanceRequestOptions({ + 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, + Accept: 'application/json, text/plain, */*', + 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..2cd1aa27a0 --- /dev/null +++ b/test/integrations/destinations/am/network.ts @@ -0,0 +1,429 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 403, + message: 'HTTP 403: Forbidden (Invalid API Key)', + status: 'Forbidden', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'Nothing scheduled due to invalid amplitude/user ids for app XXXXX', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://amplitude.com/api/2/deletions/users', + data: { + userIds: ['Batch1'], + }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': 'Mocking', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://amplitude.com/api/2/deletions/users', + data: { + userIds: ['Batch2'], + }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Basic MTIzNDphYmNk', + }, + maxContentLength: 100000000, + }, + 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..df95da1340 --- /dev/null +++ b/test/integrations/destinations/braze/network.ts @@ -0,0 +1,411 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + deleted: 50, + message: 'success', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://rest.iad-03.braze.com/users/delete', + data: { external_ids: ['test_user_id51'] }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + deleted: '1', + message: 'success', + }, + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://rest.iad-03.braze.com/users/delete', + data: { + externalIds: ['test_user_id'], + }, + headers: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + 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..feef6ba7c4 100644 --- a/test/integrations/destinations/canny/network.ts +++ b/test/integrations/destinations/canny/network.ts @@ -1,25 +1,204 @@ -import QueryString from 'qs'; -import { enhanceRequestOptions } from '../../../../src/adapters/network'; - export const networkCallsData = [ { - httpReq: enhanceRequestOptions({ + httpReq: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + data: 'apiKey=apikey123&email=test%40rudderstack.com', + 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: 'POST', + responseEncoding: 'utf8', + responseType: 'json', + timeout: 60000, url: 'https://canny.io/api/v1/users/retrieve', + withCredentials: false, + }, + 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: { + Accept: 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', + data: 'apiKey=apikey123&email=test%40rudderstack.com', + 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: 'POST', + responseEncoding: 'utf8', + responseType: 'json', + timeout: 60000, + url: 'https://canny.io/api/v1/users/retrieve', + withCredentials: false, + }, + 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: { Accept: 'application/json', - data: QueryString.stringify({ apiKey: 'apikey123', email: 'test@rudderstack.com' }), - }), + 'Content-Type': 'application/x-www-form-urlencoded', + data: 'apiKey=apikey123&email=test%40rudderstack.com', + 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: 'POST', + responseEncoding: 'utf8', + responseType: 'json', + timeout: 60000, + url: 'https://canny.io/api/v1/users/retrieve', + withCredentials: false, + }, 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..d797f2d1ff --- /dev/null +++ b/test/integrations/destinations/clevertap/network.ts @@ -0,0 +1,284 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/json', + 'X-CleverTap-Account-Id': 'testFail', + 'X-CleverTap-Passcode': 'tofail', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + '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..9acd667d53 --- /dev/null +++ b/test/integrations/destinations/engage/network.ts @@ -0,0 +1,727 @@ +const deleteNwData = [ + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/1', + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail first', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/2', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/3', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/4', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/5', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/6', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'fail 6 ', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/7', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/8', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'fail mid case 8', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/9', + 'Content-Type': 'application/json', + Authorization: 'Basic YWJjZDplZmdo', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/12', + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'success', + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://api.engage.so/v1/users/user_sdk2', + maxContentLength: 100000000, + }, + 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..c00180a404 --- /dev/null +++ b/test/integrations/destinations/ga/network.ts @@ -0,0 +1,779 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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..45e5921420 --- /dev/null +++ b/test/integrations/destinations/intercom/network.ts @@ -0,0 +1,309 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + type: 'error.list', + request_id: '0022e6v5qc7m04jeu5pg', + errors: [ + { + code: 'unauthorized', + message: 'Access Token Invalid', + }, + ], + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'ok', + data: { + id: 12, + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'ok', + data: { + id: 7, + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + 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..6e5e2886f6 100644 --- a/test/integrations/destinations/marketo_static_list/network.ts +++ b/test/integrations/destinations/marketo_static_list/network.ts @@ -40,7 +40,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', params: { client_id: 'marketo_client_id_success', client_secret: 'marketo_client_secret_success', diff --git a/test/integrations/destinations/mautic/network.ts b/test/integrations/destinations/mautic/network.ts index 856c795a2b..cb90ade2e5 100644 --- a/test/integrations/destinations/mautic/network.ts +++ b/test/integrations/destinations/mautic/network.ts @@ -2,6 +2,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -44,7 +45,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -56,6 +57,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -98,7 +100,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -110,6 +112,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdFJ1ZGRlcmxhYnM0NTgyM0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -152,7 +155,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -803,6 +806,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -845,7 +849,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1496,6 +1500,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -1538,7 +1543,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3436,6 +3441,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic VGVzdDQ1ODIzUnVkZGVybGFic0BnbWFpbC5jb206ZHVtbXlQYXNzd29yZA==', 'Content-Type': 'application/json', }, @@ -3478,7 +3484,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, 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..c2a294a54e --- /dev/null +++ b/test/integrations/destinations/mp/network.ts @@ -0,0 +1,1468 @@ +const deleteNwData = [ + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer test_gdpr_token', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, + { + httpReq: { + method: 'post', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': '1', + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; diff --git a/test/integrations/destinations/pardot/network.ts b/test/integrations/destinations/pardot/network.ts index 2d57c58c5d..2b62523b66 100644 --- a/test/integrations/destinations/pardot/network.ts +++ b/test/integrations/destinations/pardot/network.ts @@ -11,10 +11,13 @@ export const networkCallsData = [ website: 'https://rudderstack.com', score: 14, campaign_id: 42213, - }), + format: 'json', + }).toString(), params: { destination: 'pardot' }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, @@ -144,10 +147,12 @@ export const networkCallsData = [ score: 15, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myExpiredToken', + Accept: 'application/json, text/plain, */*', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, @@ -177,10 +182,12 @@ export const networkCallsData = [ score: 14, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, @@ -310,10 +317,12 @@ export const networkCallsData = [ score: 12, campaign_id: 42213, format: 'json', - }), + }).toString(), params: { destination: 'pardot' }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Bearer myToken', + 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, 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..8a85b6dba8 --- /dev/null +++ b/test/integrations/destinations/sendgrid/network.ts @@ -0,0 +1,440 @@ +const deleteNwData = [ + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + message: { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + data: { + code: 400, + message: 'Bad Req', + status: 'Fail Case', + }, + status: 400, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + message: { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + httpRes: { + status: 200, + statusText: 'OK', + data: { + ' message': { + job_id: 'bb33b1f9-e7d6-4a6c-bf1c-a2143275e257', + }, + }, + }, + }, + { + httpReq: { + method: 'delete', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + 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: { + Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer 1234', + }, + maxContentLength: 100000000, + }, + 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..d57a4562bf 100644 --- a/test/integrations/destinations/trengo/network.ts +++ b/test/integrations/destinations/trengo/network.ts @@ -1,7 +1,10 @@ export const networkCallsData = [ { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -41,7 +44,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -118,7 +121,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -158,7 +164,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -187,7 +193,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -227,7 +236,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -256,7 +265,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -296,18 +308,21 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, 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' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -347,7 +362,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -376,7 +391,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -416,18 +434,21 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, 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' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -467,7 +488,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -591,7 +612,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -631,7 +655,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -764,7 +788,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -804,7 +831,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -937,7 +964,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -977,7 +1007,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1101,7 +1131,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1141,7 +1174,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1274,7 +1307,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1314,7 +1350,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1447,7 +1483,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1487,7 +1526,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1620,7 +1659,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1660,7 +1702,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1793,7 +1835,10 @@ export const networkCallsData = [ }, { httpReq: { - headers: { Authorization: 'Bearer trengo_integration_test_api_token' }, + headers: { + Authorization: 'Bearer trengo_integration_test_api_token', + Accept: 'application/json, text/plain, */*', + }, httpAgent: { _events: {}, _eventsCount: 2, @@ -1833,7 +1878,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, diff --git a/test/integrations/destinations/user/network.ts b/test/integrations/destinations/user/network.ts index e9b2c9b3c0..44a90f5911 100644 --- a/test/integrations/destinations/user/network.ts +++ b/test/integrations/destinations/user/network.ts @@ -45,7 +45,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -129,7 +129,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -219,7 +219,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'PUT', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -299,7 +299,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -378,7 +378,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -457,7 +457,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -536,7 +536,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -614,7 +614,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -692,7 +692,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -776,7 +776,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -866,7 +866,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'PUT', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, diff --git a/test/integrations/destinations/yahoo_dsp/network.ts b/test/integrations/destinations/yahoo_dsp/network.ts index 30f423fc99..241d327769 100644 --- a/test/integrations/destinations/yahoo_dsp/network.ts +++ b/test/integrations/destinations/yahoo_dsp/network.ts @@ -43,7 +43,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, diff --git a/test/integrations/destinations/zendesk/network.ts b/test/integrations/destinations/zendesk/network.ts index 21a959fd90..de56493c1f 100644 --- a/test/integrations/destinations/zendesk/network.ts +++ b/test/integrations/destinations/zendesk/network.ts @@ -2,6 +2,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -44,7 +45,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -113,6 +114,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -155,7 +157,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -200,6 +202,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -242,7 +245,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -274,6 +277,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -316,7 +320,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -377,6 +381,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -419,7 +424,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -431,6 +436,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -473,7 +479,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -493,6 +499,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -535,7 +542,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -547,6 +554,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -589,7 +597,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -658,6 +666,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -700,7 +709,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -769,6 +778,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -811,7 +821,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -856,6 +866,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -898,7 +909,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -930,6 +941,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -972,7 +984,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1033,6 +1045,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1075,7 +1088,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1087,6 +1100,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1129,7 +1143,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1190,6 +1204,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1232,7 +1247,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1301,6 +1316,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1343,7 +1359,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1404,6 +1420,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1446,7 +1463,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1476,6 +1493,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1518,7 +1536,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1587,6 +1605,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1629,7 +1648,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1690,6 +1709,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -1732,7 +1752,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1762,6 +1782,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -1804,7 +1825,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1876,6 +1897,7 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -1918,7 +1940,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -1987,6 +2009,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -2029,7 +2052,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2101,6 +2124,7 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -2143,7 +2167,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2212,6 +2236,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -2254,7 +2279,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2326,6 +2351,7 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -2368,7 +2394,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2437,6 +2463,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjQ=', 'Content-Type': 'application/json', }, @@ -2479,18 +2506,19 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + 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: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, @@ -2533,7 +2561,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2553,6 +2581,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, @@ -2595,7 +2624,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2651,6 +2680,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, @@ -2693,14 +2723,14 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + 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: { @@ -2713,6 +2743,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic dGVzdEBydWRkZXIuY29tL3Rva2VuOm15RHVtbXlBcGlUb2tlbjM=', 'Content-Type': 'application/json', }, @@ -2755,7 +2786,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2811,6 +2842,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMi90b2tlbjpteUR1bW15QXBpVG9rZW4y', 'Content-Type': 'application/json', }, @@ -2853,18 +2885,19 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, url: 'https://blendohelp.zendesk.com/api/v2/organization_fields.json', withCredentials: false, }, - httpRes: { error: 'Request failed' }, + httpRes: { error: 'Request failed', status: 200 }, }, { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -2907,7 +2940,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -2976,6 +3009,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -3018,7 +3052,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3087,6 +3121,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -3129,7 +3164,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3191,6 +3226,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic bXlEdW1teVVzZXJOYW1lMS90b2tlbjpteUR1bW15QXBpVG9rZW40', 'Content-Type': 'application/json', }, @@ -3233,7 +3269,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3280,6 +3316,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDFAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -3322,7 +3359,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3342,6 +3379,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDFAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -3384,7 +3422,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3440,6 +3478,7 @@ export const networkCallsData = [ { httpReq: { headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -3482,7 +3521,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'GET', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, @@ -3502,6 +3541,7 @@ export const networkCallsData = [ }, }, headers: { + Accept: 'application/json, text/plain, */*', Authorization: 'Basic cnVkZGVybGFidGVzdDJAZW1haWwuY29tL3Rva2VuOmR1bW15QXBpVG9rZW4=', 'Content-Type': 'application/json', }, @@ -3544,7 +3584,7 @@ export const networkCallsData = [ maxBodyLength: 100000000, maxContentLength: 100000000, maxRedirects: 5, - method: 'get', + method: 'POST', responseEncoding: 'utf8', responseType: 'json', timeout: 60000, diff --git a/test/testHelper.js b/test/testHelper.js index 652ddfc89a..a747252f87 100644 --- a/test/testHelper.js +++ b/test/testHelper.js @@ -10,28 +10,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: ${stringify(reqObj)},httpRes: ${stringify(response)}},`) } } - module.exports = { getFuncTestData, responses, - setResponsesForNwMockGeneration + setResponsesForMockAxiosAdapter }; From 712b99211be8234d4a453fffd44950fcd3554d8e Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 09:35:47 +0530 Subject: [PATCH 02/10] feat: move optimizely fullstack to component test suite --- .../optimizely_fullstack/network.ts | 249 ++++++++ .../optimizely_fullstack/router/data.ts | 561 ++++++++++++++++++ 2 files changed, 810 insertions(+) create mode 100644 test/integrations/destinations/optimizely_fullstack/network.ts create mode 100644 test/integrations/destinations/optimizely_fullstack/router/data.ts diff --git a/test/integrations/destinations/optimizely_fullstack/network.ts b/test/integrations/destinations/optimizely_fullstack/network.ts new file mode 100644 index 0000000000..509663fb05 --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/network.ts @@ -0,0 +1,249 @@ +const deleteNwData = [ + { + httpReq: { + method: 'get', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://cdn.optimizely.com/datafiles/abc.json', + // headers: { + // Accept: 'application/json, text/plain, */*', + // }, + maxContentLength: 100000000, + }, + 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: [], + }, + }, + }, +]; +export const networkCallsData = [...deleteNwData]; 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..2f1e78b85d --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/router/data.ts @@ -0,0 +1,561 @@ +import { FEATURES } from '../../../../../src/v0/util/tags'; + +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, + }, + ], + }, + }, + }, + }, +]; From 1a3a8993eb4422a5e79c18131043fb28926e482c Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 12:18:34 +0530 Subject: [PATCH 03/10] feat: move optimizely fullstack processor tests - 1 --- test/__tests__/data/optimizely_fullstack.json | 448 ---------- .../optimizely_fullstack/network.ts | 71 +- .../optimizely_fullstack/processor/data.ts | 821 ++++++++++++++++++ 3 files changed, 889 insertions(+), 451 deletions(-) create mode 100644 test/integrations/destinations/optimizely_fullstack/processor/data.ts diff --git a/test/__tests__/data/optimizely_fullstack.json b/test/__tests__/data/optimizely_fullstack.json index 1331d38033..30f494efd0 100644 --- a/test/__tests__/data/optimizely_fullstack.json +++ b/test/__tests__/data/optimizely_fullstack.json @@ -1,452 +1,4 @@ [ - { - "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": { diff --git a/test/integrations/destinations/optimizely_fullstack/network.ts b/test/integrations/destinations/optimizely_fullstack/network.ts index 509663fb05..5489b8b4cd 100644 --- a/test/integrations/destinations/optimizely_fullstack/network.ts +++ b/test/integrations/destinations/optimizely_fullstack/network.ts @@ -56,9 +56,6 @@ const deleteNwData = [ }, }, url: 'https://cdn.optimizely.com/datafiles/abc.json', - // headers: { - // Accept: 'application/json, text/plain, */*', - // }, maxContentLength: 100000000, }, httpRes: { @@ -245,5 +242,73 @@ const deleteNwData = [ }, }, }, + { + httpReq: { + method: 'get', + timeout: 60000, + withCredentials: false, + responseType: 'json', + responseEncoding: 'utf8', + maxBodyLength: 100000000, + maxRedirects: 5, + httpAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 80, + protocol: 'http:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + }, + httpsAgent: { + _events: {}, + _eventsCount: 2, + defaultPort: 443, + protocol: 'https:', + options: { + keepAlive: true, + noDelay: true, + path: null, + }, + requests: {}, + sockets: {}, + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: true, + maxSockets: null, + maxFreeSockets: 256, + scheduling: 'lifo', + maxTotalSockets: null, + totalSocketCount: 0, + maxCachedSessions: 100, + _sessionCache: { + map: {}, + list: [], + }, + }, + url: 'https://cdn.optimizely.com/datafiles/wrong_cdn.json', + maxContentLength: 100000000, + }, + 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..33f018249f --- /dev/null +++ b/test/integrations/destinations/optimizely_fullstack/processor/data.ts @@ -0,0 +1,821 @@ +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, + }, + ], + }, + }, + }, +]; From 95b26fb8741272003ff5799a9c43d2e29569f264 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 16:02:03 +0530 Subject: [PATCH 04/10] feat: move optimizely fullstack to component tests - 2 Signed-off-by: Sai Sankeerth --- test/__mocks__/optimizely_fullstack.mock.js | 19 - test/__tests__/data/optimizely_fullstack.json | 1193 --------------- .../data/optimizely_fullstack_router.json | 494 ------ .../optimizely_fullstack-cdk.test.ts | 60 - test/integrations/component.test.ts | 10 + .../optimizely_fullstack/processor/data.ts | 1344 +++++++++++++++++ 6 files changed, 1354 insertions(+), 1766 deletions(-) delete mode 100644 test/__mocks__/optimizely_fullstack.mock.js delete mode 100644 test/__tests__/data/optimizely_fullstack.json delete mode 100644 test/__tests__/data/optimizely_fullstack_router.json delete mode 100644 test/__tests__/optimizely_fullstack-cdk.test.ts 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 30f494efd0..0000000000 --- a/test/__tests__/data/optimizely_fullstack.json +++ /dev/null @@ -1,1193 +0,0 @@ -[ - { - "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/integrations/component.test.ts b/test/integrations/component.test.ts index 208177e504..4e679589c4 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -210,6 +210,16 @@ describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { jest.spyOn(Date.prototype, 'toISOString').mockReturnValue('2023-09-24T11:22:24.018Z'); } + if (tcData.name === 'optimizely_fullstack') { + jest.mock('../../src/v0/util/index', () => { + const originalModule = jest.requireActual('../../src/v0/util/index'); + return { + ...originalModule, + generateUUID: jest.fn(() => 'generated_uuid'), + }; + }); + } + switch (tcData.module) { case tags.MODULES.DESTINATION: await destinationTestHandler(tcData); diff --git a/test/integrations/destinations/optimizely_fullstack/processor/data.ts b/test/integrations/destinations/optimizely_fullstack/processor/data.ts index 33f018249f..36a73ad2ac 100644 --- a/test/integrations/destinations/optimizely_fullstack/processor/data.ts +++ b/test/integrations/destinations/optimizely_fullstack/processor/data.ts @@ -818,4 +818,1348 @@ export const data = [ }, }, }, + + { + 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, + }, + ], + }, + }, + }, ]; From 1b1a008101612ae78704c6aad565a7283e1bf5f2 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 16:05:41 +0530 Subject: [PATCH 05/10] fix: mock uuid in af user deletion test-cases & change place of mocking Signed-off-by: Sai Sankeerth --- test/integrations/component.test.ts | 27 ++++++++++---------- test/integrations/destinations/af/network.ts | 4 +-- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/test/integrations/component.test.ts b/test/integrations/component.test.ts index 4e679589c4..dcfc821fbd 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -199,26 +199,25 @@ const sourceTestHandler = async (tcData) => { // Trigger the test suites describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { // 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) => { + if (testDataPath.includes('yahoo_dsp')) { + // 21 September 2023 19:39:50 GMT+05:30 + Date.now = jest.fn(() => 1695305390000); + } if (tcData.feature === FEATURES.USER_DELETION && tcData.name === 'af') { - utils.generateUUID = jest.fn(() => '97fcd7b2-cc24-47d7-b776-057b7b199513'); jest.spyOn(Date.prototype, 'toISOString').mockReturnValue('2023-09-24T11:22:24.018Z'); } - if (tcData.name === 'optimizely_fullstack') { - jest.mock('../../src/v0/util/index', () => { - const originalModule = jest.requireActual('../../src/v0/util/index'); - return { - ...originalModule, - generateUUID: jest.fn(() => 'generated_uuid'), - }; - }); - } + jest.mock('../../src/v0/util/index', () => { + const originalModule = jest.requireActual('../../src/v0/util/index'); + return { + ...originalModule, + generateUUID: jest.fn().mockImplementation(() => { + return 'generated_uuid'; + }), + }; + }); switch (tcData.module) { case tags.MODULES.DESTINATION: diff --git a/test/integrations/destinations/af/network.ts b/test/integrations/destinations/af/network.ts index 00389b3fa6..42a355e72f 100644 --- a/test/integrations/destinations/af/network.ts +++ b/test/integrations/destinations/af/network.ts @@ -21,7 +21,7 @@ export const networkCallsData = [ }, ], property_id: 'AnAID', - subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', + subject_request_id: 'generated_uuid', submitted_time: '2023-09-24T11:22:24.018Z', }, }), @@ -51,7 +51,7 @@ export const networkCallsData = [ ], status_callback_urls: ['https://examplecontroller.com/opengdpr_callbacks'], property_id: '123456789', - subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', + subject_request_id: 'generated_uuid', submitted_time: '2023-09-24T11:22:24.018Z', }, headers: { From 7514d020b916ec1d7b495317aa5c60729c202a32 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 16:13:33 +0530 Subject: [PATCH 06/10] fix: post migration to component tests remove optimizely mock from global axios mock --- test/__mocks__/axios.js | 2 -- 1 file changed, 2 deletions(-) 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"); From bdb6f5c8376fba7e811b85f1463f72e7e6d1ff8f Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 16:29:45 +0530 Subject: [PATCH 07/10] fix: remove unused fast-json-stable-stringify Signed-off-by: Sai Sankeerth --- package-lock.json | 1 - package.json | 1 - test/integrations/testUtils.ts | 1 - test/testHelper.js | 3 +-- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index b03c5824a5..f0c6c90ebd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,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", diff --git a/package.json b/package.json index 699063025c..54367babeb 100644 --- a/package.json +++ b/package.json @@ -136,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/test/integrations/testUtils.ts b/test/integrations/testUtils.ts index 1f7893de38..9b65e76c92 100644 --- a/test/integrations/testUtils.ts +++ b/test/integrations/testUtils.ts @@ -1,7 +1,6 @@ import { globSync } from 'glob'; import { join } from 'path'; import { MockHttpCallsData, TestCaseData } from './testTypes'; -import stringify from 'fast-json-stable-stringify'; export const getTestDataFilePaths = (dirPath: string, destination: string = ''): string[] => { const globPattern = join(dirPath, '**', 'data.ts'); diff --git a/test/testHelper.js b/test/testHelper.js index a747252f87..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)); @@ -16,7 +15,7 @@ const setResponsesForMockAxiosAdapter = ({url, method, data, options}, {response if (data) { reqObj.data = data } - responses.push(`{httpReq: ${stringify(reqObj)},httpRes: ${stringify(response)}},`) + responses.push(`{httpReq: ${JSON.stringify(reqObj)},httpRes: ${JSON.stringify(response)}},`) } } module.exports = { From 2029fb45e90e3a47d5486d9d610aabfc37d512f9 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 23:18:44 +0530 Subject: [PATCH 08/10] fix: remove unnecessary extra properties in all network mock requests Signed-off-by: Sai Sankeerth --- src/adapters/network.js | 24 +- src/v0/destinations/canny/util.js | 15 +- src/v0/destinations/yahoo_dsp/util.js | 6 +- test/integrations/component.test.ts | 17 +- .../destinations/active_campaign/network.ts | 1774 +---------------- test/integrations/destinations/af/network.ts | 13 +- test/integrations/destinations/am/network.ts | 220 -- .../destinations/braze/network.ts | 220 -- .../destinations/canny/network.ts | 147 +- .../destinations/clevertap/network.ts | 109 - .../destinations/engage/network.ts | 602 +----- test/integrations/destinations/ga/network.ts | 486 ----- .../destinations/intercom/network.ts | 216 -- .../marketo_static_list/network.ts | 43 - .../destinations/mautic/network.ts | 264 --- test/integrations/destinations/mp/network.ts | 332 +-- .../optimizely_fullstack/network.ts | 108 - .../destinations/pardot/network.ts | 20 +- .../destinations/sendgrid/network.ts | 330 --- .../destinations/trengo/network.ts | 690 +------ .../integrations/destinations/user/network.ts | 506 +---- .../destinations/yahoo_dsp/network.ts | 49 +- .../destinations/zendesk/network.ts | 1771 ---------------- 23 files changed, 220 insertions(+), 7742 deletions(-) diff --git a/src/adapters/network.js b/src/adapters/network.js index 2aa27c7217..45c56bf408 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -96,7 +96,7 @@ const httpSend = async (options, statTags = {}) => { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter({ url, data, method, options: opts }, clientResponse); + setResponsesForMockAxiosAdapter({ url, data, method, options }, clientResponse); return clientResponse; }; @@ -122,7 +122,7 @@ const httpGET = async (url, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter({ url, options: requestOptions, method: 'GET' }, clientResponse); + setResponsesForMockAxiosAdapter({ url, options, method: 'GET' }, clientResponse); return clientResponse; }; @@ -148,10 +148,7 @@ const httpDELETE = async (url, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter( - { url, options: requestOptions, method: 'DELETE' }, - clientResponse, - ); + setResponsesForMockAxiosAdapter({ url, options, method: 'DELETE' }, clientResponse); return clientResponse; }; @@ -178,10 +175,7 @@ const httpPOST = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter( - { url, data, options: requestOptions, method: 'POST' }, - clientResponse, - ); + setResponsesForMockAxiosAdapter({ url, data, options, method: 'POST' }, clientResponse); return clientResponse; }; @@ -208,10 +202,7 @@ const httpPUT = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter( - { url, data, options: requestOptions, method: 'PUT' }, - clientResponse, - ); + setResponsesForMockAxiosAdapter({ url, data, options, method: 'PUT' }, clientResponse); return clientResponse; }; @@ -238,10 +229,7 @@ const httpPATCH = async (url, data, options, statTags = {}) => { } finally { fireHTTPStats(clientResponse, startTime, statTags); } - setResponsesForMockAxiosAdapter( - { url, data, options: requestOptions, method: 'PATCH' }, - 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/integrations/component.test.ts b/test/integrations/component.test.ts index dcfc821fbd..4e4d6f17cd 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -21,6 +21,7 @@ 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 @@ -79,26 +80,32 @@ if (!opts.generate || opts.generate === 'false') { 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, opts.headers).reply(status, data, headers); + mock.onGet(url, reqData, headersAsymMatch).reply(status, data, headers); break; case 'delete': // @ts-ignore - mock.onDelete(url, reqData, opts.headers).reply(status, data, headers); + mock.onDelete(url, reqData, headersAsymMatch).reply(status, data, headers); break; case 'post': // @ts-ignore - mock.onPost(url, reqData, opts.headers).reply(status, data, headers); + mock.onPost(url, reqData, headersAsymMatch).reply(status, data, headers); break; case 'patch': // @ts-ignore - mock.onPatch(url, reqData, opts.headers).reply(status, data, headers); + mock.onPatch(url, reqData, headersAsymMatch).reply(status, data, headers); break; case 'put': // @ts-ignore - mock.onPut(url, reqData, opts.headers).reply(status, data, headers); + mock.onPut(url, reqData, headersAsymMatch).reply(status, data, headers); break; default: break; diff --git a/test/integrations/destinations/active_campaign/network.ts b/test/integrations/destinations/active_campaign/network.ts index 1b950447e5..34834096b1 100644 --- a/test/integrations/destinations/active_campaign/network.ts +++ b/test/integrations/destinations/active_campaign/network.ts @@ -12,53 +12,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -126,53 +84,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -243,55 +159,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -366,55 +240,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -489,55 +321,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -556,55 +346,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 1 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -623,55 +371,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 2 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -692,53 +398,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, @@ -748,104 +412,21 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { headers: { Accept: 'application/json, text/plain, */*', '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, + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -986,53 +567,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -1101,53 +640,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, @@ -1157,104 +654,21 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { headers: { Accept: 'application/json, text/plain, */*', '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, + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -1395,53 +809,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -1509,53 +881,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -1626,55 +956,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -1749,55 +1037,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -1872,55 +1118,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -1939,55 +1143,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 6 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -2006,55 +1168,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 7 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -2075,53 +1195,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, @@ -2131,104 +1209,21 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { headers: { Accept: 'application/json, text/plain, */*', '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, + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -2360,54 +1355,13 @@ export const networkCallsData = [ httpReq: { headers: { 'Api-Token': 'dummyApiKey', - Accept: 'application/json, text/plain, */*', + '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://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { @@ -2421,106 +1375,23 @@ export const networkCallsData = [ httpReq: { data: { eventTrackingEvent: { name: 'ScreenViewed' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { eventTrackingEvent: { name: 'ScreenViewed' } }, status: 201 }, }, { httpReq: { headers: { 'Api-Token': 'dummyApiKey', Accept: 'application/json, text/plain, */*' }, - 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://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { @@ -2536,53 +1407,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/eventTrackingEvents', - withCredentials: false, }, httpRes: { data: { eventTrackingEvent: { name: 'Tracking Action' } }, status: 201 }, }, @@ -2592,53 +1421,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contact/sync', - withCredentials: false, }, httpRes: { data: { @@ -2704,55 +1491,13 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', '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, + url: 'https://active.campaigns.rudder.com/api/3/tags?limit=100', - withCredentials: false, }, httpRes: { data: { @@ -2823,55 +1568,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Test_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -2946,55 +1649,13 @@ export const networkCallsData = [ httpReq: { data: { tag: { description: '', tag: 'Interested_User', tagType: 'contact' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/tags', - withCredentials: false, }, httpRes: { data: { @@ -3069,55 +1730,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: '5' } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3136,55 +1755,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 11 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3203,55 +1780,13 @@ export const networkCallsData = [ httpReq: { data: { contactTag: { contact: '2', tag: 12 } }, headers: { - Accept: 'application/json, text/plain, */*', '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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactTags', - withCredentials: false, }, httpRes: { data: { @@ -3272,53 +1807,11 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 2, status: '1' } }, status: 200 }, }, @@ -3328,104 +1821,21 @@ export const networkCallsData = [ headers: { 'Api-Token': 'dummyApiKey', 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + url: 'https://active.campaigns.rudder.com/api/3/contactLists', - withCredentials: false, }, httpRes: { data: { contactList: { contact: '2', list: 3, status: '2' } }, status: 200 }, }, { httpReq: { headers: { Accept: 'application/json, text/plain, */*', '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, + url: 'https://active.campaigns.rudder.com/api/3/fields?limit=100', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/af/network.ts b/test/integrations/destinations/af/network.ts index 42a355e72f..8c8da3fbb6 100644 --- a/test/integrations/destinations/af/network.ts +++ b/test/integrations/destinations/af/network.ts @@ -1,14 +1,13 @@ -import { enhanceRequestOptions } from '../../../../src/adapters/network'; import { JSON_MIME_TYPE } from '../../../../src/v0/util/constant'; export const networkCallsData = [ { - httpReq: enhanceRequestOptions({ + httpReq: { method: 'post', url: 'https://hq1.appsflyer.com/api/gdpr/v1/opendsr_request', headers: { 'Content-Type': JSON_MIME_TYPE, - Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer dummyApiToken', }, data: { @@ -24,7 +23,7 @@ export const networkCallsData = [ subject_request_id: 'generated_uuid', submitted_time: '2023-09-24T11:22:24.018Z', }, - }), + }, httpRes: { data: { error: { @@ -37,7 +36,7 @@ export const networkCallsData = [ }, }, { - httpReq: enhanceRequestOptions({ + httpReq: { method: 'post', url: 'https://hq1.appsflyer.com/api/gdpr/v1/opendsr_request', data: { @@ -56,10 +55,10 @@ export const networkCallsData = [ }, headers: { 'Content-Type': JSON_MIME_TYPE, - Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer dummyApiToken', }, - }), + }, httpRes: { status: 200, statusText: 'success', diff --git a/test/integrations/destinations/am/network.ts b/test/integrations/destinations/am/network.ts index 2cd1aa27a0..81daa29621 100644 --- a/test/integrations/destinations/am/network.ts +++ b/test/integrations/destinations/am/network.ts @@ -2,59 +2,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://amplitude.com/api/2/deletions/users', data: { user_ids: [ @@ -163,11 +110,9 @@ const deleteNwData = [ ignore_invalid_id: 'true', }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Basic MTIzNDphYmNk', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -181,59 +126,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://amplitude.com/api/2/deletions/users', data: { user_ids: [ @@ -261,11 +153,9 @@ const deleteNwData = [ ignore_invalid_id: 'true', }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Basic MTIzNDphYmNk', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -278,69 +168,14 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://amplitude.com/api/2/deletions/users', data: { userIds: ['Batch1'], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Basic MTIzNDphYmNk', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -353,69 +188,14 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://amplitude.com/api/2/deletions/users', data: { userIds: ['Batch2'], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Basic MTIzNDphYmNk', }, - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/braze/network.ts b/test/integrations/destinations/braze/network.ts index df95da1340..4dfd5fa2a5 100644 --- a/test/integrations/destinations/braze/network.ts +++ b/test/integrations/destinations/braze/network.ts @@ -2,59 +2,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://rest.iad-03.braze.com/users/delete', data: { external_ids: [ @@ -111,11 +58,9 @@ const deleteNwData = [ ], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -129,59 +74,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://rest.iad-03.braze.com/users/delete', data: { external_ids: [ @@ -238,11 +130,9 @@ const deleteNwData = [ ], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -256,67 +146,12 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://rest.iad-03.braze.com/users/delete', data: { external_ids: ['test_user_id51'] }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -332,69 +167,14 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://rest.iad-03.braze.com/users/delete', data: { externalIds: ['test_user_id'], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/canny/network.ts b/test/integrations/destinations/canny/network.ts index feef6ba7c4..db1b639632 100644 --- a/test/integrations/destinations/canny/network.ts +++ b/test/integrations/destinations/canny/network.ts @@ -1,54 +1,13 @@ export const networkCallsData = [ { httpReq: { - Accept: 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded', - data: 'apiKey=apikey123&email=test%40rudderstack.com', - 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, + data: 'apiKey=apikey123&email=test%40rudderstack.com', method: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://canny.io/api/v1/users/retrieve', - withCredentials: false, }, httpRes: { data: { @@ -69,54 +28,13 @@ export const networkCallsData = [ }, { httpReq: { - Accept: 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded', - data: 'apiKey=apikey123&email=test%40rudderstack.com', - 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, + data: 'apiKey=apikey123&email=test%40rudderstack.com', method: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://canny.io/api/v1/users/retrieve', - withCredentials: false, }, httpRes: { data: { @@ -137,54 +55,13 @@ export const networkCallsData = [ }, { httpReq: { - Accept: 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded', - data: 'apiKey=apikey123&email=test%40rudderstack.com', - 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: { + Accept: 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', }, - 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, + data: 'apiKey=apikey123&email=test%40rudderstack.com', method: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://canny.io/api/v1/users/retrieve', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/clevertap/network.ts b/test/integrations/destinations/clevertap/network.ts index d797f2d1ff..458d6faba0 100644 --- a/test/integrations/destinations/clevertap/network.ts +++ b/test/integrations/destinations/clevertap/network.ts @@ -2,59 +2,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.clevertap.com/1/delete/profiles.json', data: { identity: [ @@ -161,12 +108,10 @@ const deleteNwData = [ ], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'X-CleverTap-Account-Id': 'testFail', 'X-CleverTap-Passcode': 'tofail', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -180,59 +125,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.clevertap.com/1/delete/profiles.json', data: { identity: [ @@ -265,7 +157,6 @@ const deleteNwData = [ ], }, headers: { - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'X-CleverTap-Account-Id': 'testFail', 'X-CleverTap-Passcode': 'tofail', diff --git a/test/integrations/destinations/engage/network.ts b/test/integrations/destinations/engage/network.ts index 9acd667d53..a675603d4e 100644 --- a/test/integrations/destinations/engage/network.ts +++ b/test/integrations/destinations/engage/network.ts @@ -2,61 +2,7 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.engage.so/v1/users/1', - maxContentLength: 100000000, }, httpRes: { data: { @@ -70,61 +16,7 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.engage.so/v1/users/2', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -134,61 +26,7 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.engage.so/v1/users/3', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -198,61 +36,8 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/4', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -262,61 +47,8 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/5', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -326,63 +58,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/6', 'Content-Type': 'application/json', Authorization: 'Basic YWJjZDplZmdo', - maxContentLength: 100000000, }, httpRes: { data: { @@ -396,63 +75,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/7', 'Content-Type': 'application/json', Authorization: 'Basic YWJjZDplZmdo', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -462,63 +88,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/8', 'Content-Type': 'application/json', Authorization: 'Basic YWJjZDplZmdo', - maxContentLength: 100000000, }, httpRes: { data: { @@ -532,63 +105,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/9', 'Content-Type': 'application/json', Authorization: 'Basic YWJjZDplZmdo', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -598,61 +118,8 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/12', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -662,61 +129,8 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.engage.so/v1/users/user_sdk2', - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/ga/network.ts b/test/integrations/destinations/ga/network.ts index c00180a404..bef0b7a047 100644 --- a/test/integrations/destinations/ga/network.ts +++ b/test/integrations/destinations/ga/network.ts @@ -2,59 +2,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -69,7 +16,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -88,59 +34,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -155,7 +48,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -174,59 +66,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -241,7 +80,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -259,59 +97,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -326,7 +111,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -344,59 +128,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -411,7 +142,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -430,59 +160,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -497,7 +174,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -516,59 +192,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -583,7 +206,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -606,59 +228,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -673,7 +242,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -692,59 +260,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert', data: { kind: 'analytics#userDeletionRequest', @@ -759,7 +274,6 @@ const deleteNwData = [ Accept: 'application/json', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { diff --git a/test/integrations/destinations/intercom/network.ts b/test/integrations/destinations/intercom/network.ts index 45e5921420..9f064d63ea 100644 --- a/test/integrations/destinations/intercom/network.ts +++ b/test/integrations/destinations/intercom/network.ts @@ -2,59 +2,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.intercom.io/user_delete_requests', data: { intercom_user_id: '1', @@ -64,7 +11,6 @@ const deleteNwData = [ Authorization: 'Bearer API_KEY', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -83,59 +29,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.intercom.io/user_delete_requests', data: { intercom_user_id: '12', @@ -145,7 +38,6 @@ const deleteNwData = [ Authorization: 'Bearer API_KEY', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -158,59 +50,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.intercom.io/user_delete_requests', data: { intercom_user_id: '7', @@ -220,7 +59,6 @@ const deleteNwData = [ Authorization: 'Bearer API_KEY', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -233,59 +71,6 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://api.intercom.io/user_delete_requests', data: { intercom_user_id: '9', @@ -295,7 +80,6 @@ const deleteNwData = [ Authorization: 'Bearer API_KEY', 'Content-Type': 'application/json', }, - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/marketo_static_list/network.ts b/test/integrations/destinations/marketo_static_list/network.ts index 6e5e2886f6..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', 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 cb90ade2e5..593a630641 100644 --- a/test/integrations/destinations/mautic/network.ts +++ b/test/integrations/destinations/mautic/network.ts @@ -2,165 +2,33 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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 }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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 }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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,55 +674,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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: { @@ -1500,55 +1324,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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: { @@ -3441,55 +3221,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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/network.ts b/test/integrations/destinations/mp/network.ts index c2a294a54e..a386451a21 100644 --- a/test/integrations/destinations/mp/network.ts +++ b/test/integrations/destinations/mp/network.ts @@ -2,59 +2,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.mixpanel.com/engage', data: [ { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, @@ -1062,7 +1010,6 @@ const deleteNwData = [ 'Content-Type': 'application/json', Accept: 'text/plain', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -1076,59 +1023,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.mixpanel.com/engage', data: [ { $distinct_id: 'rudder1', $token: 'testToken', $delete: null, $ignore_alias: true }, @@ -1138,7 +1033,6 @@ const deleteNwData = [ 'Content-Type': 'application/json', Accept: 'text/plain', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -1151,59 +1045,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api.mixpanel.com/engage', data: [ { @@ -1223,7 +1065,6 @@ const deleteNwData = [ 'Content-Type': 'application/json', Accept: 'text/plain', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -1236,59 +1077,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token', data: { distinct_ids: ['rudder1', 'rudder2', 'rudder3'], @@ -1296,10 +1085,9 @@ const deleteNwData = [ }, headers: { 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', + Authorization: 'Bearer test_gdpr_token', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -1312,59 +1100,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://mixpanel.com/api/app/data-deletions/v3.0/?token=test_token', data: { distinct_ids: ['rudder2'], @@ -1375,7 +1111,6 @@ const deleteNwData = [ Accept: 'text/plain', Authorization: 'Bearer test_gdpr_token', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -1388,59 +1123,7 @@ const deleteNwData = [ { httpReq: { method: 'post', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, + url: 'https://api-eu.mixpanel.com/engage', data: [ { @@ -1454,7 +1137,6 @@ const deleteNwData = [ 'Content-Type': 'application/json', Accept: 'text/plain', }, - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/optimizely_fullstack/network.ts b/test/integrations/destinations/optimizely_fullstack/network.ts index 5489b8b4cd..e6a1101ab9 100644 --- a/test/integrations/destinations/optimizely_fullstack/network.ts +++ b/test/integrations/destinations/optimizely_fullstack/network.ts @@ -2,61 +2,7 @@ const deleteNwData = [ { httpReq: { method: 'get', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://cdn.optimizely.com/datafiles/abc.json', - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -245,61 +191,7 @@ const deleteNwData = [ { httpReq: { method: 'get', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, url: 'https://cdn.optimizely.com/datafiles/wrong_cdn.json', - maxContentLength: 100000000, }, httpRes: { status: 404, diff --git a/test/integrations/destinations/pardot/network.ts b/test/integrations/destinations/pardot/network.ts index 2b62523b66..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', @@ -15,14 +15,13 @@ export const networkCallsData = [ }).toString(), params: { destination: 'pardot' }, headers: { - Accept: 'application/json, text/plain, */*', 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': { @@ -138,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', @@ -151,13 +150,12 @@ export const networkCallsData = [ params: { destination: 'pardot' }, headers: { Authorization: 'Bearer myExpiredToken', - Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Pardot-Business-Unit-Id': '0Uv2v000000k9tHCAQ', 'User-Agent': 'RudderLabs', }, method: 'POST', - }), + }, httpRes: { data: { '@attributes': { @@ -173,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', @@ -185,14 +183,13 @@ export const networkCallsData = [ }).toString(), params: { destination: 'pardot' }, headers: { - Accept: 'application/json, text/plain, */*', 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': { @@ -308,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', @@ -320,14 +317,13 @@ export const networkCallsData = [ }).toString(), params: { destination: 'pardot' }, headers: { - Accept: 'application/json, text/plain, */*', 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/network.ts b/test/integrations/destinations/sendgrid/network.ts index 8a85b6dba8..18a8a8d34d 100644 --- a/test/integrations/destinations/sendgrid/network.ts +++ b/test/integrations/destinations/sendgrid/network.ts @@ -2,65 +2,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -75,65 +20,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { data: { @@ -147,65 +37,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -220,65 +55,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -293,65 +73,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, @@ -366,65 +91,10 @@ const deleteNwData = [ { httpReq: { method: 'delete', - timeout: 60000, - withCredentials: false, - responseType: 'json', - responseEncoding: 'utf8', - maxBodyLength: 100000000, - maxRedirects: 5, - httpAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 80, - protocol: 'http:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - }, - httpsAgent: { - _events: {}, - _eventsCount: 2, - defaultPort: 443, - protocol: 'https:', - options: { - keepAlive: true, - noDelay: true, - path: null, - }, - requests: {}, - sockets: {}, - freeSockets: {}, - keepAliveMsecs: 1000, - keepAlive: true, - maxSockets: null, - maxFreeSockets: 256, - scheduling: 'lifo', - maxTotalSockets: null, - totalSocketCount: 0, - maxCachedSessions: 100, - _sessionCache: { - map: {}, - list: [], - }, - }, 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: { - Accept: 'application/json, text/plain, */*', Authorization: 'Bearer 1234', }, - maxContentLength: 100000000, }, httpRes: { status: 200, diff --git a/test/integrations/destinations/trengo/network.ts b/test/integrations/destinations/trengo/network.ts index d57a4562bf..e409489b8f 100644 --- a/test/integrations/destinations/trengo/network.ts +++ b/test/integrations/destinations/trengo/network.ts @@ -3,53 +3,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', }, - 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://app.trengo.com/api/v2/contacts?page=1&term=9830311521', - withCredentials: false, }, httpRes: { data: { @@ -123,53 +81,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=j@d.com', - withCredentials: false, }, httpRes: { data: { @@ -195,53 +111,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', }, - 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://app.trengo.com/api/v2/contacts?page=1&term=j@d.com', - withCredentials: false, }, httpRes: { data: { @@ -267,53 +141,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=null', - withCredentials: false, }, httpRes: { data: { error: 'Request failed', status: 404 }, status: 200 }, }, @@ -321,53 +153,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', }, - 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://app.trengo.com/api/v2/contacts?page=1&term=12345678910', - withCredentials: false, }, httpRes: { data: { @@ -393,53 +183,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=99999666661', - withCredentials: false, }, httpRes: { data: { error: 'Request failed', status: 404 }, status: 200 }, }, @@ -447,53 +195,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', }, - 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://app.trengo.com/api/v2/contacts?page=1&term=98765432100', - withCredentials: false, }, httpRes: { data: { @@ -614,53 +320,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -790,53 +454,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -966,53 +588,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=98765432100', - withCredentials: false, }, httpRes: { data: { @@ -1133,53 +713,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1309,53 +847,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1485,53 +981,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1661,53 +1115,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://app.trengo.com/api/v2/contacts?page=1&term=test@outlook.com', - withCredentials: false, }, httpRes: { data: { @@ -1837,53 +1249,11 @@ export const networkCallsData = [ httpReq: { headers: { Authorization: 'Bearer trengo_integration_test_api_token', - Accept: 'application/json, text/plain, */*', - }, - 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://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 44a90f5911..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, + 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, + 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: 'PUT', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + 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, + 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, + 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, + 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, + 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, + 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, + 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, + 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: 'PUT', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, + 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 241d327769..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, + 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', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://id.b2b.yahooinc.com/identity/oauth2/access_token', - withCredentials: false, }, httpRes: { data: { diff --git a/test/integrations/destinations/zendesk/network.ts b/test/integrations/destinations/zendesk/network.ts index de56493c1f..bc80f0cd0a 100644 --- a/test/integrations/destinations/zendesk/network.ts +++ b/test/integrations/destinations/zendesk/network.ts @@ -2,55 +2,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -114,55 +70,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -202,55 +114,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/organizations/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -277,55 +145,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -381,110 +205,22 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2//users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { error: 'Request failed' }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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 }, }, @@ -499,110 +235,22 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabtest2.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { user: {} }, status: 200 }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -666,55 +314,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -778,55 +382,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -866,55 +426,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/organizations/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -941,55 +457,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1045,110 +517,22 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2//users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { error: 'Request failed' }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1204,55 +588,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1316,55 +656,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1420,55 +716,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { data: { @@ -1493,55 +745,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1605,55 +813,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=example124@email.com', - withCredentials: false, }, httpRes: { data: { @@ -1709,55 +873,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/organization_memberships.json', - withCredentials: false, }, httpRes: { data: { @@ -1782,55 +902,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -1897,55 +973,11 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2009,55 +1041,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2124,55 +1112,11 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2236,55 +1180,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2351,55 +1251,11 @@ export const networkCallsData = [ user_field: { active: true, description: 'country', key: 'country', title: 'country' }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -2463,113 +1319,14 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=johnwick@example.com', - withCredentials: false, }, httpRes: { error: 'Request failed', status: 200 }, }, - { - httpReq: { - headers: { - Accept: 'application/json, text/plain, */*', - 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' }, - }, { httpReq: { data: { @@ -2581,55 +1338,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -2680,55 +1393,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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', status: 200 }, }, @@ -2743,55 +1412,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -2842,110 +1467,22 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://blendohelp.zendesk.com/api/v2/organization_fields.json', - withCredentials: false, }, httpRes: { error: 'Request failed', status: 200 }, }, { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -3009,55 +1546,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/user_fields.json', - withCredentials: false, }, httpRes: { data: { @@ -3121,55 +1614,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/search.json?query=abcd-144', - withCredentials: false, }, httpRes: { data: { @@ -3226,55 +1675,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, url: 'https://rudderlabshelp.zendesk.com/api/v2/users/900113780483/identities', - withCredentials: false, }, httpRes: { data: { @@ -3316,55 +1721,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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 }, }, @@ -3379,55 +1740,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabtest1.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { @@ -3478,55 +1795,11 @@ export const networkCallsData = [ { httpReq: { headers: { - Accept: 'application/json, text/plain, */*', 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, 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 }, }, @@ -3541,55 +1814,11 @@ export const networkCallsData = [ }, }, headers: { - Accept: 'application/json, text/plain, */*', 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: 'POST', - responseEncoding: 'utf8', - responseType: 'json', - timeout: 60000, url: 'https://rudderlabtest2.zendesk.com/api/v2/users/create_or_update.json', - withCredentials: false, }, httpRes: { data: { user: {} }, status: 200 }, }, From cb2205e92c4b2e7d2b9003e488d1f413832c730a Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Tue, 26 Sep 2023 12:30:14 +0530 Subject: [PATCH 09/10] fix: remove unused variable Signed-off-by: Sai Sankeerth --- src/adapters/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/network.js b/src/adapters/network.js index 45c56bf408..5ee62029a3 100644 --- a/src/adapters/network.js +++ b/src/adapters/network.js @@ -86,7 +86,7 @@ const httpSend = async (options, statTags = {}) => { const requestOptions = enhanceRequestOptions(options); const startTime = new Date(); - const { url, data, method, ...opts } = requestOptions; + const { url, data, method } = requestOptions; try { const response = await axios(requestOptions); clientResponse = { success: true, response }; From 66b99dc2c07d1324cf296ede6cad6cc1b8cfb0e4 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Wed, 27 Sep 2023 14:49:42 +0530 Subject: [PATCH 10/10] feat: add support to add all kinds of mocks at test-case level Signed-off-by: Sai Sankeerth --- test/integrations/component.test.ts | 59 +++---------------- .../destinations/af/deleteUsers/data.ts | 20 +++++++ test/integrations/destinations/af/network.ts | 4 +- .../optimizely_fullstack/processor/data.ts | 7 ++- .../optimizely_fullstack/router/data.ts | 2 + .../destinations/yahoo_dsp/processor/data.ts | 12 +++- .../destinations/yahoo_dsp/router/data.ts | 3 + test/integrations/testTypes.ts | 6 +- test/integrations/testUtils.ts | 38 ++++++++++++ 9 files changed, 93 insertions(+), 58 deletions(-) diff --git a/test/integrations/component.test.ts b/test/integrations/component.test.ts index 4e4d6f17cd..5e011e4115 100644 --- a/test/integrations/component.test.ts +++ b/test/integrations/component.test.ts @@ -15,6 +15,7 @@ import { getTestData, getMockHttpCallsData, getAllTestMockDataFilePaths, + addMock, } from './testUtils'; import tags, { FEATURES } from '../../src/v0/util/tags'; import { Server } from 'http'; @@ -76,46 +77,13 @@ if (!opts.generate || opts.generate === 'false') { // unmock already existing axios-mocking mock = new MockAxiosAdapter(axios, { onNoMatch: 'passthrough' }); const registerAxiosMocks = (axiosMocks: MockHttpCallsData[]) => { - axiosMocks.forEach((axiosMock) => { - 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; - } - }); + axiosMocks.forEach((axiosMock) => addMock(mock, axiosMock)); }; // // all the axios requests will be stored in this map const allTestMockDataFilePaths = getAllTestMockDataFilePaths(__dirname, opts.destination); const allAxiosRequests = allTestMockDataFilePaths + .filter((d) => !d.includes('/af/')) .map((currPath) => { const mockNetworkCallsData: MockHttpCallsData[] = getMockHttpCallsData(currPath); return mockNetworkCallsData; @@ -205,26 +173,13 @@ const sourceTestHandler = async (tcData) => { // Trigger the test suites describe.each(allTestDataFilePaths)('%s Tests', (testDataPath) => { + beforeEach(() => { + jest.clearAllMocks(); + }); // add special mocks for specific destinations const testData: TestCaseData[] = getTestData(testDataPath); test.each(testData)('$name - $module - $feature -> $description', async (tcData) => { - if (testDataPath.includes('yahoo_dsp')) { - // 21 September 2023 19:39:50 GMT+05:30 - Date.now = jest.fn(() => 1695305390000); - } - if (tcData.feature === FEATURES.USER_DELETION && tcData.name === 'af') { - jest.spyOn(Date.prototype, 'toISOString').mockReturnValue('2023-09-24T11:22:24.018Z'); - } - - jest.mock('../../src/v0/util/index', () => { - const originalModule = jest.requireActual('../../src/v0/util/index'); - return { - ...originalModule, - generateUUID: jest.fn().mockImplementation(() => { - return 'generated_uuid'; - }), - }; - }); + tcData?.mockFns?.(mock); switch (tcData.module) { case tags.MODULES.DESTINATION: diff --git a/test/integrations/destinations/af/deleteUsers/data.ts b/test/integrations/destinations/af/deleteUsers/data.ts index 64976fdee4..c552b79f67 100644 --- a/test/integrations/destinations/af/deleteUsers/data.ts +++ b/test/integrations/destinations/af/deleteUsers/data.ts @@ -1,5 +1,15 @@ 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: { @@ -237,6 +247,11 @@ export const data = [ ], }, }, + mockFns: (mockAdapter: MockAdapter) => { + const nwData = networkCallsData[0]; + addMock(mockAdapter, nwData); + defaultMockFns(); + }, }, { name: 'af', @@ -277,6 +292,11 @@ export const data = [ ], }, }, + 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 index 8c8da3fbb6..2e9557539e 100644 --- a/test/integrations/destinations/af/network.ts +++ b/test/integrations/destinations/af/network.ts @@ -20,7 +20,7 @@ export const networkCallsData = [ }, ], property_id: 'AnAID', - subject_request_id: 'generated_uuid', + subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', submitted_time: '2023-09-24T11:22:24.018Z', }, }, @@ -50,7 +50,7 @@ export const networkCallsData = [ ], status_callback_urls: ['https://examplecontroller.com/opengdpr_callbacks'], property_id: '123456789', - subject_request_id: 'generated_uuid', + subject_request_id: '97fcd7b2-cc24-47d7-b776-057b7b199513', submitted_time: '2023-09-24T11:22:24.018Z', }, headers: { diff --git a/test/integrations/destinations/optimizely_fullstack/processor/data.ts b/test/integrations/destinations/optimizely_fullstack/processor/data.ts index 36a73ad2ac..47ce3314fd 100644 --- a/test/integrations/destinations/optimizely_fullstack/processor/data.ts +++ b/test/integrations/destinations/optimizely_fullstack/processor/data.ts @@ -1,3 +1,8 @@ +import utils from '../../../../../src/v0/util'; +export const mockFns = (_) => { + // @ts-ignore + jest.spyOn(utils, 'generateUUID').mockImplementation(() => 'generated_uuid'); +}; export const data = [ { name: 'optimizely_fullstack', @@ -2162,4 +2167,4 @@ export const data = [ }, }, }, -]; +].map((d) => ({ ...d, mockFns })); diff --git a/test/integrations/destinations/optimizely_fullstack/router/data.ts b/test/integrations/destinations/optimizely_fullstack/router/data.ts index 2f1e78b85d..1803881f30 100644 --- a/test/integrations/destinations/optimizely_fullstack/router/data.ts +++ b/test/integrations/destinations/optimizely_fullstack/router/data.ts @@ -1,4 +1,5 @@ import { FEATURES } from '../../../../../src/v0/util/tags'; +import { mockFns } from '../processor/data'; export const data = [ { @@ -557,5 +558,6 @@ export const data = [ }, }, }, + mockFns, }, ]; 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/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 9b65e76c92..8511ac41f4 100644 --- a/test/integrations/testUtils.ts +++ b/test/integrations/testUtils.ts @@ -1,6 +1,8 @@ import { globSync } from 'glob'; import { join } from 'path'; import { MockHttpCallsData, TestCaseData } from './testTypes'; +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'); @@ -27,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; + } +};