From 2029fb45e90e3a47d5486d9d610aabfc37d512f9 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Mon, 25 Sep 2023 23:18:44 +0530 Subject: [PATCH] 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 }, },