diff --git a/.gitignore b/.gitignore
index 84421f49d9..e52af90cc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -139,4 +139,8 @@ dist
# component test report
test_reports/
-temp/
\ No newline at end of file
+temp/
+
+# Allure
+allure-results/
+allure-report/
\ No newline at end of file
diff --git a/jest.config.typescript.js b/jest.config.typescript.js
index 7350f1e19d..35997cb70c 100644
--- a/jest.config.typescript.js
+++ b/jest.config.typescript.js
@@ -128,7 +128,7 @@ module.exports = {
// snapshotSerializers: [],
// The test environment that will be used for testing
- testEnvironment: 'node',
+ testEnvironment: 'allure-jest/node',
// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
diff --git a/package-lock.json b/package-lock.json
index 5f9e7229f6..0e84952a42 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -90,6 +90,7 @@
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.59.2",
+ "allure-jest": "^3.0.7",
"axios-mock-adapter": "^1.22.0",
"benchmark-suite": "^0.1.8",
"commander": "^10.0.1",
@@ -109,6 +110,8 @@
"http-terminator": "^3.2.0",
"husky": "^9.1.6",
"jest": "^29.5.0",
+ "jest-diff": "^29.7.0",
+ "jest-environment-node": "^29.7.0",
"jest-sonar": "^0.2.16",
"jest-when": "^3.5.2",
"lint-staged": "^13.2.2",
@@ -8201,6 +8204,56 @@
}
}
},
+ "node_modules/allure-jest": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/allure-jest/-/allure-jest-3.0.7.tgz",
+ "integrity": "sha512-vOFLkjreMI0br1PoSNP8AyPY3ieTLdHcBz1c5kXSyWNIxx23EPJ/TxKgg1cYyQrkpm3z3TMCj3XS3iYhVwz0/g==",
+ "dev": true,
+ "dependencies": {
+ "allure-js-commons": "3.0.7"
+ },
+ "peerDependencies": {
+ "jest": ">=24.8.0",
+ "jest-circus": ">=24.8.0",
+ "jest-cli": ">=24.8.0",
+ "jest-environment-jsdom": ">=24.8.0",
+ "jest-environment-node": ">=24.8.0"
+ },
+ "peerDependenciesMeta": {
+ "jest": {
+ "optional": true
+ },
+ "jest-circus": {
+ "optional": true
+ },
+ "jest-cli": {
+ "optional": true
+ },
+ "jest-environment-jsdom": {
+ "optional": true
+ },
+ "jest-environment-node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/allure-js-commons": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/allure-js-commons/-/allure-js-commons-3.0.7.tgz",
+ "integrity": "sha512-keHlPAtmzdtEK8FT5W0mOMYh9ZrdlhbrDyaaAKMNHipF/EsFak18XdbLiAKhnHbHiicE+n3BrmBU4rfQEoFHzA==",
+ "dev": true,
+ "dependencies": {
+ "md5": "^2.3.0"
+ },
+ "peerDependencies": {
+ "allure-playwright": "3.0.7"
+ },
+ "peerDependenciesMeta": {
+ "allure-playwright": {
+ "optional": true
+ }
+ }
+ },
"node_modules/amazon-dsp-formatter": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/amazon-dsp-formatter/-/amazon-dsp-formatter-1.0.2.tgz",
@@ -15028,8 +15081,9 @@
},
"node_modules/jest-diff": {
"version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",
+ "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==",
"dev": true,
- "license": "MIT",
"dependencies": {
"chalk": "^4.0.0",
"diff-sequences": "^29.6.3",
@@ -15196,8 +15250,9 @@
},
"node_modules/jest-environment-node": {
"version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz",
+ "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==",
"dev": true,
- "license": "MIT",
"dependencies": {
"@jest/environment": "^29.7.0",
"@jest/fake-timers": "^29.7.0",
diff --git a/package.json b/package.json
index b9064fac2c..70e7ce58f4 100644
--- a/package.json
+++ b/package.json
@@ -135,6 +135,7 @@
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.59.2",
+ "allure-jest": "^3.0.7",
"axios-mock-adapter": "^1.22.0",
"benchmark-suite": "^0.1.8",
"commander": "^10.0.1",
@@ -154,6 +155,8 @@
"http-terminator": "^3.2.0",
"husky": "^9.1.6",
"jest": "^29.5.0",
+ "jest-diff": "^29.7.0",
+ "jest-environment-node": "^29.7.0",
"jest-sonar": "^0.2.16",
"jest-when": "^3.5.2",
"lint-staged": "^13.2.2",
diff --git a/test/integrations/component.test.ts b/test/integrations/component.test.ts
index baad6813df..3175104cfa 100644
--- a/test/integrations/component.test.ts
+++ b/test/integrations/component.test.ts
@@ -24,6 +24,7 @@ import { appendFileSync } from 'fs';
import { assertRouterOutput, responses } from '../testHelper';
import { generateTestReport, initaliseReport } from '../test_reporter/reporter';
import _ from 'lodash';
+import { enhancedTestUtils } from '../test_reporter/allureReporter';
// To run single destination test cases
// npm run test:ts -- component --destination=adobe_analytics
@@ -55,7 +56,12 @@ if (opts.generate === 'true') {
let server: Server;
-const INTEGRATIONS_WITH_UPDATED_TEST_STRUCTURE = ['klaviyo', 'campaign_manager', 'criteo_audience'];
+const INTEGRATIONS_WITH_UPDATED_TEST_STRUCTURE = [
+ 'active_campaign',
+ 'klaviyo',
+ 'campaign_manager',
+ 'criteo_audience',
+];
beforeAll(async () => {
initaliseReport();
@@ -153,13 +159,8 @@ const testRoute = async (route, tcData: TestCaseData) => {
if (INTEGRATIONS_WITH_UPDATED_TEST_STRUCTURE.includes(tcData.name?.toLocaleLowerCase())) {
expect(validateTestWithZOD(tcData, response)).toEqual(true);
- const bodyMatched = _.isEqual(response.body, outputResp.body);
- const statusMatched = response.status === outputResp.status;
- if (bodyMatched && statusMatched) {
- generateTestReport(tcData, response.body, 'passed');
- } else {
- generateTestReport(tcData, response.body, 'failed');
- }
+ enhancedTestUtils.beforeTestRun(tcData);
+ enhancedTestUtils.afterTestRun(tcData, response.body);
}
if (outputResp?.body) {
diff --git a/test/integrations/destinations/active_campaign/processor/data.ts b/test/integrations/destinations/active_campaign/processor/data.ts
index cef8c2a3a8..56bb3892b9 100644
--- a/test/integrations/destinations/active_campaign/processor/data.ts
+++ b/test/integrations/destinations/active_campaign/processor/data.ts
@@ -1,25 +1,63 @@
+/**
+ * Auto-migrated and optimized test cases
+ * Generated on: 2024-12-10T06:45:10.187Z
+ */
+
+import { ProcessorTestData } from '../../../testTypes';
+import { Metadata } from '../../../../../src/types';
import MockAdapter from 'axios-mock-adapter';
import { isMatch } from 'lodash';
-export const data = [
+const baseMetadata: Metadata = {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 1,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-10T06:45:09.572Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+};
+
+export const data: ProcessorTestData[] = [
{
+ id: 'processor-1733813110185',
name: 'active_campaign',
- description: 'Test 0',
+ description: 'Test 0: Indetify scenario which tests the happy path of creating a contact',
+ scenario:
+ 'The contact is created successfully with all the fields info , a test tag is also added and the contact is subscribe to to list 2 and unsubscribed from list 3 and an invalid operation is performed on list 3',
+ successCriteria: 'Processor test should pass successfully, and the contact should be created',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
messageId: '84e26acc-56a5-4835-8233-591137fca468',
@@ -42,9 +80,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -54,12 +101,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -85,10 +156,22 @@ export const data = [
firstName: 'James',
lastName: 'Doe',
fieldValues: [
- { field: '0', value: 'Trastkiv' },
- { field: '1', value: 'Russia' },
- { field: '3', value: '||Potato||Onion||' },
- { field: '4', value: 'random' },
+ {
+ field: '0',
+ value: 'Trastkiv',
+ },
+ {
+ field: '1',
+ value: 'Russia',
+ },
+ {
+ field: '3',
+ value: '||Potato||Onion||',
+ },
+ {
+ field: '4',
+ value: 'random',
+ },
],
},
},
@@ -99,6 +182,7 @@ export const data = [
files: {},
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
@@ -106,23 +190,21 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 0',
+ description:
+ 'Test 1: Identify scenario which tests the happy path of creating a contact with multiple tags',
+ scenario:
+ 'Identify scenario which tests the happy path of creating a contact with all fields info and multiple tags and the contact is subscribed to list 2 and unsubscribed from list 3 and an invalid operation is performed on list 3',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
messageId: '84e26acc-56a5-4835-8233-591137fca468',
@@ -145,9 +227,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -157,12 +248,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -188,10 +303,22 @@ export const data = [
firstName: 'James',
lastName: 'Doe',
fieldValues: [
- { field: '0', value: 'Trastkiv' },
- { field: '1', value: 'Russia' },
- { field: '3', value: '||Potato||Onion||' },
- { field: '4', value: 'random' },
+ {
+ field: '0',
+ value: 'Trastkiv',
+ },
+ {
+ field: '1',
+ value: 'Russia',
+ },
+ {
+ field: '3',
+ value: '||Potato||Onion||',
+ },
+ {
+ field: '4',
+ value: 'random',
+ },
],
},
},
@@ -202,6 +329,7 @@ export const data = [
files: {},
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
@@ -209,40 +337,49 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 1',
+ description: 'Test 2: Page scenario which tests the happy path of tracking a page view',
+ scenario: 'Scenario which tests the happy path of tracking a page view',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
- page: { referring_domain: 'https://www.rudderlabs.com' },
+ page: {
+ referring_domain: 'https://www.rudderlabs.com',
+ },
app: {
build: '1.0.0',
name: 'RudderLabs JavaScript SDK',
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- traits: { email: 'jamesDoe@gmail.com', anonymousId: '12345' },
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ traits: {
+ email: 'jamesDoe@gmail.com',
+ anonymousId: '12345',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
request_ip: '1.1.1.1',
type: 'page',
@@ -259,100 +396,36 @@ export const data = [
title: 'Test Page',
url: 'https://www.rudderlabs.com',
},
- integrations: { All: true },
- sentAt: '2019-10-14T11:15:53.296Z',
- },
- },
- ],
- method: 'POST',
- },
- },
- output: {
- response: {
- status: 200,
- body: [
- {
- output: {
- body: {
- XML: {},
- FORM: {},
- JSON_ARRAY: {},
- JSON: { siteTrackingDomain: { name: 'rudderlabs.com' } },
- },
- type: 'REST',
- files: {},
- method: 'POST',
- params: {},
- headers: {
- 'Api-Token': 'dummyApiKey',
- 'Content-Type': 'application/json',
+ integrations: {
+ All: true,
},
- version: '1',
- endpoint: 'https://active.campaigns.rudder.com/api/3/siteTrackingDomains',
- userId: '',
+ sentAt: '2019-10-14T11:15:53.296Z',
},
- statusCode: 200,
- },
- ],
- },
- },
- },
- {
- name: 'active_campaign',
- description: 'Test 2',
- feature: 'processor',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- body: [
- {
+ metadata: baseMetadata,
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiKey',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
- },
- message: {
- channel: 'web',
- context: {
- app: {
- build: '1.0.0',
- name: 'RudderLabs JavaScript SDK',
- namespace: 'com.rudderlabs.javascript',
- version: '1.0.0',
- },
- traits: { email: 'jamesDoe@gmail.com', anonymousId: '12345' },
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
- userAgent:
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
- locale: 'en-US',
- os: { name: '', version: '' },
- screen: { density: 2 },
- },
- request_ip: '1.1.1.1',
- type: 'page',
- messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
- session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
- originalTimestamp: '2019-10-14T11:15:18.299Z',
- anonymousId: '00000000000000000000000000',
- userId: '12345',
- properties: {
- name: 'ApplicationLoaded',
- path: '/test',
- referrer: 'Rudder',
- search: 'abc',
- title: 'Test Page',
- url: 'https://www.rudderlabs.com',
- },
- integrations: { All: true },
- sentAt: '2019-10-14T11:15:53.296Z',
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
},
},
],
- method: 'POST',
},
},
output: {
@@ -365,7 +438,11 @@ export const data = [
XML: {},
FORM: {},
JSON_ARRAY: {},
- JSON: { siteTrackingDomain: { name: 'rudderlabs.com' } },
+ JSON: {
+ siteTrackingDomain: {
+ name: 'rudderlabs.com',
+ },
+ },
},
type: 'REST',
files: {},
@@ -379,6 +456,7 @@ export const data = [
endpoint: 'https://active.campaigns.rudder.com/api/3/siteTrackingDomains',
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
@@ -386,23 +464,21 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 3',
+ description:
+ 'Test 3: Screen event scenario which tests the happy path of tracking a screen view',
+ scenario:
+ 'Screen event scenario which tests the happy path of tracking a screen viewn the email field is passed in the visit field for the destination and the properties name is passed in the eventdata field the event is ScreenViewed',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
@@ -412,125 +488,71 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- traits: { email: 'jamesDoe@gmail.com', anonymousId: '12345' },
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ traits: {
+ email: 'jamesDoe@gmail.com',
+ anonymousId: '12345',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
request_ip: '1.1.1.1',
- type: 'page',
+ type: 'screen',
messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
originalTimestamp: '2019-10-14T11:15:18.299Z',
anonymousId: '00000000000000000000000000',
userId: '12345',
properties: {
- name: 'ApplicationLoaded',
path: '/test',
referrer: 'Rudder',
- referring_domain: 'https://www.rudderlabs.com',
search: 'abc',
title: 'Test Page',
- url: 'https://www.rudderlabs.com',
- },
- integrations: { All: true },
- sentAt: '2019-10-14T11:15:53.296Z',
- },
- },
- ],
- method: 'POST',
- },
- },
- output: {
- response: {
- status: 200,
- body: [
- {
- output: {
- body: {
- XML: {},
- FORM: {},
- JSON_ARRAY: {},
- JSON: { siteTrackingDomain: { name: 'rudderlabs.com' } },
+ url: 'www.rudderlabs.com',
+ name: 'Rudder_Event_Screen_Test',
},
- type: 'REST',
- files: {},
- method: 'POST',
- params: {},
- headers: {
- 'Api-Token': 'dummyApiKey',
- 'Content-Type': 'application/json',
+ event: 'ScreenViewed',
+ integrations: {
+ All: true,
},
- version: '1',
- endpoint: 'https://active.campaigns.rudder.com/api/3/siteTrackingDomains',
- userId: '',
+ sentAt: '2019-10-14T11:15:53.296Z',
},
- statusCode: 200,
- },
- ],
- },
- },
- },
- {
- name: 'active_campaign',
- description: 'Test 4',
- feature: 'processor',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- body: [
- {
+ metadata: baseMetadata,
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiKey',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
- },
- message: {
- channel: 'web',
- context: {
- app: {
- build: '1.0.0',
- name: 'RudderLabs JavaScript SDK',
- namespace: 'com.rudderlabs.javascript',
- version: '1.0.0',
- },
- traits: { email: 'jamesDoe@gmail.com', anonymousId: '12345' },
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
- userAgent:
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
- locale: 'en-US',
- os: { name: '', version: '' },
- screen: { density: 2 },
- },
- request_ip: '1.1.1.1',
- type: 'screen',
- messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
- session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
- originalTimestamp: '2019-10-14T11:15:18.299Z',
- anonymousId: '00000000000000000000000000',
- userId: '12345',
- properties: {
- path: '/test',
- referrer: 'Rudder',
- search: 'abc',
- title: 'Test Page',
- url: 'www.rudderlabs.com',
- name: 'Rudder_Event_Screen_Test',
- },
- event: 'ScreenViewed',
- integrations: { All: true },
- sentAt: '2019-10-14T11:15:53.296Z',
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
},
},
],
- method: 'POST',
},
},
output: {
@@ -563,6 +585,7 @@ export const data = [
endpoint: 'https://trackcmp.net/event',
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
@@ -570,23 +593,20 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 5',
+ description: 'Test 4: Track event scenario which tests the happy path of tracking an event',
+ scenario:
+ 'Track event scenraio where the event name is Tracking Action and the properties name is Rudder_Event_Track_Test',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1',
context: {
@@ -596,26 +616,60 @@ export const data = [
model: 'Redmi 6',
name: 'xiaomi',
},
- network: { carrier: 'Banglalink' },
- os: { name: 'android', version: '8.1.0' },
+ network: {
+ carrier: 'Banglalink',
+ },
+ os: {
+ name: 'android',
+ version: '8.1.0',
+ },
traits: {
email: 'jamesDoe@gmail.com',
- address: { city: 'Dhaka', country: 'Bangladesh' },
+ address: {
+ city: 'Dhaka',
+ country: 'Bangladesh',
+ },
anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1',
},
},
event: 'Tracking Action',
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8',
- properties: { name: 'Rudder_Event_Track_Test' },
+ properties: {
+ name: 'Rudder_Event_Track_Test',
+ },
userId: 'test_user_id',
timestamp: '2019-09-01T15:46:51.693Z',
originalTimestamp: '2019-09-01T15:46:51.693Z',
type: 'track',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -648,6 +702,7 @@ export const data = [
endpoint: 'https://trackcmp.net/event',
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
@@ -655,23 +710,20 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 6',
+ description:
+ 'Test 5: Identify scenario which tests the happy path of creating/updating a contact with all fields info',
+ scenario: 'Scneario is exactly same as Test 0',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
@@ -681,13 +733,21 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
ip: '0.0.0.0',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
messageId: '84e26acc-56a5-4835-8233-591137fca468',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
@@ -707,9 +767,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -719,12 +788,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -742,10 +835,22 @@ export const data = [
email: 'jamesDoe@gmail.com',
phone: '92374162212',
fieldValues: [
- { field: '0', value: 'Trastkiv' },
- { field: '1', value: 'Russia' },
- { field: '3', value: '||Potato||Onion||' },
- { field: '4', value: 'random' },
+ {
+ field: '0',
+ value: 'Trastkiv',
+ },
+ {
+ field: '1',
+ value: 'Russia',
+ },
+ {
+ field: '3',
+ value: '||Potato||Onion||',
+ },
+ {
+ field: '4',
+ value: 'random',
+ },
],
},
},
@@ -762,32 +867,29 @@ export const data = [
endpoint: 'https://active.campaigns.rudder.com/api/3/contact/sync',
userId: '',
},
+ metadata: baseMetadata,
statusCode: 200,
},
],
},
},
},
-
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
description:
- 'Test 7: node error(ECONNABORTED) where there is no response coming from dest. server',
+ 'Test 6: node error(ECONNABORTED) where there is no response coming from dest. server',
+ scenario:
+ 'Scenario which tests the failure case where there is no response from the destination server',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.dumber.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
@@ -797,13 +899,21 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
ip: '0.0.0.0',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
messageId: '84e26acc-56a5-4835-8233-591137fca468',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
@@ -823,9 +933,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -835,12 +954,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.dumber.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -848,17 +991,20 @@ export const data = [
status: 200,
body: [
{
+ metadata: baseMetadata,
+ statusCode: 500,
error:
'{"message":"Failed to create new contact (undefined,\\"[ECONNABORTED] :: Connection aborted\\")","destinationResponse":"[ECONNABORTED] :: Connection aborted"}',
statTags: {
destType: 'ACTIVE_CAMPAIGN',
+ destinationId: 'default-destination',
errorCategory: 'network',
errorType: 'retryable',
feature: 'processor',
implementation: 'native',
module: 'destination',
+ workspaceId: 'default-workspace',
},
- statusCode: 500,
},
],
},
@@ -890,23 +1036,20 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 8: erreneous response from active_campaign server(5xx)',
+ description: 'Test 7: erreneous response from active_campaign server(5xx)',
+ scenario:
+ 'Scenario which tests the failure case where the destination server returns a 5xx error',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.dumber2.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
@@ -916,13 +1059,21 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
ip: '0.0.0.0',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
messageId: '84e26acc-56a5-4835-8233-591137fca468',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
@@ -942,9 +1093,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -954,12 +1114,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.dumber2.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -967,17 +1151,20 @@ export const data = [
status: 200,
body: [
{
+ metadata: baseMetadata,
+ statusCode: 504,
error:
'{"message":"Failed to create new contact (undefined,\\"\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n \\\\\\\\n
\\\\\\\\n\\\\\\\\n\\\\\\\\naccurx.api-us1.com | 504: Gateway time-out\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n
\\\\\\\\n
You\\\\\\\\n
\\\\\\\\n \\\\\\\\n Browser\\\\\\\\n \\\\\\\\n
\\\\\\\\n
Working\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
Frankfurt\\\\\\\\n
\\\\\\\\n
Working\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n \\\\\\\\n
\\\\\\\\n
accurx.api-us1.com\\\\\\\\n
\\\\\\\\n \\\\\\\\n Host\\\\\\\\n \\\\\\\\n
\\\\\\\\n
Error\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
What happened?
\\\\\\\\n
The web server reported a gateway time-out error.
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
What can I do?
\\\\\\\\n
Please try again in a few minutes.
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n \\\\\\\\n\\\\\\\\n\\\\\\\\n
\\\\\\\\n
\\\\\\\\n\\\\\\\\n\\\\\\\\n\\\\\\")\\")","destinationResponse":"\\\\n\\\\n\\\\n\\\\n \\\\n\\\\n\\\\n\\\\naccurx.api-us1.com | 504: Gateway time-out\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n
\\\\n
\\\\n
\\\\n
\\\\n
\\\\n \\\\n
\\\\n
\\\\n \\\\n \\\\n \\\\n \\\\n
\\\\n
You\\\\n
\\\\n \\\\n Browser\\\\n \\\\n
\\\\n
Working\\\\n
\\\\n\\\\n
\\\\n
\\\\n
Frankfurt\\\\n
\\\\n
Working\\\\n
\\\\n\\\\n
\\\\n
\\\\n \\\\n \\\\n \\\\n \\\\n
\\\\n
accurx.api-us1.com\\\\n
\\\\n \\\\n Host\\\\n \\\\n
\\\\n
Error\\\\n
\\\\n\\\\n
\\\\n
\\\\n
\\\\n\\\\n
\\\\n
\\\\n
\\\\n
What happened?
\\\\n
The web server reported a gateway time-out error.
\\\\n
\\\\n
\\\\n
What can I do?
\\\\n
Please try again in a few minutes.
\\\\n
\\\\n
\\\\n
\\\\n\\\\n \\\\n\\\\n\\\\n
\\\\n
\\\\n\\\\n\\\\n\\")"}',
statTags: {
destType: 'ACTIVE_CAMPAIGN',
+ destinationId: 'default-destination',
errorCategory: 'network',
errorType: 'retryable',
feature: 'processor',
implementation: 'native',
module: 'destination',
+ workspaceId: 'default-workspace',
},
- statusCode: 504,
},
],
},
@@ -1016,23 +1203,19 @@ export const data = [
},
},
{
+ id: 'processor-1733813110186',
name: 'active_campaign',
- description: 'Test 9: erreneous response from active_campaign server(4xx)',
+ description: 'Test 8: erreneous response from active_campaign server(4xx)',
+ scenario: 'Scenrio which tests the processor when the active_campaign server returns 4xx error',
+ successCriteria: 'Processor test should pass successfully',
feature: 'processor',
module: 'destination',
version: 'v0',
input: {
request: {
+ method: 'POST',
body: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiKey',
- apiUrl: 'https://active.campaigns.dumber2.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
message: {
channel: 'web',
context: {
@@ -1042,13 +1225,21 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
ip: '0.0.0.0',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
messageId: '84e26acc-56a5-4835-8233-591137fca468',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
@@ -1068,9 +1259,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -1080,12 +1280,36 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: baseMetadata,
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiKey',
+ apiUrl: 'https://active.campaigns.dumber2.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
- method: 'POST',
},
},
output: {
@@ -1093,17 +1317,20 @@ export const data = [
status: 200,
body: [
{
+ metadata: baseMetadata,
+ statusCode: 422,
error:
'{"message":"Failed to create new contact (undefined,{\\"errors\\":[{\\"title\\":\\"Contact Email Address is not valid.\\",\\"detail\\":\\"\\",\\"code\\":\\"email_invalid\\",\\"error\\":\\"must_be_valid_email_address\\",\\"source\\":{\\"pointer\\":\\"/data/attributes/email\\"}}]})","destinationResponse":{"errors":[{"title":"Contact Email Address is not valid.","detail":"","code":"email_invalid","error":"must_be_valid_email_address","source":{"pointer":"/data/attributes/email"}}]}}',
statTags: {
destType: 'ACTIVE_CAMPAIGN',
+ destinationId: 'default-destination',
errorCategory: 'network',
errorType: 'aborted',
feature: 'processor',
implementation: 'native',
module: 'destination',
+ workspaceId: 'default-workspace',
},
- statusCode: 422,
},
],
},
diff --git a/test/integrations/destinations/active_campaign/router/data.ts b/test/integrations/destinations/active_campaign/router/data.ts
index a73140c161..148e330b18 100644
--- a/test/integrations/destinations/active_campaign/router/data.ts
+++ b/test/integrations/destinations/active_campaign/router/data.ts
@@ -1,7 +1,18 @@
-export const data = [
+/**
+ * Auto-migrated and optimized test cases
+ * Generated on: 2024-12-06T12:28:59.200Z
+ */
+
+import { RouterTestData } from '../../../testTypes';
+import {} from '../../../../../src/types';
+
+export const data: RouterTestData[] = [
{
+ id: 'router-1733488139199',
name: 'active_campaign',
- description: 'Test 0',
+ description: 'Test 0: Successful identify event',
+ scenario: 'Scenario which tests for a successful identify event',
+ successCriteria: 'Router test should pass successfully',
feature: 'router',
module: 'destination',
version: 'v0',
@@ -10,15 +21,6 @@ export const data = [
body: {
input: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiToken',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
- metadata: { jobId: 2, userId: 'u1' },
message: {
channel: 'web',
context: {
@@ -28,13 +30,21 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
ip: '0.0.0.0',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
messageId: '84e26acc-56a5-4835-8233-591137fca468',
session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
@@ -56,9 +66,18 @@ export const data = [
Random: 'random',
},
lists: [
- { id: 2, status: 'subscribe' },
- { id: 3, status: 'unsubscribe' },
- { id: 3, status: 'unsubscribexyz' },
+ {
+ id: 2,
+ status: 'subscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribe',
+ },
+ {
+ id: 3,
+ status: 'unsubscribexyz',
+ },
],
address: {
city: 'kolkata',
@@ -68,9 +87,66 @@ export const data = [
street: '',
},
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T09:03:22.563Z',
},
+ metadata: {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 2,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiToken',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
destType: 'active_campaign',
@@ -96,10 +172,22 @@ export const data = [
lastName: 'Doe',
phone: '92374162212',
fieldValues: [
- { field: '0', value: 'Trastkiv' },
- { field: '1', value: 'Russia' },
- { field: '3', value: '||Potato||Onion||' },
- { field: '4', value: 'random' },
+ {
+ field: '0',
+ value: 'Trastkiv',
+ },
+ {
+ field: '1',
+ value: 'Russia',
+ },
+ {
+ field: '3',
+ value: '||Potato||Onion||',
+ },
+ {
+ field: '4',
+ value: 'random',
+ },
],
},
},
@@ -108,21 +196,72 @@ export const data = [
files: {},
method: 'POST',
params: {},
- headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' },
+ headers: {
+ 'Api-Token': 'dummyApiToken',
+ 'Content-Type': 'application/json',
+ },
version: '1',
endpoint: 'https://active.campaigns.rudder.com/api/3/contact/sync',
},
- metadata: [{ jobId: 2, userId: 'u1' }],
- batched: false,
+ metadata: [
+ {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 2,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
+ ],
statusCode: 200,
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiToken',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
},
+ batched: false,
},
],
},
@@ -130,8 +269,11 @@ export const data = [
},
},
{
+ id: 'router-1733488139199',
name: 'active_campaign',
- description: 'Test 1',
+ description: 'Test 1: Test case for a successful page event',
+ scenario: 'Scenario which tests for a successful page event',
+ successCriteria: 'Router test should pass successfully',
feature: 'router',
module: 'destination',
version: 'v0',
@@ -140,15 +282,6 @@ export const data = [
body: {
input: [
{
- destination: {
- Config: {
- apiKey: 'dummyApiToken',
- apiUrl: 'https://active.campaigns.rudder.com',
- actid: '476550467',
- eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
- },
- },
- metadata: { jobId: 2, userId: 'u1' },
message: {
channel: 'web',
context: {
@@ -158,13 +291,24 @@ export const data = [
namespace: 'com.rudderlabs.javascript',
version: '1.0.0',
},
- traits: { email: 'jamesDoe@gmail.com', anonymousId: '12345' },
- library: { name: 'RudderLabs JavaScript SDK', version: '1.0.0' },
+ traits: {
+ email: 'jamesDoe@gmail.com',
+ anonymousId: '12345',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
userAgent:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
locale: 'en-US',
- os: { name: '', version: '' },
- screen: { density: 2 },
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
},
request_ip: '1.1.1.1',
type: 'page',
@@ -181,9 +325,66 @@ export const data = [
title: 'Test Page',
url: 'https://www.rudderlabs.com',
},
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
sentAt: '2019-10-14T11:15:53.296Z',
},
+ metadata: {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 2,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
+ destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {
+ apiKey: 'dummyApiToken',
+ apiUrl: 'https://active.campaigns.rudder.com',
+ actid: '476550467',
+ eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
+ },
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
},
],
destType: 'active_campaign',
@@ -202,27 +403,82 @@ export const data = [
XML: {},
FORM: {},
JSON_ARRAY: {},
- JSON: { siteTrackingDomain: { name: 'rudderlabs.com' } },
+ JSON: {
+ siteTrackingDomain: {
+ name: 'rudderlabs.com',
+ },
+ },
},
type: 'REST',
files: {},
method: 'POST',
params: {},
- headers: { 'Api-Token': 'dummyApiToken', 'Content-Type': 'application/json' },
+ headers: {
+ 'Api-Token': 'dummyApiToken',
+ 'Content-Type': 'application/json',
+ },
version: '1',
endpoint: 'https://active.campaigns.rudder.com/api/3/siteTrackingDomains',
},
- metadata: [{ jobId: 2, userId: 'u1' }],
- batched: false,
+ metadata: [
+ {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 2,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
+ ],
statusCode: 200,
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiToken',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
},
+ batched: false,
},
],
},
@@ -230,8 +486,11 @@ export const data = [
},
},
{
+ id: 'router-1733488139199',
name: 'active_campaign',
- description: 'Test 2',
+ description: 'Test 2: Page event with invalid URL',
+ scenario: 'Scenario which tests for a page event with invalid URL',
+ successCriteria: 'Router test should pass successfully',
feature: 'router',
module: 'destination',
version: 'v0',
@@ -246,7 +505,10 @@ export const data = [
sentAt: '2023-01-10T22:31:10.954Z',
channel: 'web',
context: {
- os: { name: '', version: '' },
+ os: {
+ name: '',
+ version: '',
+ },
app: {
name: 'RudderLabs JavaScript SDK',
build: '1.0.0',
@@ -273,7 +535,10 @@ export const data = [
innerHeight: 782,
},
traits: {},
- library: { name: 'RudderLabs JavaScript SDK', version: '2.20.0' },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '2.20.0',
+ },
campaign: {},
sessionId: 1673389635049,
userAgent:
@@ -297,18 +562,66 @@ export const data = [
receivedAt: '2023-01-10T22:31:11.612Z',
request_ip: '0.0.0.20',
anonymousId: '878e8f5f-9b6c-4aef-b5d3-1b970a13f17a',
- integrations: { All: true },
+ integrations: {
+ All: true,
+ },
originalTimestamp: '2023-01-10T22:31:10.943Z',
},
+ metadata: {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 5,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiToken',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
},
- metadata: { jobId: 5, userId: 'u1' },
},
],
destType: 'active_campaign',
@@ -322,25 +635,75 @@ export const data = [
body: {
output: [
{
- error: 'Invalid URL: url',
- statTags: {
- destType: 'ACTIVE_CAMPAIGN',
- errorCategory: 'dataValidation',
- errorType: 'instrumentation',
- feature: 'router',
- implementation: 'native',
- module: 'destination',
- },
+ metadata: [
+ {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 5,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: '2024-12-06T12:28:58.577Z',
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+ },
+ ],
statusCode: 400,
- metadata: [{ jobId: 5, userId: 'u1' }],
- batched: false,
destination: {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
Config: {
apiKey: 'dummyApiToken',
apiUrl: 'https://active.campaigns.rudder.com',
actid: '476550467',
eventKey: 'f8a866fddc721350fdc2fbbd2e5c43a6dddaaa03',
},
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+ },
+ batched: false,
+ error: 'Invalid URL: url',
+ statTags: {
+ destType: 'ACTIVE_CAMPAIGN',
+ destinationId: 'default-destination',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'router',
+ implementation: 'native',
+ module: 'destination',
+ workspaceId: 'default-workspace',
},
},
],
diff --git a/test/integrations/destinations/af/processor/validation.ts b/test/integrations/destinations/af/processor/validation.ts
index 8042570c7d..b36cd7d15d 100644
--- a/test/integrations/destinations/af/processor/validation.ts
+++ b/test/integrations/destinations/af/processor/validation.ts
@@ -1786,6 +1786,7 @@ export const newConfigValidationTests: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1843,6 +1844,7 @@ export const newConfigValidationTests: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1900,6 +1902,7 @@ export const newConfigValidationTests: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1956,6 +1959,7 @@ export const newConfigValidationTests: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2016,6 +2020,7 @@ export const newConfigValidationTests: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/bloomreach/processor/identify.ts b/test/integrations/destinations/bloomreach/processor/identify.ts
index 2a79cb57e3..cf9486081b 100644
--- a/test/integrations/destinations/bloomreach/processor/identify.ts
+++ b/test/integrations/destinations/bloomreach/processor/identify.ts
@@ -30,6 +30,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -107,6 +108,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/bloomreach/processor/page.ts b/test/integrations/destinations/bloomreach/processor/page.ts
index 3081feeb26..ae454ba3ef 100644
--- a/test/integrations/destinations/bloomreach/processor/page.ts
+++ b/test/integrations/destinations/bloomreach/processor/page.ts
@@ -40,6 +40,7 @@ export const page: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -97,6 +98,7 @@ export const page: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/bloomreach/processor/track.ts b/test/integrations/destinations/bloomreach/processor/track.ts
index a369f508b2..bca516a3b4 100644
--- a/test/integrations/destinations/bloomreach/processor/track.ts
+++ b/test/integrations/destinations/bloomreach/processor/track.ts
@@ -30,6 +30,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -87,6 +88,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -142,6 +144,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/bloomreach/processor/validation.ts b/test/integrations/destinations/bloomreach/processor/validation.ts
index 1a6199abb0..dcd3690837 100644
--- a/test/integrations/destinations/bloomreach/processor/validation.ts
+++ b/test/integrations/destinations/bloomreach/processor/validation.ts
@@ -34,6 +34,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -78,6 +79,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -118,6 +120,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -162,6 +165,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/cordial/processor/identify.ts b/test/integrations/destinations/cordial/processor/identify.ts
index 074852b199..ef7636a716 100644
--- a/test/integrations/destinations/cordial/processor/identify.ts
+++ b/test/integrations/destinations/cordial/processor/identify.ts
@@ -39,6 +39,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -102,6 +103,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -166,6 +168,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/cordial/processor/track.ts b/test/integrations/destinations/cordial/processor/track.ts
index 3e7a560a52..3ead5a959c 100644
--- a/test/integrations/destinations/cordial/processor/track.ts
+++ b/test/integrations/destinations/cordial/processor/track.ts
@@ -40,6 +40,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -96,6 +97,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/cordial/processor/validation.ts b/test/integrations/destinations/cordial/processor/validation.ts
index 61f2e1cbed..ea7dff6dac 100644
--- a/test/integrations/destinations/cordial/processor/validation.ts
+++ b/test/integrations/destinations/cordial/processor/validation.ts
@@ -27,6 +27,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -71,6 +72,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts b/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts
index 5a7beb4174..a8baee0586 100644
--- a/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts
+++ b/test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.ts
@@ -116,6 +116,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -203,6 +204,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -294,6 +296,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -397,6 +400,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
@@ -500,6 +504,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
@@ -611,6 +616,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
@@ -702,6 +708,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts b/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts
index 8e7f50ec2d..3daf22d5c2 100644
--- a/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts
+++ b/test/integrations/destinations/facebook_pixel/processor/ecommTestData.ts
@@ -124,6 +124,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -207,6 +208,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -314,6 +316,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -398,6 +401,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -482,6 +486,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -561,6 +566,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -669,6 +675,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -754,6 +761,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -800,6 +808,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -879,6 +888,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -988,6 +998,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -1097,6 +1108,7 @@ export const ecommTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts b/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts
index d315b03cea..7d872efae0 100644
--- a/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts
+++ b/test/integrations/destinations/facebook_pixel/processor/identifyTestData.ts
@@ -120,6 +120,7 @@ export const identifyTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { advancedMapping: false }),
},
],
+ method: 'POST',
},
},
output: {
@@ -160,6 +161,7 @@ export const identifyTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts b/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts
index dee772522a..443c9e25be 100644
--- a/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts
+++ b/test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.ts
@@ -148,6 +148,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -228,6 +229,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { standardPageCall: true }),
},
],
+ method: 'POST',
},
},
output: {
@@ -288,6 +290,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { standardPageCall: true }),
},
],
+ method: 'POST',
},
},
output: {
@@ -371,6 +374,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -455,6 +459,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -532,6 +537,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { standardPageCall: true }),
},
],
+ method: 'POST',
},
},
output: {
@@ -590,6 +596,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { standardPageCall: true }),
},
],
+ method: 'POST',
},
},
output: {
@@ -673,6 +680,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts b/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts
index 9fd65945c4..a3f2ff0ed4 100644
--- a/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts
+++ b/test/integrations/destinations/facebook_pixel/processor/trackTestData.ts
@@ -86,6 +86,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -159,6 +160,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/ga4/processor/ecomTestData.ts b/test/integrations/destinations/ga4/processor/ecomTestData.ts
index 238e44222b..3a6f197270 100644
--- a/test/integrations/destinations/ga4/processor/ecomTestData.ts
+++ b/test/integrations/destinations/ga4/processor/ecomTestData.ts
@@ -292,6 +292,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -362,6 +363,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -434,6 +436,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -504,6 +507,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -574,6 +578,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -647,6 +652,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -721,6 +727,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -794,6 +801,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -869,6 +877,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -943,6 +952,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1017,6 +1027,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1093,6 +1104,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1170,6 +1182,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1244,6 +1257,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1315,6 +1329,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1385,6 +1400,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1456,6 +1472,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1525,6 +1542,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1591,6 +1609,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1657,6 +1676,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1723,6 +1743,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1800,6 +1821,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1873,6 +1895,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1943,6 +1966,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2014,6 +2038,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2087,6 +2112,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2164,6 +2190,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2247,6 +2274,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2321,6 +2349,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2410,6 +2439,7 @@ export const ecommTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/ga4/processor/groupTestData.ts b/test/integrations/destinations/ga4/processor/groupTestData.ts
index 68daad3a8e..9e97ac33cd 100644
--- a/test/integrations/destinations/ga4/processor/groupTestData.ts
+++ b/test/integrations/destinations/ga4/processor/groupTestData.ts
@@ -113,6 +113,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -184,6 +185,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -265,6 +267,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/ga4/processor/pageTestData.ts b/test/integrations/destinations/ga4/processor/pageTestData.ts
index 672f7e8f63..3f5d357e6e 100644
--- a/test/integrations/destinations/ga4/processor/pageTestData.ts
+++ b/test/integrations/destinations/ga4/processor/pageTestData.ts
@@ -122,6 +122,7 @@ export const pageTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -191,6 +192,7 @@ export const pageTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -263,6 +265,7 @@ export const pageTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -448,6 +451,7 @@ export const pageTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/ga4/processor/trackTestData.ts b/test/integrations/destinations/ga4/processor/trackTestData.ts
index ce991ff845..d99cc24bdf 100644
--- a/test/integrations/destinations/ga4/processor/trackTestData.ts
+++ b/test/integrations/destinations/ga4/processor/trackTestData.ts
@@ -158,6 +158,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -225,6 +226,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -294,6 +296,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -365,6 +368,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -432,6 +436,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -502,6 +507,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -569,6 +575,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -637,6 +644,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -703,6 +711,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -773,6 +782,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -844,6 +854,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -914,6 +925,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -981,6 +993,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1049,6 +1062,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1115,6 +1129,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1185,6 +1200,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1253,6 +1269,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1318,6 +1335,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1383,6 +1401,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1451,6 +1470,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1523,6 +1543,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1598,6 +1619,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1673,6 +1695,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1749,6 +1772,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1815,6 +1839,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1879,6 +1904,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -1944,6 +1970,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2010,6 +2037,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2076,6 +2104,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2142,6 +2171,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2215,6 +2245,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2292,6 +2323,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2379,6 +2411,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2458,6 +2491,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2542,6 +2576,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2667,6 +2702,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2752,6 +2788,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2829,6 +2866,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -2909,6 +2947,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/ga4/processor/validationTestData.ts b/test/integrations/destinations/ga4/processor/validationTestData.ts
index 0030ee178e..a7587cbac3 100644
--- a/test/integrations/destinations/ga4/processor/validationTestData.ts
+++ b/test/integrations/destinations/ga4/processor/validationTestData.ts
@@ -136,6 +136,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -194,6 +195,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -250,6 +252,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -301,6 +304,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -352,6 +356,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -402,6 +407,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -452,6 +458,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -497,6 +504,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -542,6 +550,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -594,6 +603,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -647,6 +657,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -700,6 +711,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -746,6 +758,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -796,6 +809,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -851,6 +865,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -898,6 +913,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -942,6 +958,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/http/processor/configuration.ts b/test/integrations/destinations/http/processor/configuration.ts
index b493a236ee..43d39952b9 100644
--- a/test/integrations/destinations/http/processor/configuration.ts
+++ b/test/integrations/destinations/http/processor/configuration.ts
@@ -26,6 +26,7 @@ export const configuration: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -77,6 +78,7 @@ export const configuration: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -122,6 +124,7 @@ export const configuration: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -175,6 +178,7 @@ export const configuration: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/intercom/processor/validationTestData.ts b/test/integrations/destinations/intercom/processor/validationTestData.ts
index 45fe3c1b9e..11a303d82b 100644
--- a/test/integrations/destinations/intercom/processor/validationTestData.ts
+++ b/test/integrations/destinations/intercom/processor/validationTestData.ts
@@ -108,6 +108,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -151,6 +152,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -197,6 +199,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -245,6 +248,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -293,6 +297,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -353,6 +358,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -397,6 +403,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -447,6 +454,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -490,6 +498,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -534,6 +543,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/intercom/router/data.ts b/test/integrations/destinations/intercom/router/data.ts
index cc89d3f1e2..43af421f3a 100644
--- a/test/integrations/destinations/intercom/router/data.ts
+++ b/test/integrations/destinations/intercom/router/data.ts
@@ -812,6 +812,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest1,
+ method: 'POST',
},
},
output: {
@@ -993,6 +994,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest2,
+ method: 'POST',
},
},
output: {
@@ -1212,6 +1214,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest4,
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/intercom_v2/router/data.ts b/test/integrations/destinations/intercom_v2/router/data.ts
index 75f5ba6ae7..4574dde9f6 100644
--- a/test/integrations/destinations/intercom_v2/router/data.ts
+++ b/test/integrations/destinations/intercom_v2/router/data.ts
@@ -424,6 +424,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest1,
+ method: 'POST',
},
},
output: {
@@ -589,6 +590,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest2,
+ method: 'POST',
},
},
output: {
@@ -682,6 +684,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest3,
+ method: 'POST',
},
},
output: {
@@ -807,6 +810,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest4,
+ method: 'POST',
},
},
output: {
@@ -881,6 +885,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest5,
+ method: 'POST',
},
},
output: {
@@ -945,6 +950,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: rETLRecordV2RouterRequest,
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/iterable/processor/aliasTestData.ts b/test/integrations/destinations/iterable/processor/aliasTestData.ts
index 1ee4134859..e6893d5510 100644
--- a/test/integrations/destinations/iterable/processor/aliasTestData.ts
+++ b/test/integrations/destinations/iterable/processor/aliasTestData.ts
@@ -76,6 +76,7 @@ export const aliasTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -128,6 +129,7 @@ export const aliasTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/iterable/processor/identifyTestData.ts b/test/integrations/destinations/iterable/processor/identifyTestData.ts
index 21d294e232..4c6729fc80 100644
--- a/test/integrations/destinations/iterable/processor/identifyTestData.ts
+++ b/test/integrations/destinations/iterable/processor/identifyTestData.ts
@@ -88,6 +88,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -142,6 +143,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -198,6 +200,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -256,6 +259,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -320,6 +324,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -382,6 +387,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -435,6 +441,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/iterable/processor/pageScreenTestData.ts b/test/integrations/destinations/iterable/processor/pageScreenTestData.ts
index a27cf9fe3b..bc644c7f80 100644
--- a/test/integrations/destinations/iterable/processor/pageScreenTestData.ts
+++ b/test/integrations/destinations/iterable/processor/pageScreenTestData.ts
@@ -82,6 +82,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -142,6 +143,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -204,6 +206,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -264,6 +267,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -324,6 +328,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -386,6 +391,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -443,6 +449,7 @@ export const pageScreenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/iterable/processor/trackTestData.ts b/test/integrations/destinations/iterable/processor/trackTestData.ts
index 2b7d2a9c47..7f53cd6d40 100644
--- a/test/integrations/destinations/iterable/processor/trackTestData.ts
+++ b/test/integrations/destinations/iterable/processor/trackTestData.ts
@@ -160,6 +160,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -222,6 +223,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -290,6 +292,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -364,6 +367,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -423,6 +427,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -499,6 +504,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -572,6 +578,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -642,6 +649,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -693,6 +701,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -744,6 +753,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/iterable/processor/validationTestData.ts b/test/integrations/destinations/iterable/processor/validationTestData.ts
index 86728a868b..5e4b9478fd 100644
--- a/test/integrations/destinations/iterable/processor/validationTestData.ts
+++ b/test/integrations/destinations/iterable/processor/validationTestData.ts
@@ -75,6 +75,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -115,6 +116,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -155,6 +157,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -196,6 +199,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -239,6 +243,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/ecomTestData.ts b/test/integrations/destinations/klaviyo/processor/ecomTestData.ts
index 34eff45232..83055cfef1 100644
--- a/test/integrations/destinations/klaviyo/processor/ecomTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/ecomTestData.ts
@@ -80,6 +80,7 @@ export const ecomTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -188,6 +189,7 @@ export const ecomTestData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -300,6 +302,7 @@ export const ecomTestData: ProcessorTestData[] = [
metadata: generateMetadata(3),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/groupTestData.ts b/test/integrations/destinations/klaviyo/processor/groupTestData.ts
index 0002f7ce90..844729b822 100644
--- a/test/integrations/destinations/klaviyo/processor/groupTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/groupTestData.ts
@@ -67,6 +67,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -131,6 +132,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/groupTestDataV2.ts b/test/integrations/destinations/klaviyo/processor/groupTestDataV2.ts
index da7769b110..871388aed2 100644
--- a/test/integrations/destinations/klaviyo/processor/groupTestDataV2.ts
+++ b/test/integrations/destinations/klaviyo/processor/groupTestDataV2.ts
@@ -108,6 +108,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -168,6 +169,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -228,6 +230,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/identifyTestData.ts b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts
index 0dd4751133..ec663cf8e9 100644
--- a/test/integrations/destinations/klaviyo/processor/identifyTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts
@@ -133,6 +133,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -212,6 +213,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -296,6 +298,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(3),
},
],
+ method: 'POST',
},
},
output: {
@@ -352,6 +355,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(4),
},
],
+ method: 'POST',
},
},
output: {
@@ -406,6 +410,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(5),
},
],
+ method: 'POST',
},
},
output: {
@@ -488,6 +493,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(6),
},
],
+ method: 'POST',
},
},
output: {
@@ -565,6 +571,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(7),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/identifyTestDataV2.ts b/test/integrations/destinations/klaviyo/processor/identifyTestDataV2.ts
index 612bfe88f8..33c85e7d6a 100644
--- a/test/integrations/destinations/klaviyo/processor/identifyTestDataV2.ts
+++ b/test/integrations/destinations/klaviyo/processor/identifyTestDataV2.ts
@@ -162,6 +162,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -254,6 +255,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -357,6 +359,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(4),
},
],
+ method: 'POST',
},
},
output: {
@@ -424,6 +427,7 @@ export const identifyData: ProcessorTestData[] = [
metadata: generateMetadata(5),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/screenTestData.ts b/test/integrations/destinations/klaviyo/processor/screenTestData.ts
index 0a20110236..d14c397bdc 100644
--- a/test/integrations/destinations/klaviyo/processor/screenTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/screenTestData.ts
@@ -67,6 +67,7 @@ export const screenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/screenTestDataV2.ts b/test/integrations/destinations/klaviyo/processor/screenTestDataV2.ts
index 5ccbed600c..a50659343c 100644
--- a/test/integrations/destinations/klaviyo/processor/screenTestDataV2.ts
+++ b/test/integrations/destinations/klaviyo/processor/screenTestDataV2.ts
@@ -75,6 +75,7 @@ export const screenTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/trackTestData.ts b/test/integrations/destinations/klaviyo/processor/trackTestData.ts
index 3bc2b1747a..9bc4dfae21 100644
--- a/test/integrations/destinations/klaviyo/processor/trackTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/trackTestData.ts
@@ -88,6 +88,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -170,6 +171,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -244,6 +246,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(3),
},
],
+ method: 'POST',
},
},
output: {
@@ -312,6 +315,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(4),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/trackTestDataV2.ts b/test/integrations/destinations/klaviyo/processor/trackTestDataV2.ts
index ecea141d38..78a3a0d718 100644
--- a/test/integrations/destinations/klaviyo/processor/trackTestDataV2.ts
+++ b/test/integrations/destinations/klaviyo/processor/trackTestDataV2.ts
@@ -101,6 +101,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(2),
},
],
+ method: 'POST',
},
},
output: {
@@ -183,6 +184,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(3),
},
],
+ method: 'POST',
},
},
output: {
@@ -265,6 +267,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/validationTestData.ts b/test/integrations/destinations/klaviyo/processor/validationTestData.ts
index 801e03d541..94d0c7818b 100644
--- a/test/integrations/destinations/klaviyo/processor/validationTestData.ts
+++ b/test/integrations/destinations/klaviyo/processor/validationTestData.ts
@@ -55,6 +55,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/processor/validationTestDataV2.ts b/test/integrations/destinations/klaviyo/processor/validationTestDataV2.ts
index 10e2d15db0..2deb1debbb 100644
--- a/test/integrations/destinations/klaviyo/processor/validationTestDataV2.ts
+++ b/test/integrations/destinations/klaviyo/processor/validationTestDataV2.ts
@@ -55,6 +55,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/router/data.ts b/test/integrations/destinations/klaviyo/router/data.ts
index 1b3f7f39ad..02e22937e1 100644
--- a/test/integrations/destinations/klaviyo/router/data.ts
+++ b/test/integrations/destinations/klaviyo/router/data.ts
@@ -34,6 +34,7 @@ export const data: RouterTestData[] = [
input: {
request: {
body: routerRequest,
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/klaviyo/router/dataV2.ts b/test/integrations/destinations/klaviyo/router/dataV2.ts
index 5a0a06fad1..5201abc712 100644
--- a/test/integrations/destinations/klaviyo/router/dataV2.ts
+++ b/test/integrations/destinations/klaviyo/router/dataV2.ts
@@ -89,6 +89,7 @@ export const dataV2: RouterTestData[] = [
input: {
request: {
body: routerRequestV2,
+ method: 'POST',
},
},
output: {
@@ -422,6 +423,7 @@ export const dataV2: RouterTestData[] = [
],
destType: 'klaviyo',
},
+ method: 'POST',
},
},
output: {
@@ -694,6 +696,7 @@ export const dataV2: RouterTestData[] = [
],
destType: 'klaviyo',
},
+ method: 'POST',
},
},
output: {
@@ -1113,6 +1116,7 @@ export const dataV2: RouterTestData[] = [
],
destType: 'klaviyo',
},
+ method: 'POST',
},
},
output: {
@@ -1371,6 +1375,7 @@ export const dataV2: RouterTestData[] = [
],
destType: 'klaviyo',
},
+ method: 'POST',
},
},
output: {
@@ -1734,6 +1739,7 @@ export const dataV2: RouterTestData[] = [
],
destType: 'klaviyo',
},
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/koddi/processor/clicks.ts b/test/integrations/destinations/koddi/processor/clicks.ts
index 6101e9bafe..0b27c42442 100644
--- a/test/integrations/destinations/koddi/processor/clicks.ts
+++ b/test/integrations/destinations/koddi/processor/clicks.ts
@@ -40,6 +40,7 @@ export const clicks: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/koddi/processor/conversions.ts b/test/integrations/destinations/koddi/processor/conversions.ts
index 1647ffed7d..f4516bfb98 100644
--- a/test/integrations/destinations/koddi/processor/conversions.ts
+++ b/test/integrations/destinations/koddi/processor/conversions.ts
@@ -52,6 +52,7 @@ export const conversions: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -122,6 +123,7 @@ export const conversions: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/koddi/processor/impressions.ts b/test/integrations/destinations/koddi/processor/impressions.ts
index 840ed9139f..90c1d6b6ae 100644
--- a/test/integrations/destinations/koddi/processor/impressions.ts
+++ b/test/integrations/destinations/koddi/processor/impressions.ts
@@ -40,6 +40,7 @@ export const impressions: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/linkedin_ads/processor/configLevelFeaturesTestData.ts b/test/integrations/destinations/linkedin_ads/processor/configLevelFeaturesTestData.ts
index 29ff1f10a8..19e34e6549 100644
--- a/test/integrations/destinations/linkedin_ads/processor/configLevelFeaturesTestData.ts
+++ b/test/integrations/destinations/linkedin_ads/processor/configLevelFeaturesTestData.ts
@@ -89,6 +89,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { hashData: false }),
},
],
+ method: 'POST',
},
},
output: {
@@ -164,6 +165,7 @@ export const configLevelFeaturesTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/linkedin_ads/processor/trackTestData.ts b/test/integrations/destinations/linkedin_ads/processor/trackTestData.ts
index 53272e73bf..f8fd0a4639 100644
--- a/test/integrations/destinations/linkedin_ads/processor/trackTestData.ts
+++ b/test/integrations/destinations/linkedin_ads/processor/trackTestData.ts
@@ -148,6 +148,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -221,6 +222,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -327,6 +329,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -414,6 +417,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -472,6 +476,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -558,6 +563,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
@@ -651,6 +657,7 @@ export const trackTestData: ProcessorTestData[] = [
destination: commonDestination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/linkedin_ads/processor/validationTestData.ts b/test/integrations/destinations/linkedin_ads/processor/validationTestData.ts
index 653ad32056..e93da3e205 100644
--- a/test/integrations/destinations/linkedin_ads/processor/validationTestData.ts
+++ b/test/integrations/destinations/linkedin_ads/processor/validationTestData.ts
@@ -113,6 +113,7 @@ export const validationTestData: ProcessorTestData[] = [
destination: overrideDestination(commonDestination, { hashData: false }),
},
],
+ method: 'POST',
},
},
output: {
@@ -168,6 +169,7 @@ export const validationTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
@@ -219,6 +221,7 @@ export const validationTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -265,6 +268,7 @@ export const validationTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
@@ -351,6 +355,7 @@ export const validationTestData: ProcessorTestData[] = [
}),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/linkedin_audience/processor/business.ts b/test/integrations/destinations/linkedin_audience/processor/business.ts
index 28cb6a9a97..8878d58ced 100644
--- a/test/integrations/destinations/linkedin_audience/processor/business.ts
+++ b/test/integrations/destinations/linkedin_audience/processor/business.ts
@@ -85,6 +85,7 @@ export const businessTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -188,6 +189,7 @@ export const businessTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -317,6 +319,7 @@ export const businessTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -468,6 +471,7 @@ export const businessTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/linkedin_audience/processor/validation.ts b/test/integrations/destinations/linkedin_audience/processor/validation.ts
index 3ad37b2f4d..ae63251e24 100644
--- a/test/integrations/destinations/linkedin_audience/processor/validation.ts
+++ b/test/integrations/destinations/linkedin_audience/processor/validation.ts
@@ -86,6 +86,7 @@ export const validationTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -227,6 +228,7 @@ export const validationTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
@@ -337,6 +339,7 @@ export const validationTestData: ProcessorTestData[] = [
},
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/movable_ink/processor/identify.ts b/test/integrations/destinations/movable_ink/processor/identify.ts
index 0fe806df4a..60c9b39d76 100644
--- a/test/integrations/destinations/movable_ink/processor/identify.ts
+++ b/test/integrations/destinations/movable_ink/processor/identify.ts
@@ -31,6 +31,7 @@ export const identify: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/movable_ink/processor/track.ts b/test/integrations/destinations/movable_ink/processor/track.ts
index 890de11a0c..e34e1799e5 100644
--- a/test/integrations/destinations/movable_ink/processor/track.ts
+++ b/test/integrations/destinations/movable_ink/processor/track.ts
@@ -33,6 +33,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -96,6 +97,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -159,6 +161,7 @@ export const track: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/movable_ink/processor/validation.ts b/test/integrations/destinations/movable_ink/processor/validation.ts
index 6aafb5e2c0..575337a20f 100644
--- a/test/integrations/destinations/movable_ink/processor/validation.ts
+++ b/test/integrations/destinations/movable_ink/processor/validation.ts
@@ -27,6 +27,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -71,6 +72,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -111,6 +113,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -154,6 +157,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -197,6 +201,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -241,6 +246,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/refiner/processor/groupTestData.ts b/test/integrations/destinations/refiner/processor/groupTestData.ts
index e3a05357f5..7ee6ad7e68 100644
--- a/test/integrations/destinations/refiner/processor/groupTestData.ts
+++ b/test/integrations/destinations/refiner/processor/groupTestData.ts
@@ -62,6 +62,7 @@ export const groupTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/refiner/processor/identifyTestData.ts b/test/integrations/destinations/refiner/processor/identifyTestData.ts
index cc3704bb45..0d4b4a0d03 100644
--- a/test/integrations/destinations/refiner/processor/identifyTestData.ts
+++ b/test/integrations/destinations/refiner/processor/identifyTestData.ts
@@ -88,6 +88,7 @@ export const identifyTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/refiner/processor/pageTestData.ts b/test/integrations/destinations/refiner/processor/pageTestData.ts
index b6c782202e..c53804db9f 100644
--- a/test/integrations/destinations/refiner/processor/pageTestData.ts
+++ b/test/integrations/destinations/refiner/processor/pageTestData.ts
@@ -75,6 +75,7 @@ export const pageTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/refiner/processor/trackTestData.ts b/test/integrations/destinations/refiner/processor/trackTestData.ts
index e10ac6f0f5..cdea22540d 100644
--- a/test/integrations/destinations/refiner/processor/trackTestData.ts
+++ b/test/integrations/destinations/refiner/processor/trackTestData.ts
@@ -85,6 +85,7 @@ export const trackTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/refiner/processor/validationTestData.ts b/test/integrations/destinations/refiner/processor/validationTestData.ts
index 20a9694fdf..5b408b5e5c 100644
--- a/test/integrations/destinations/refiner/processor/validationTestData.ts
+++ b/test/integrations/destinations/refiner/processor/validationTestData.ts
@@ -83,6 +83,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -125,6 +126,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -166,6 +168,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
@@ -208,6 +211,7 @@ export const validationTestData: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/topsort/processor/trackClicksTestData.ts b/test/integrations/destinations/topsort/processor/trackClicksTestData.ts
index 2cfd458905..7e187cc0d4 100644
--- a/test/integrations/destinations/topsort/processor/trackClicksTestData.ts
+++ b/test/integrations/destinations/topsort/processor/trackClicksTestData.ts
@@ -97,6 +97,7 @@ export const trackClicksTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -216,6 +217,7 @@ export const trackClicksTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -356,6 +358,7 @@ export const trackClicksTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -477,6 +480,7 @@ export const trackClicksTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/topsort/processor/trackImpressionsTestData.ts b/test/integrations/destinations/topsort/processor/trackImpressionsTestData.ts
index 2f1fc60571..385a068d70 100644
--- a/test/integrations/destinations/topsort/processor/trackImpressionsTestData.ts
+++ b/test/integrations/destinations/topsort/processor/trackImpressionsTestData.ts
@@ -93,6 +93,7 @@ export const trackImpressionsTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -212,6 +213,7 @@ export const trackImpressionsTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -352,6 +354,7 @@ export const trackImpressionsTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/topsort/processor/trackPurchasesTestData.ts b/test/integrations/destinations/topsort/processor/trackPurchasesTestData.ts
index a4736fb471..b1ab98b8f1 100644
--- a/test/integrations/destinations/topsort/processor/trackPurchasesTestData.ts
+++ b/test/integrations/destinations/topsort/processor/trackPurchasesTestData.ts
@@ -93,6 +93,7 @@ export const trackPurchasesTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -212,6 +213,7 @@ export const trackPurchasesTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -355,6 +357,7 @@ export const trackPurchasesTestData: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/topsort/router/data.ts b/test/integrations/destinations/topsort/router/data.ts
index 0cabdcbac8..d226f8610c 100644
--- a/test/integrations/destinations/topsort/router/data.ts
+++ b/test/integrations/destinations/topsort/router/data.ts
@@ -97,6 +97,7 @@ export const data: RouterTestData[] = [
],
destType: 'topsort',
},
+ method: 'POST',
},
},
output: {
@@ -228,6 +229,7 @@ export const data: RouterTestData[] = [
],
destType: 'topsort',
},
+ method: 'POST',
},
},
output: {
@@ -353,6 +355,7 @@ export const data: RouterTestData[] = [
],
destType: 'topsort',
},
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/tune/processor/trackTestData.ts b/test/integrations/destinations/tune/processor/trackTestData.ts
index d9bfab54e3..d42c4136b6 100644
--- a/test/integrations/destinations/tune/processor/trackTestData.ts
+++ b/test/integrations/destinations/tune/processor/trackTestData.ts
@@ -78,6 +78,7 @@ export const trackTestdata: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -140,6 +141,7 @@ export const trackTestdata: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
@@ -198,6 +200,7 @@ export const trackTestdata: ProcessorTestData[] = [
destination,
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/tune/router/data.ts b/test/integrations/destinations/tune/router/data.ts
index 4aee5b8967..66d19f481d 100644
--- a/test/integrations/destinations/tune/router/data.ts
+++ b/test/integrations/destinations/tune/router/data.ts
@@ -78,6 +78,7 @@ export const data: RouterTestData[] = [
],
destType: 'tune',
},
+ method: 'POST',
},
},
output: {
@@ -156,6 +157,7 @@ export const data: RouterTestData[] = [
],
destType: 'tune',
},
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/destinations/wunderkind/processor/validation.ts b/test/integrations/destinations/wunderkind/processor/validation.ts
index aeabdd497b..38c94ecef1 100644
--- a/test/integrations/destinations/wunderkind/processor/validation.ts
+++ b/test/integrations/destinations/wunderkind/processor/validation.ts
@@ -30,6 +30,7 @@ export const validation: ProcessorTestData[] = [
metadata: generateMetadata(1),
},
],
+ method: 'POST',
},
},
output: {
diff --git a/test/integrations/testTypes.ts b/test/integrations/testTypes.ts
index b11403f50a..971ef5969c 100644
--- a/test/integrations/testTypes.ts
+++ b/test/integrations/testTypes.ts
@@ -45,6 +45,7 @@ export interface TestCaseData {
skipGo?: string;
scenario?: string;
successCriteria?: string;
+ tags?: string[];
comment?: string;
feature: string;
module: string;
@@ -92,6 +93,7 @@ export type ProcessorTestData = {
version: string;
input: {
request: {
+ method: string;
body: ProcessorTransformationRequest[];
};
};
@@ -116,6 +118,7 @@ export type RouterTestData = {
input: {
request: {
body: RouterTransformationRequest;
+ method: string;
};
};
output: {
diff --git a/test/scripts/migrateTest.ts b/test/scripts/migrateTest.ts
new file mode 100644
index 0000000000..6757aa4bd1
--- /dev/null
+++ b/test/scripts/migrateTest.ts
@@ -0,0 +1,155 @@
+import fs from 'fs';
+import path from 'path';
+
+import prettier from 'prettier';
+import { Command } from 'commander';
+
+// Initialize command line options
+const program = new Command();
+program
+ .option('-d, --destination ', 'Destination name to migrate')
+ .option('-f, --feature ', 'Feature type (processor/router/proxy)', 'processor')
+ // .option('-p, --path ', 'Base path for test files', path.join(__dirname, 'destinations'))
+ .parse(process.argv);
+
+const options = program.opts();
+
+// Default values and utility functions from the previous example
+import {
+ migrateProcessorTestCase,
+ migrateRouterTestCase,
+ migrateProxyTestCase,
+ extractCommonValues,
+ generateOptimizedTestFile,
+} from './migrationUtils';
+import { getTestData, getTestDataFilePaths } from '../integrations/testUtils';
+
+function readTestFile(filePath: string): any {
+ try {
+ const fileContent = getTestData(filePath);
+ return fileContent;
+ } catch (error) {
+ console.error(`Error reading test file ${filePath}:`, error);
+ return null;
+ }
+}
+
+async function formatWithPrettier(content: string, filepath: string): Promise {
+ try {
+ // Try to load prettier config from the project
+ const prettierConfig = await prettier.resolveConfig(filepath);
+
+ // Format the content using prettier with either found config or defaults
+ const formattedContent = await prettier.format(content, {
+ ...prettierConfig,
+ filepath, // This helps prettier determine parser based on file extension
+ parser: 'typescript', // Fallback to typescript parser if not determined from filepath
+ });
+
+ return formattedContent;
+ } catch (error) {
+ console.error('Error formatting file with prettier:', error);
+ // Return original content if formatting fails
+ return content;
+ }
+}
+
+async function enhancedwriteTestFile(
+ filePath: string,
+ testCases: any[],
+ feature: string,
+): Promise {
+ try {
+ // Extract common values
+ const commonValues = extractCommonValues(testCases);
+
+ // Generate optimized content
+ const content = generateOptimizedTestFile(testCases, commonValues, feature);
+
+ // Format with prettier
+ const formattedContent = await formatWithPrettier(content, filePath);
+
+ // Write the formatted content
+ fs.writeFileSync(filePath, formattedContent);
+ } catch (error) {
+ console.error(`Error writing to file ${filePath}:`, error);
+ throw error;
+ }
+}
+
+async function migrateTestFiles(): Promise {
+ const { destination, feature } = options;
+
+ if (!destination) {
+ console.error('Please specify a destination with -d or --destination');
+ process.exit(1);
+ }
+
+ console.log(`Starting migration for destination: ${destination}, feature: ${feature}`);
+
+ const basePath = path.resolve(__dirname, '..');
+
+ const testFiles = getTestDataFilePaths(basePath, options);
+
+ if (testFiles.length === 0) {
+ console.log('No test files found matching the criteria');
+ return;
+ }
+
+ let migratedCount = 0;
+ let errorCount = 0;
+
+ for (const filePath of testFiles) {
+ console.log(`\nProcessing file: ${filePath}`);
+ try {
+ const testCases = readTestFile(filePath);
+ if (!testCases) continue;
+
+ const migratedTests = testCases.map((testCase: any, index: number) => {
+ try {
+ switch (feature.toLowerCase()) {
+ case 'processor':
+ return migrateProcessorTestCase(testCase, index);
+ case 'router':
+ return migrateRouterTestCase(testCase, index);
+ case 'proxy':
+ return migrateProxyTestCase(testCase, index);
+ default:
+ throw new Error(`Unsupported feature type: ${feature}`);
+ }
+ } catch (error) {
+ console.error(`Error migrating test case: ${testCase.name || 'unnamed'}`, error);
+ return testCase;
+ }
+ });
+
+ // Create backup of original file
+ const backupPath = filePath.replace('data.ts', 'data.backup.ts');
+ fs.copyFileSync(filePath, backupPath);
+ console.log(`Created backup at: ${backupPath}`);
+
+ // Write migrated tests
+ await enhancedwriteTestFile(filePath, migratedTests, feature.toLowerCase());
+ console.log(`Successfully migrated ${migratedTests.length} test cases in ${filePath}`);
+ migratedCount += migratedTests.length;
+ } catch (error) {
+ console.error(`Error processing file ${filePath}:`, error);
+ errorCount++;
+ }
+ }
+
+ console.log('\nMigration Summary:');
+ console.log(`Total files processed: ${testFiles.length}`);
+ console.log(`Total test cases migrated: ${migratedCount}`);
+ console.log(`Files with errors: ${errorCount}`);
+}
+
+// Run migration if this script is called directly
+if (require.main === module) {
+ migrateTestFiles().catch((error) => {
+ console.error('Migration failed:', error);
+ process.exit(1);
+ });
+}
+
+export { migrateTestFiles };
diff --git a/test/scripts/migrationUtils.ts b/test/scripts/migrationUtils.ts
new file mode 100644
index 0000000000..67d158a85f
--- /dev/null
+++ b/test/scripts/migrationUtils.ts
@@ -0,0 +1,465 @@
+import { removeUndefinedValues } from '@rudderstack/integrations-lib';
+import {
+ Metadata,
+ Destination,
+ ProcessorTransformationRequest,
+ RouterTransformationRequest,
+ ProxyV1Request,
+ ProcessorTransformationResponse,
+ RouterTransformationResponse,
+} from '../../src/types';
+
+import {
+ TestCaseData,
+ ProcessorTestData,
+ RouterTestData,
+ ProxyV1TestData,
+} from '../integrations/testTypes';
+
+// Default metadata to fill in missing fields
+const defaultMetadata: Metadata = {
+ sourceId: 'default-source',
+ workspaceId: 'default-workspace',
+ namespace: 'default-namespace',
+ instanceId: 'default-instance',
+ sourceType: 'default-source-type',
+ sourceCategory: 'default-category',
+ trackingPlanId: 'default-tracking-plan',
+ trackingPlanVersion: 1,
+ sourceTpConfig: {},
+ mergedTpConfig: {},
+ destinationId: 'default-destination',
+ jobRunId: 'default-job-run',
+ jobId: 1,
+ sourceBatchId: 'default-batch',
+ sourceJobId: 'default-source-job',
+ sourceJobRunId: 'default-source-job-run',
+ sourceTaskId: 'default-task',
+ sourceTaskRunId: 'default-task-run',
+ recordId: {},
+ destinationType: 'default-destination-type',
+ messageId: 'default-message-id',
+ oauthAccessToken: 'default-token',
+ messageIds: ['default-message-id'],
+ rudderId: 'default-rudder-id',
+ receivedAt: new Date().toISOString(),
+ eventName: 'default-event',
+ eventType: 'default-type',
+ sourceDefinitionId: 'default-source-def',
+ destinationDefinitionId: 'default-dest-def',
+ transformationId: 'default-transform',
+ dontBatch: false,
+};
+
+// Default destination configuration
+const defaultDestination: Destination = {
+ ID: 'default-destination-id',
+ Name: 'Default Destination',
+ DestinationDefinition: {
+ ID: 'default-dest-def-id',
+ Name: 'Default Destination Definition',
+ DisplayName: 'Default Display Name',
+ Config: {},
+ },
+ Config: {},
+ Enabled: true,
+ WorkspaceID: 'default-workspace',
+ Transformations: [],
+ RevisionID: 'default-revision',
+ IsProcessorEnabled: true,
+ IsConnectionEnabled: true,
+};
+
+// Utility function to migrate generic test cases
+export function migrateTestCase(oldTestCase: any): TestCaseData {
+ return {
+ id: oldTestCase.id || `test-${Date.now()}`,
+ name: oldTestCase.name || 'Migrated Test Case',
+ description: oldTestCase.description || 'Migrated from legacy test case',
+ scenario: oldTestCase.scenario || 'Default scenario',
+ successCriteria: oldTestCase.successCriteria || 'Test should pass successfully',
+ feature: oldTestCase.feature || 'default-feature',
+ module: oldTestCase.module || 'default-module',
+ version: oldTestCase.version || '1.0.0',
+ input: {
+ request: {
+ method: oldTestCase.input?.request?.method || 'POST',
+ body: oldTestCase.input?.request?.body || {},
+ headers: oldTestCase.input?.request?.headers || {},
+ params: oldTestCase.input?.request?.params || {},
+ },
+ pathSuffix: oldTestCase.input?.pathSuffix,
+ },
+ output: {
+ response: {
+ status: oldTestCase.output?.response?.status || 200,
+ body: oldTestCase.output?.response?.body || {},
+ headers: oldTestCase.output?.response?.headers || {},
+ },
+ },
+ };
+}
+
+// Utility function to migrate processor test cases
+export function migrateProcessorTestCase(oldTestCase: any, index: number): ProcessorTestData {
+ const processorRequest: ProcessorTransformationRequest = {
+ message: oldTestCase.input?.request?.body[0]?.message || {},
+ metadata: { ...defaultMetadata, ...oldTestCase.input?.request?.body[0]?.metadata },
+ destination: { ...defaultDestination, ...oldTestCase.input?.request?.body[0]?.destination },
+ };
+
+ const processorResponse: ProcessorTransformationResponse = {
+ output: oldTestCase.output?.response?.body[0]?.output,
+ metadata: { ...defaultMetadata, ...oldTestCase.output?.response?.body[0]?.metadata },
+ statusCode: oldTestCase.output?.response?.body[0]?.statusCode || 200,
+ error: oldTestCase.output?.response?.body[0]?.error,
+ statTags: oldTestCase.output?.response?.body[0]?.statTags,
+ };
+
+ return removeUndefinedValues({
+ id: oldTestCase.id || `processor-${Date.now()}`,
+ name: oldTestCase.name || 'Processor Test Case',
+ description: oldTestCase.description || 'Migrated processor test case',
+ scenario: oldTestCase.scenario || 'Default processor scenario',
+ successCriteria: oldTestCase.successCriteria || 'Processor test should pass successfully',
+ feature: oldTestCase.feature || 'processor',
+ module: oldTestCase.module || 'transformation',
+ version: oldTestCase.version || '1.0.0',
+ input: {
+ request: {
+ method: oldTestCase.input?.request?.method || 'POST',
+ body: [processorRequest],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [processorResponse],
+ },
+ },
+ mockFns: oldTestCase.mockFns ? `Add mock of index ${index}` : undefined,
+ }) as ProcessorTestData;
+}
+
+// Utility function to migrate router test cases
+export function migrateRouterTestCase(oldTestCase: any, index: number): RouterTestData {
+ const input = Array.isArray(oldTestCase.input.request.body.input)
+ ? oldTestCase.input.request.body.input.map((item: any) => ({
+ message: item.message || {},
+ metadata: { ...defaultMetadata, ...item.metadata },
+ destination: { ...defaultDestination, ...item.destination },
+ }))
+ : {
+ message: oldTestCase.input.request.body.input?.message || {},
+ metadata: { ...defaultMetadata, ...oldTestCase.input.request.body.input?.metadata },
+ destination: {
+ ...defaultDestination,
+ ...oldTestCase.input.request.body.input?.destination,
+ },
+ };
+ const routerRequest: RouterTransformationRequest = {
+ input: input,
+ destType: oldTestCase.input?.request?.body?.destType || 'default-destination-type',
+ };
+
+ const routerResponse: RouterTransformationResponse = oldTestCase.output.response.body.output.map(
+ (op) => {
+ return removeUndefinedValues({
+ batchedRequest: op.batchedRequest,
+ metadata: op.metadata.map((m: any) => ({ ...defaultMetadata, ...m })),
+ statusCode: op.statusCode || 200,
+ destination: { ...defaultDestination, ...op.destination },
+ batched: op.batched || false,
+ error: op.error,
+ statTags: op.statTags,
+ });
+ },
+ );
+
+ return removeUndefinedValues({
+ id: oldTestCase.id || `router-${Date.now()}`,
+ name: oldTestCase.name || 'Router Test Case',
+ description: oldTestCase.description || 'Migrated router test case',
+ scenario: oldTestCase.scenario || 'Default router scenario',
+ successCriteria: oldTestCase.successCriteria || 'Router test should pass successfully',
+ feature: oldTestCase.feature || 'router',
+ module: oldTestCase.module || 'transformation',
+ version: oldTestCase.version || '1.0.0',
+ input: {
+ request: {
+ body: routerRequest,
+ method: oldTestCase.input?.request?.method || 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: routerResponse,
+ },
+ },
+ },
+ mockFns: oldTestCase.mockFns ? `Add mock of index ${index}` : undefined,
+ }) as RouterTestData;
+}
+
+// Utility function to migrate proxy test cases
+export function migrateProxyTestCase(oldTestCase: any, index: number): ProxyV1TestData {
+ const proxyRequest: ProxyV1Request = {
+ version: oldTestCase.input?.request?.body?.version || '1.0.0',
+ type: oldTestCase.input?.request?.body?.type || 'default-type',
+ method: oldTestCase.input?.request?.body?.method || 'POST',
+ endpoint: oldTestCase.input?.request?.body?.endpoint || '/default-endpoint',
+ userId: oldTestCase.input?.request?.body?.userId || 'default-user',
+ metadata: [
+ {
+ jobId: 1,
+ attemptNum: 1,
+ userId: 'default-user',
+ sourceId: 'default-source',
+ destinationId: 'default-destination',
+ workspaceId: 'default-workspace',
+ secret: {},
+ dontBatch: false,
+ },
+ ],
+ destinationConfig: {},
+ };
+
+ return {
+ id: oldTestCase.id || `proxy-${Date.now()}`,
+ name: oldTestCase.name || 'Proxy Test Case',
+ description: oldTestCase.description || 'Migrated proxy test case',
+ scenario: oldTestCase.scenario || 'Default proxy scenario',
+ successCriteria: oldTestCase.successCriteria || 'Proxy test should pass successfully',
+ feature: oldTestCase.feature || 'proxy',
+ module: oldTestCase.module || 'delivery',
+ version: oldTestCase.version || '1.0.0',
+ input: {
+ request: {
+ body: proxyRequest,
+ method: oldTestCase.input?.request?.method || 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Success',
+ response: [
+ {
+ error: '',
+ statusCode: 200,
+ metadata: proxyRequest.metadata[0],
+ },
+ ],
+ },
+ },
+ },
+ },
+ };
+}
+
+interface CommonValues {
+ metadata?: Metadata;
+ destination?: Destination;
+ baseRequest?: {
+ headers?: Record;
+ params?: Record;
+ };
+ commonConfig?: Record;
+}
+
+function deepDiff(obj1: any, obj2: any): any {
+ const diff: any = {};
+
+ for (const key in obj1) {
+ if (typeof obj1[key] === 'object' && obj1[key] !== null) {
+ const nestedDiff = deepDiff(obj1[key], obj2[key] || {});
+ if (Object.keys(nestedDiff).length > 0) {
+ diff[key] = nestedDiff;
+ }
+ } else if (obj1[key] !== obj2[key]) {
+ diff[key] = obj2[key];
+ }
+ }
+
+ return diff;
+}
+
+export function extractCommonValues(testCases: any[]): CommonValues {
+ const commonValues: CommonValues = {};
+
+ // Only proceed if we have test cases
+ if (testCases.length === 0) return commonValues;
+
+ // Extract metadata from first test case as base
+ const firstCase = testCases[0];
+ let isMetadataCommon = true;
+ let isDestinationCommon = true;
+ let baseMetadata: Metadata | undefined;
+ let baseDestination: Destination | undefined;
+
+ // For processor and router cases
+ if (firstCase.input?.request?.body) {
+ if (Array.isArray(firstCase.input.request.body)) {
+ baseMetadata = firstCase.input.request.body[0]?.metadata;
+ baseDestination = firstCase.input.request.body[0]?.destination;
+ } else {
+ baseMetadata = firstCase.input.request.body?.metadata;
+ baseDestination = firstCase.input.request.body?.destination;
+ }
+ }
+
+ // Compare with other test cases
+ for (const testCase of testCases.slice(1)) {
+ let currentMetadata;
+ let currentDestination;
+
+ if (testCase.input?.request?.body) {
+ if (Array.isArray(testCase.input.request.body)) {
+ currentMetadata = testCase.input.request.body[0]?.metadata;
+ currentDestination = testCase.input.request.body[0]?.destination;
+ } else {
+ currentMetadata = testCase.input.request.body?.metadata;
+ currentDestination = testCase.input.request.body?.destination;
+ }
+ }
+
+ // Check if metadata is common
+ if (baseMetadata && currentMetadata) {
+ const metadataDiff = deepDiff(baseMetadata, currentMetadata);
+ if (Object.keys(metadataDiff).length > 0) {
+ isMetadataCommon = false;
+ }
+ }
+
+ // Check if destination is common
+ if (baseDestination && currentDestination) {
+ const destinationDiff = deepDiff(baseDestination, currentDestination);
+ if (Object.keys(destinationDiff).length > 0) {
+ isDestinationCommon = false;
+ }
+ }
+ }
+
+ if (isMetadataCommon && baseMetadata) {
+ commonValues.metadata = baseMetadata;
+ }
+
+ if (isDestinationCommon && baseDestination) {
+ commonValues.destination = baseDestination;
+ }
+
+ return commonValues;
+}
+
+export function generateOptimizedTestFile(
+ testCases: any[],
+ commonValues: CommonValues,
+ feature: string,
+): string {
+ const variables: string[] = [];
+ const imports: Set = new Set([]);
+
+ // Add necessary imports based on common values
+ if (commonValues.metadata) imports.add('Metadata');
+ if (commonValues.destination) imports.add('Destination');
+
+ // Generate common variables
+ if (commonValues.metadata) {
+ variables.push(
+ `const baseMetadata: Metadata = ${JSON.stringify(commonValues.metadata, null, 2)};`,
+ );
+ }
+
+ if (commonValues.destination) {
+ variables.push(`
+const baseDestination: Destination = ${JSON.stringify(commonValues.destination, null, 2)};`);
+ }
+
+ // Process test cases to use common variables
+ const processedTests = testCases.map((testCase) => {
+ const processedCase = { ...testCase };
+
+ if (commonValues.metadata && testCase.input?.request?.body) {
+ // Handle input metadata
+ if (Array.isArray(testCase.input.request.body)) {
+ processedCase.input.request.body = testCase.input.request.body.map((item: any) => ({
+ ...item,
+ metadata: 'baseMetadata', // special marker
+ }));
+ } else {
+ processedCase.input.request.body.metadata = 'baseMetadata'; // special marker
+ processedCase.output.metadata = 'baseMetadata'; // special marker
+ }
+ // Handle output metadata
+ if (Array.isArray(testCase.output.response.body)) {
+ processedCase.output.response.body = testCase.output.response.body.map((item: any) => ({
+ ...item,
+ metadata: 'baseMetadata', // special marker
+ }));
+ } else {
+ processedCase.output.response.body.metadata = 'baseMetadata'; // special marker
+ }
+ }
+
+ if (commonValues.destination && testCase.input?.request?.body) {
+ // Handle input destination
+ if (Array.isArray(testCase.input.request.body)) {
+ processedCase.input.request.body = testCase.input.request.body.map((item: any) => ({
+ ...item,
+ destination: 'baseDestination', // special marker
+ }));
+ } else {
+ processedCase.input.request.body.destination = 'baseDestination'; // special marker
+ }
+ // Handle output destination
+ if (Array.isArray(testCase.output.response.body)) {
+ processedCase.output.response.body = testCase.output.response.body.map((item: any) => ({
+ ...item,
+ metadata: 'baseMetadata', // special marker
+ }));
+ } else {
+ processedCase.output.response.body.metadata = 'baseMetadata'; // special marker
+ }
+ }
+
+ return processedCase;
+ });
+
+ // const functionReplacer = (key, value) => {
+ // if (typeof value === 'function') {
+ // return value.toString();
+ // }
+ // return value;
+ // };
+
+ let type = '';
+ if (feature === 'processor') {
+ type = 'ProcessorTestData';
+ } else if (feature === 'router') {
+ type = 'RouterTestData';
+ }
+
+ // Generate the final file content
+ const content = `/**
+ * Auto-migrated and optimized test cases
+ * Generated on: ${new Date().toISOString()}
+ */
+
+ import { ${type} } from '../../../testTypes';
+ import { ${Array.from(imports).join(', ')} } from '../../../../../src/types';
+
+ ${variables.join('\n')}
+
+ export const data: ${type}[] = ${JSON.stringify(processedTests, null, 2)};
+ `;
+
+ // Replace our special markers with actual variable references
+ return content
+ .replaceAll('"baseMetadata"', 'baseMetadata')
+ .replaceAll('"baseDestination"', 'baseDestination');
+}
diff --git a/test/test_reporter/allureReporter.ts b/test/test_reporter/allureReporter.ts
new file mode 100644
index 0000000000..3165aaa96a
--- /dev/null
+++ b/test/test_reporter/allureReporter.ts
@@ -0,0 +1,134 @@
+import * as allure from 'allure-js-commons';
+import { diff as jsonDiff } from 'jest-diff';
+import _ from 'lodash';
+import { TestCaseData } from '../integrations/testTypes';
+import { compareObjects } from '../integrations/testUtils';
+
+interface TestReportData {
+ testCase: TestCaseData;
+ actualResponse: any;
+ status: 'passed' | 'failed';
+ diff?: string;
+}
+
+/**
+ * Enhanced test reporter with detailed JSON diff and Allure integration
+ */
+export const enhancedTestReport = {
+ /**
+ * Generate a detailed test report with JSON diff for failed cases
+ */
+ generateDetailedReport(data: TestReportData) {
+ const { testCase, actualResponse, status } = data;
+ const expectedResponse = testCase.output.response?.body;
+
+ // Create Allure test case details
+ allure.description(`
+ Feature: ${testCase.feature}
+ Description: ${testCase.description}
+ Success Criteria: ${testCase.successCriteria || 'N/A'}
+ Scenario: ${testCase.scenario || 'N/A'}
+ Test ID: ${testCase.id || 'N/A'}
+ API Version: ${testCase.version || 'N/A'}
+ `);
+
+ // Add request/response as attachments
+ allure.attachment(
+ 'Request',
+ JSON.stringify(testCase.input.request, null, 2),
+ 'application/json',
+ );
+ allure.attachment(
+ 'Actual Response',
+ JSON.stringify(actualResponse, null, 2),
+ 'application/json',
+ );
+
+ if (status === 'failed') {
+ const diffResult = jsonDiff(expectedResponse, actualResponse, {
+ expand: false, // Compact diff view
+ contextLines: 3, // Show 3 lines of context around changes
+ });
+
+ const diffKeys = compareObjects(expectedResponse, actualResponse);
+
+ if (diffResult) {
+ allure.attachment(
+ 'Expected Response',
+ JSON.stringify(expectedResponse, null, 2),
+ 'application/json',
+ );
+
+ allure.attachment('Diff Keys', JSON.stringify(diffKeys), 'text/plain');
+ }
+
+ // Add failure details
+ const failureMessage = `Test failed for ${testCase.name}\nSee JSON diff for details`;
+ allure.step(failureMessage, () => {
+ throw new Error(failureMessage);
+ });
+ }
+
+ return status;
+ },
+
+ /**
+ * Validate test case response with enhanced reporting
+ */
+ validateTestResponse(testCase: TestCaseData, response: any): boolean {
+ const expectedResponse = testCase.output.response?.body;
+ const actualResponse = response;
+ const status = _.isEqual(actualResponse, expectedResponse) ? 'passed' : 'failed';
+
+ this.generateDetailedReport({
+ testCase,
+ actualResponse,
+ status,
+ });
+
+ return status === 'passed';
+ },
+};
+
+/**
+ * Enhanced test utilities with better organization
+ */
+export const enhancedTestUtils = {
+ /**
+ * Setup test suite with Allure reporting
+ */
+ setupTestSuite(testData: TestCaseData) {
+ allure.epic(testData.name);
+ allure.feature(testData.module);
+ allure.story(testData.feature);
+ allure.displayName(testData.description);
+ if (testData.scenario) {
+ allure.tag(testData.scenario);
+ }
+ if (testData.tags) {
+ allure.tags(...testData.tags);
+ }
+ if (testData.id) {
+ allure.allureId(testData.id);
+ }
+ },
+
+ /**
+ * Run pre-test preparations
+ */
+ beforeTestRun(testCase: TestCaseData) {
+ allure.step('Test Setup', () => {
+ // Setup new test
+ this.setupTestSuite(testCase);
+ });
+ },
+
+ /**
+ * Run post-test cleanup and reporting
+ */
+ afterTestRun(testCase: TestCaseData, response: any) {
+ allure.step('Test Verification', () => {
+ return enhancedTestReport.validateTestResponse(testCase, response);
+ });
+ },
+};