Skip to content

Commit

Permalink
chore: migrate test cases to new component test suit (#2579)
Browse files Browse the repository at this point in the history
* migrate test cases to new component test suit

* chore: migrate lambda tests

* chore: migrate kochava tests

* chore: migrate lambda tests

* chore: migrate leanplum router tests

* chore: migrate lemnisk tests

* chore: migrate lytics tests

* chore: migrate mailjet tests

* chore: migrate mailmodo tests

* chore: migrate marketo_static_list tests

* chore: migrate moengage tests

* chore: migrate moetate tests

* chore: migrate ometria tests

* chore: migrate one_signal tests

* chore: migrate pagerduty tests

* chore: migrate pinterest_tag tests

* chore: migrate pardot tests
  • Loading branch information
ujjwal-ab authored Sep 12, 2023
1 parent a2a9c37 commit e73e999
Show file tree
Hide file tree
Showing 30 changed files with 74,925 additions and 0 deletions.
1,404 changes: 1,404 additions & 0 deletions test/integrations/destinations/kochava/processor/data.ts

Large diffs are not rendered by default.

498 changes: 498 additions & 0 deletions test/integrations/destinations/lambda/processor/data.ts

Large diffs are not rendered by default.

38,788 changes: 38,788 additions & 0 deletions test/integrations/destinations/lambda/router/data.ts

Large diffs are not rendered by default.

1,708 changes: 1,708 additions & 0 deletions test/integrations/destinations/leanplum/processor/data.ts

Large diffs are not rendered by default.

370 changes: 370 additions & 0 deletions test/integrations/destinations/leanplum/router/data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
export const data = [
{
name: 'leanplum',
description: 'Test 0',
feature: 'router',
module: 'destination',
version: 'v0',
input: {
request: {
body: {
input: [
{
message: {
anonymousId: '5094f5704b9cf2b3',
channel: 'mobile',
context: {
app: {
build: '1',
name: 'LeanPlumIntegrationAndroid',
namespace: 'com.android.SampleLeanPlum',
version: '1.0',
},
device: {
id: '5094f5704b9cf2b3',
manufacturer: 'Google',
model: 'Android SDK built for x86',
name: 'generic_x86',
type: 'android',
},
library: {
name: 'com.rudderstack.android.sdk.core',
version: '1.0.1-beta.1',
},
locale: 'en-US',
network: {
carrier: 'Android',
bluetooth: false,
cellular: true,
wifi: true,
},
os: {
name: 'Android',
version: '8.1.0',
},
screen: {
density: 420,
height: 1794,
width: 1080,
},
timezone: 'Asia/Kolkata',
traits: {
anonymousId: '5094f5704b9cf2b3',
},
userAgent:
'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)',
},
event: 'MainActivity',
integrations: {
All: true,
},
messageId: 'id1',
properties: {
name: 'MainActivity',
automatic: true,
},
originalTimestamp: '2020-03-12T09:05:03.421Z',
type: 'screen',
sentAt: '2020-03-12T09:05:13.042Z',
},
metadata: {
jobId: 1,
},
destination: {
Config: {
applicationId: 'leanplum_application_id',
clientKey: 'leanplum_client_key',
isDevelop: true,
useNativeSDK: false,
sendEvents: false,
},
},
},
],
destType: 'leanplum',
},
method: 'POST',
},
},
output: {
response: {
status: 200,
body: {
output: [
{
batchedRequest: [
{
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://api.leanplum.com/api',
headers: {
'Content-Type': 'application/json',
},
params: {
action: 'start',
},
body: {
JSON: {
appId: 'leanplum_application_id',
clientKey: 'leanplum_client_key',
apiVersion: '1.0.6',
userId: '5094f5704b9cf2b3',
deviceId: '5094f5704b9cf2b3',
appVersion: '1.0',
systemName: 'Android',
systemVersion: '8.1.0',
deviceName: 'generic_x86',
deviceModel: 'Android SDK built for x86',
userAttributes: {
anonymousId: '5094f5704b9cf2b3',
},
locale: 'en-US',
timezone: 'Asia/Kolkata',
time: 1584003903,
devMode: true,
},
XML: {},
JSON_ARRAY: {},
FORM: {},
},
files: {},
userId: '5094f5704b9cf2b3',
},
{
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://api.leanplum.com/api',
headers: {
'Content-Type': 'application/json',
},
params: {
action: 'advance',
},
body: {
JSON: {
appId: 'leanplum_application_id',
clientKey: 'leanplum_client_key',
apiVersion: '1.0.6',
userId: '5094f5704b9cf2b3',
state: 'MainActivity',
deviceId: '5094f5704b9cf2b3',
time: 1584003903,
devMode: true,
},
XML: {},
JSON_ARRAY: {},
FORM: {},
},
files: {},
userId: '5094f5704b9cf2b3',
},
],
metadata: [
{
jobId: 1,
},
],
batched: false,
statusCode: 200,
destination: {
Config: {
applicationId: 'leanplum_application_id',
clientKey: 'leanplum_client_key',
isDevelop: true,
useNativeSDK: false,
sendEvents: false,
},
},
},
],
},
},
},
},
{
name: 'leanplum',
description: 'Test 1',
feature: 'router',
module: 'destination',
version: 'v0',
input: {
request: {
body: {
input: [
{
message: {
anonymousId: '5094f5704b9cf2b3',
channel: 'mobile',
context: {
app: {
build: '1',
name: 'LeanPlumIntegrationAndroid',
namespace: 'com.android.SampleLeanPlum',
version: '1.0',
},
device: {
id: '5094f5704b9cf2b3',
manufacturer: 'Google',
model: 'Android SDK built for x86',
name: 'generic_x86',
type: 'android',
},
library: {
name: 'com.rudderstack.android.sdk.core',
version: '1.0.1-beta.1',
},
locale: 'en-US',
network: {
carrier: 'Android',
bluetooth: false,
cellular: true,
wifi: true,
},
os: {
name: 'Android',
version: '8.1.0',
},
screen: {
density: 420,
height: 1794,
width: 1080,
},
timezone: 'Asia/Kolkata',
traits: {
anonymousId: '5094f5704b9cf2b3',
},
userAgent:
'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)',
},
event: 'MainActivity',
integrations: {
All: true,
},
messageId: 'id2',
properties: {
name: 'MainActivity',
automatic: true,
},
originalTimestamp: '2020-03-12T09:05:03.421Z',
type: 'screen',
sentAt: '2020-03-12T09:05:13.042Z',
},
metadata: {
jobId: 2,
},
destination: {
Config: {
applicationId: 'leanplum_application_id',
clientKey: 'leanplum_client_key__',
isDevelop: true,
useNativeSDK: false,
sendEvents: false,
},
},
},
],
destType: 'leanplum',
},
method: 'POST',
},
},
output: {
response: {
status: 200,
body: {
output: [
{
batchedRequest: [
{
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://api.leanplum.com/api',
headers: {
'Content-Type': 'application/json',
},
params: {
action: 'start',
},
body: {
JSON: {
appId: 'leanplum_application_id',
clientKey: 'leanplum_client_key__',
apiVersion: '1.0.6',
userId: '5094f5704b9cf2b3',
deviceId: '5094f5704b9cf2b3',
appVersion: '1.0',
systemName: 'Android',
systemVersion: '8.1.0',
deviceName: 'generic_x86',
deviceModel: 'Android SDK built for x86',
userAttributes: {
anonymousId: '5094f5704b9cf2b3',
},
locale: 'en-US',
timezone: 'Asia/Kolkata',
time: 1584003903,
devMode: true,
},
XML: {},
JSON_ARRAY: {},
FORM: {},
},
files: {},
userId: '5094f5704b9cf2b3',
},
{
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://api.leanplum.com/api',
headers: {
'Content-Type': 'application/json',
},
params: {
action: 'advance',
},
body: {
JSON: {
appId: 'leanplum_application_id',
clientKey: 'leanplum_client_key__',
apiVersion: '1.0.6',
userId: '5094f5704b9cf2b3',
state: 'MainActivity',
deviceId: '5094f5704b9cf2b3',
time: 1584003903,
devMode: true,
},
XML: {},
JSON_ARRAY: {},
FORM: {},
},
files: {},
userId: '5094f5704b9cf2b3',
},
],
metadata: [
{
jobId: 2,
},
],
batched: false,
statusCode: 200,
destination: {
Config: {
applicationId: 'leanplum_application_id',
clientKey: 'leanplum_client_key__',
isDevelop: true,
useNativeSDK: false,
sendEvents: false,
},
},
},
],
},
},
},
},
];
Loading

0 comments on commit e73e999

Please sign in to comment.