-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/Dec.18' of github.com:rudderlabs/rudder-transfor…
…mer into fix.rm-log-cdkv2
- Loading branch information
Showing
3 changed files
with
131 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3569,4 +3569,129 @@ export const data = [ | |
}, | ||
}, | ||
}, | ||
{ | ||
name: 'pinterest_tag', | ||
description: 'Test 3', | ||
feature: 'processor', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
description: 'Any other format of event except string should be aborted', | ||
message: { | ||
type: 'track', | ||
event: [1, 2, 3], | ||
sentAt: '2020-08-14T05:30:30.118Z', | ||
channel: 'web', | ||
context: { | ||
source: 'test', | ||
userAgent: 'chrome', | ||
traits: { | ||
anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', | ||
email: '[email protected]', | ||
phone: '+1234589947', | ||
ge: 'male', | ||
db: '19950715', | ||
lastname: 'Rudderlabs', | ||
firstName: 'Test', | ||
address: { city: 'Kolkata', state: 'WB', zip: '700114', country: 'IN' }, | ||
}, | ||
device: { advertisingId: 'abc123' }, | ||
library: { name: 'rudder-sdk-ruby-sync', version: '1.0.6' }, | ||
}, | ||
messageId: '7208bbb6-2c4e-45bb-bf5b-ad426f3593e9', | ||
timestamp: '2020-08-14T05:30:30.118Z', | ||
properties: { | ||
tax: 2, | ||
total: 27.5, | ||
coupon: 'hasbros', | ||
revenue: 48, | ||
price: 25, | ||
quantity: 2, | ||
currency: 'USD', | ||
discount: 2.5, | ||
order_id: '50314b8e9bcf000000000000', | ||
requestIP: '123.0.0.0', | ||
optOutType: 'LDP', | ||
products: [ | ||
{ | ||
sku: '45790-32', | ||
url: 'https://www.example.com/product/path', | ||
name: 'Monopoly: 3rd Edition', | ||
price: 19, | ||
category: 'Games', | ||
quantity: 1, | ||
image_url: 'https:///www.example.com/product/path.jpg', | ||
product_id: '507f1f77bcf86cd799439011', | ||
}, | ||
{ | ||
sku: '46493-32', | ||
name: 'Uno Card Game', | ||
price: 3, | ||
category: 'Games', | ||
quantity: 2, | ||
product_id: '505bd76785ebb509fc183733', | ||
}, | ||
], | ||
shipping: 3, | ||
subtotal: 22.5, | ||
affiliation: 'Google Store', | ||
checkout_id: 'fksdjfsdjfisjf9sdfjsd9f', | ||
}, | ||
anonymousId: '50be5c78-6c3f-4b60-be84-97805a316fb1', | ||
integrations: { All: true }, | ||
}, | ||
destination: { | ||
DestinationDefinition: { Config: { cdkV2Enabled: true } }, | ||
ID: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq', | ||
Name: 'PINTEREST_TAG', | ||
Config: { | ||
sendAsTestEvent: false, | ||
tagId: '123456789', | ||
apiVersion: 'newApi', | ||
adAccountId: 'accountId123', | ||
conversionToken: 'conversionToken123', | ||
appId: '429047995', | ||
enhancedMatch: true, | ||
enableDeduplication: true, | ||
deduplicationKey: 'messageId', | ||
sendingUnHashedData: true, | ||
sendExternalId: true, | ||
customProperties: [{ properties: 'presentclass' }, { properties: 'presentgrade' }], | ||
eventsMapping: [{ from: 'ABC Searched', to: 'WatchVideo' }], | ||
}, | ||
Enabled: true, | ||
Transformations: [], | ||
}, | ||
metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq' }, | ||
}, | ||
], | ||
method: 'POST', | ||
}, | ||
pathSuffix: '', | ||
}, | ||
output: { | ||
response: { | ||
status: 200, | ||
body: [ | ||
{ | ||
error: | ||
'Event is a required field and should be a string: Workflow: procWorkflow, Step: eventNames, ChildStep: undefined, OriginalError: Event is a required field and should be a string', | ||
metadata: { destintionId: '1pYpzzvcn7AQ2W9GGIAZSsN6Mfq' }, | ||
statTags: { | ||
destType: 'PINTEREST_TAG', | ||
errorCategory: 'dataValidation', | ||
errorType: 'instrumentation', | ||
feature: 'processor', | ||
implementation: 'cdkV2', | ||
module: 'destination', | ||
}, | ||
statusCode: 400, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; |