-
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 'develop' into fb_content_type_fix
- Loading branch information
Showing
7 changed files
with
323 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# Only allow these users to create new hotfix branch from 'main' | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'sanpj2292') | ||
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'koladilip' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'utsabc') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'utsabc') | ||
steps: | ||
- name: Create Branch | ||
uses: peterjgrainger/[email protected] | ||
|
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,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# Only allow release stakeholders to initiate releases | ||
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'koladilip' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'yashasvibajpai' || github.actor == 'sanpj2292' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'ujjwal-ab') | ||
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'koladilip' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'yashasvibajpai' || github.actor == 'sanpj2292' || github.actor == 'utsabc') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'koladilip' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'yashasvibajpai' || github.triggering_actor == 'sanpj2292' || github.triggering_actor == 'utsabc') | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
177 changes: 177 additions & 0 deletions
177
test/integrations/destinations/ga4/dataDelivery/data.ts
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 |
---|---|---|
@@ -0,0 +1,177 @@ | ||
export const data = [ | ||
{ | ||
name: 'ga4', | ||
description: 'Successful data delivery', | ||
feature: 'dataDelivery', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: { | ||
version: '1', | ||
type: 'REST', | ||
method: 'POST', | ||
endpoint: 'https://www.google-analytics.com/mp/collect', | ||
headers: { | ||
HOST: 'www.google-analytics.com', | ||
'Content-Type': 'application/json', | ||
}, | ||
params: { | ||
api_secret: 'dummyApiSecret', | ||
measurement_id: 'dummyMeasurementId', | ||
}, | ||
body: { | ||
JSON: { | ||
client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', | ||
timestamp_micros: 1650950229000000, | ||
non_personalized_ads: true, | ||
events: [ | ||
{ | ||
name: 'view_item_list', | ||
params: { | ||
item_list_id: 'related_products', | ||
item_list_name: 'Related_products', | ||
items: [ | ||
{ | ||
item_id: '507f1f77bcf86cd799439011', | ||
item_name: 'Monopoly: 3rd Edition', | ||
coupon: 'SUMMER_FUN', | ||
item_category: 'Apparel', | ||
item_brand: 'Google', | ||
item_variant: 'green', | ||
price: 19, | ||
quantity: 2, | ||
index: 1, | ||
affiliation: 'Google Merchandise Store', | ||
currency: 'USD', | ||
discount: 2.22, | ||
item_category2: 'Adult', | ||
item_category3: 'Shirts', | ||
item_category4: 'Crew', | ||
item_category5: 'Short sleeve', | ||
item_list_id: 'related_products', | ||
item_list_name: 'Related Products', | ||
location_id: 'L_12345', | ||
}, | ||
], | ||
engagement_time_msec: 1, | ||
}, | ||
}, | ||
], | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
FORM: {}, | ||
}, | ||
files: {}, | ||
userId: '', | ||
}, | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 200, | ||
body: { | ||
output: { | ||
destinationResponse: { | ||
response: { | ||
validationMessages: [], | ||
}, | ||
status: 200, | ||
}, | ||
message: '[GA4 Response Handler] - Request Processed Successfully', | ||
status: 200, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'ga4', | ||
description: 'Data delivery failure', | ||
feature: 'dataDelivery', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: { | ||
version: '1', | ||
type: 'REST', | ||
method: 'POST', | ||
endpoint: 'https://www.google-analytics.com/debug/mp/collect', | ||
headers: { | ||
HOST: 'www.google-analytics.com', | ||
'Content-Type': 'application/json', | ||
}, | ||
params: { | ||
api_secret: 'dummyApiSecret', | ||
measurement_id: 'dummyMeasurementId', | ||
}, | ||
body: { | ||
JSON: { | ||
client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', | ||
timestamp_micros: 1650950229000000, | ||
non_personalized_ads: true, | ||
events: [ | ||
{ | ||
name: 'view_item', | ||
params: { | ||
category: 'Electronics', | ||
productID: 'ABC123', | ||
productName: 'Example Product', | ||
customer_name: 'Sample User', | ||
link_imageURL: 'https://example.com/images/product.jpg', | ||
customer_email: '[email protected]', | ||
link_productURL: 'https://example.com/products/ABC123', | ||
stockAvailability: true, | ||
details_features_0: 'wireless charging', | ||
details_features_1: 'water-resistant', | ||
engagement_time_msec: 1, | ||
transaction_currency: 'USD', | ||
customer_loyaltyPoints: 500, | ||
transaction_totalAmount: 150.99, | ||
transaction_discountApplied: 20.5, | ||
details_specifications_color: 'blue', | ||
details_specifications_specifications_specifications_specifications_color: | ||
'blue', | ||
details_specifications_specifications_specifications_specifications_weight: | ||
'1.5kg', | ||
}, | ||
}, | ||
], | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
FORM: {}, | ||
}, | ||
files: {}, | ||
userId: '', | ||
}, | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 400, | ||
body: { | ||
output: { | ||
destinationResponse: | ||
'The event param [string_value: "1.5kg"] has a duplicate name [details_specifications_specifications_specifications_specifications_weight].', | ||
message: | ||
'Validation Server Response Handler:: Validation Error for ga4 of field path :events.params | NAME_DUPLICATED-The event param [string_value: "1.5kg"] has a duplicate name [details_specifications_specifications_specifications_specifications_weight].', | ||
statTags: { | ||
destType: 'GA4', | ||
destinationId: 'Non-determininable', | ||
errorCategory: 'network', | ||
errorType: 'aborted', | ||
feature: 'dataDelivery', | ||
implementation: 'native', | ||
module: 'destination', | ||
workspaceId: 'Non-determininable', | ||
}, | ||
status: 400, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
export const networkCallsData = [ | ||
{ | ||
httpReq: { | ||
url: 'https://www.google-analytics.com/mp/collect', | ||
headers: { | ||
HOST: 'www.google-analytics.com', | ||
'Content-Type': 'application/json', | ||
'User-Agent': 'RudderLabs', | ||
}, | ||
params: { | ||
api_secret: 'dummyApiSecret', | ||
measurement_id: 'dummyMeasurementId', | ||
}, | ||
data: { | ||
client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', | ||
timestamp_micros: 1650950229000000, | ||
non_personalized_ads: true, | ||
events: [ | ||
{ | ||
name: 'view_item_list', | ||
params: { | ||
item_list_id: 'related_products', | ||
item_list_name: 'Related_products', | ||
items: [ | ||
{ | ||
item_id: '507f1f77bcf86cd799439011', | ||
item_name: 'Monopoly: 3rd Edition', | ||
coupon: 'SUMMER_FUN', | ||
item_category: 'Apparel', | ||
item_brand: 'Google', | ||
item_variant: 'green', | ||
price: 19, | ||
quantity: 2, | ||
index: 1, | ||
affiliation: 'Google Merchandise Store', | ||
currency: 'USD', | ||
discount: 2.22, | ||
item_category2: 'Adult', | ||
item_category3: 'Shirts', | ||
item_category4: 'Crew', | ||
item_category5: 'Short sleeve', | ||
item_list_id: 'related_products', | ||
item_list_name: 'Related Products', | ||
location_id: 'L_12345', | ||
}, | ||
], | ||
engagement_time_msec: 1, | ||
}, | ||
}, | ||
], | ||
}, | ||
method: 'POST', | ||
}, | ||
httpRes: { | ||
data: { | ||
validationMessages: [], | ||
}, | ||
status: 200, | ||
}, | ||
}, | ||
{ | ||
httpReq: { | ||
url: 'https://www.google-analytics.com/debug/mp/collect', | ||
headers: { | ||
HOST: 'www.google-analytics.com', | ||
'Content-Type': 'application/json', | ||
'User-Agent': 'RudderLabs', | ||
}, | ||
params: { | ||
api_secret: 'dummyApiSecret', | ||
measurement_id: 'dummyMeasurementId', | ||
}, | ||
data: { | ||
client_id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', | ||
timestamp_micros: 1650950229000000, | ||
non_personalized_ads: true, | ||
events: [ | ||
{ | ||
name: 'view_item', | ||
params: { | ||
category: 'Electronics', | ||
productID: 'ABC123', | ||
productName: 'Example Product', | ||
customer_name: 'Sample User', | ||
link_imageURL: 'https://example.com/images/product.jpg', | ||
customer_email: '[email protected]', | ||
link_productURL: 'https://example.com/products/ABC123', | ||
stockAvailability: true, | ||
details_features_0: 'wireless charging', | ||
details_features_1: 'water-resistant', | ||
engagement_time_msec: 1, | ||
transaction_currency: 'USD', | ||
customer_loyaltyPoints: 500, | ||
transaction_totalAmount: 150.99, | ||
transaction_discountApplied: 20.5, | ||
details_specifications_color: 'blue', | ||
details_specifications_specifications_specifications_specifications_color: 'blue', | ||
details_specifications_specifications_specifications_specifications_weight: '1.5kg', | ||
}, | ||
}, | ||
], | ||
}, | ||
method: 'POST', | ||
}, | ||
httpRes: { | ||
data: { | ||
validationMessages: [ | ||
{ | ||
fieldPath: 'events.params', | ||
description: | ||
'The event param [string_value: "1.5kg"] has a duplicate name [details_specifications_specifications_specifications_specifications_weight].', | ||
validationCode: 'NAME_DUPLICATED', | ||
}, | ||
], | ||
}, | ||
status: 200, | ||
}, | ||
}, | ||
]; |