-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into chore.log-filter
- Loading branch information
Showing
9 changed files
with
353 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ export const mockFns = (_) => { | |
export const data = [ | ||
{ | ||
name: 'facebook_pixel', | ||
description: 'Test 0', | ||
description: | ||
'Test 0: General batch request with two events, one track and one identify event with advancedMapping set to false and true respectively', | ||
feature: 'router', | ||
module: 'destination', | ||
version: 'v0', | ||
|
@@ -201,4 +202,114 @@ export const data = [ | |
}, | ||
}, | ||
}, | ||
{ | ||
name: 'facebook_pixel', | ||
description: | ||
'Test 1 : adTrackingEnabled is passed in context, advertiser_tracking_enabled set to true', | ||
feature: 'router', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: { | ||
input: [ | ||
{ | ||
message: { | ||
anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', | ||
destination_props: { Fb: { app_id: 'RudderFbApp' } }, | ||
context: { | ||
device: { | ||
id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', | ||
manufacturer: 'Xiaomi', | ||
model: 'Redmi 6', | ||
name: 'xiaomi', | ||
adTrackingEnabled: true, | ||
}, | ||
network: { carrier: 'Banglalink' }, | ||
os: { name: 'android', version: '8.1.0' }, | ||
screen: { height: '100', density: 50 }, | ||
traits: { | ||
email: '[email protected]', | ||
anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', | ||
}, | ||
}, | ||
event: 'spin_result', | ||
integrations: { All: true }, | ||
message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', | ||
properties: { revenue: 400, additional_bet_index: 0 }, | ||
timestamp: '2023-10-14T15:46:51.693229+05:30', | ||
type: 'track', | ||
}, | ||
metadata: { jobId: 1, userId: 'u1' }, | ||
destination: { | ||
Config: { | ||
limitedDataUsage: true, | ||
blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], | ||
removeExternalId: true, | ||
accessToken: '09876', | ||
pixelId: 'dummyPixelId', | ||
eventsToEvents: [{ from: '', to: '' }], | ||
eventCustomProperties: [{ eventCustomProperties: '' }], | ||
valueFieldIdentifier: '', | ||
advancedMapping: false, | ||
whitelistPiiProperties: [{ whitelistPiiProperties: '' }], | ||
}, | ||
Enabled: true, | ||
}, | ||
}, | ||
], | ||
destType: 'facebook_pixel', | ||
}, | ||
method: 'POST', | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 200, | ||
body: { | ||
output: [ | ||
{ | ||
batchedRequest: { | ||
version: '1', | ||
type: 'REST', | ||
method: 'POST', | ||
endpoint: 'https://graph.facebook.com/v18.0/dummyPixelId/events?access_token=09876', | ||
headers: {}, | ||
params: {}, | ||
body: { | ||
JSON: {}, | ||
XML: {}, | ||
JSON_ARRAY: {}, | ||
FORM: { | ||
data: [ | ||
'{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"advertiser_tracking_enabled":true,"action_source":"other","custom_data":{"additional_bet_index":0,"value":400}}', | ||
], | ||
}, | ||
}, | ||
files: {}, | ||
}, | ||
metadata: [{ jobId: 1, userId: 'u1' }], | ||
batched: false, | ||
statusCode: 200, | ||
destination: { | ||
Config: { | ||
limitedDataUsage: true, | ||
blacklistPiiProperties: [{ blacklistPiiProperties: '', blacklistPiiHash: false }], | ||
removeExternalId: true, | ||
accessToken: '09876', | ||
pixelId: 'dummyPixelId', | ||
eventsToEvents: [{ from: '', to: '' }], | ||
eventCustomProperties: [{ eventCustomProperties: '' }], | ||
valueFieldIdentifier: '', | ||
advancedMapping: false, | ||
whitelistPiiProperties: [{ whitelistPiiProperties: '' }], | ||
}, | ||
Enabled: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
].map((d) => ({ ...d, mockFns })); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.