diff --git a/test/integrations/destinations/webhook/commonConfig.ts b/test/integrations/destinations/webhook/commonConfig.ts index 42a1e151c3..719f0f1daa 100644 --- a/test/integrations/destinations/webhook/commonConfig.ts +++ b/test/integrations/destinations/webhook/commonConfig.ts @@ -30,3 +30,14 @@ export const destinationWithoutHeaders = { }, DestinationDefinition: { Config: { cdkV2Enabled: true } }, }; + +export const destinationWithWrongUrl = { + Config: { + webhookUrl: 'https://6b0e6a60.', + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + }, + }, +}; diff --git a/test/integrations/destinations/webhook/processor/data.ts b/test/integrations/destinations/webhook/processor/data.ts index e9629041fe..f962fa68b6 100644 --- a/test/integrations/destinations/webhook/processor/data.ts +++ b/test/integrations/destinations/webhook/processor/data.ts @@ -1,7 +1,18 @@ +import { + context, + destination, + destinationWithWrongUrl, + destinationWithoutHeaders, +} from '../commonConfig'; +import { generalProperties, userProperties } from '../router/basicProperties'; + export const data = [ { name: 'webhook', - description: 'Test 0', + id: 'Test 0 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -10,115 +21,19 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_0', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, - }, - destination: { - Config: { - webhookUrl: 'http://6b0e6a60.ngrok.io', - headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, - ], - }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + user_properties: userProperties, }, + destination, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -135,101 +50,24 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_0', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_0', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -252,7 +90,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 1', + id: 'Test 1 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -261,105 +102,19 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_1', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, - }, - destination: { - Config: { - webhookUrl: 'https://6b0e6a60.ngrok.io/n', - }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + user_properties: userProperties, }, + destination: destinationWithoutHeaders, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -376,104 +131,27 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_1', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_1', type: 'REST', method: 'POST', - endpoint: 'https://6b0e6a60.ngrok.io/n', + endpoint: 'http://6b0e6a60.ngrok.io', headers: { 'content-type': 'application/json', }, @@ -492,7 +170,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 2', + id: 'Test 2 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -501,105 +182,19 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_2', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, - }, - destination: { - Config: { - webhookUrl: 'https://6b0e6a60.', - }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, + user_properties: userProperties, }, + destination: destinationWithWrongUrl, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -616,101 +211,24 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_2', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_2', type: 'REST', method: 'POST', endpoint: 'https://6b0e6a60.', @@ -732,7 +250,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 3', + id: 'Test 3 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -741,29 +262,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_3', + context, event: 'spin_result', integrations: { All: true, @@ -819,7 +319,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_3', type: 'REST', method: 'GET', endpoint: 'https://6b0e6a60.', @@ -845,7 +345,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 4', + id: 'Test 4 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -854,29 +357,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_4', + context, event: 'spin_result', integrations: { All: true, @@ -926,7 +408,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_4', type: 'REST', method: 'GET', endpoint: 'https://6b0e6a60.', @@ -950,7 +432,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 5', + id: 'Test 5 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -959,72 +444,14 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_5', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', request_ip: '127.0.0.1', @@ -1065,7 +492,7 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_5', context: { device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', @@ -1094,44 +521,7 @@ export const data = [ All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', request_ip: '127.0.0.1', @@ -1141,7 +531,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_5', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -1163,7 +553,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 6', + id: 'Test 6 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -1172,72 +565,14 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_6', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', request_ip: '127.0.0.1', @@ -1278,7 +613,7 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_6', context: { device: { id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', @@ -1307,44 +642,7 @@ export const data = [ All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', request_ip: '127.0.0.1', @@ -1354,7 +652,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_6', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -1377,7 +675,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 7', + id: 'Test 7 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -1386,50 +687,13 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_7', event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, @@ -1469,50 +733,13 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_7', event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', }, @@ -1521,7 +748,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_7', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -1544,7 +771,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 8', + id: 'Test 8 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -1553,29 +783,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_8', + context, event: 'spin_result', integrations: { All: true, @@ -1598,26 +807,7 @@ export const data = [ }, appendPath: '/product/search?string=value', }, - destination: { - Config: { - webhookUrl: 'http://6b0e6a60.ngrok.io', - headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, - ], - }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, - }, + destination, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -1634,29 +824,8 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_8', + context, event: 'spin_result', integrations: { All: true, @@ -1676,7 +845,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_8', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io/product/search?string=value', @@ -1700,73 +869,36 @@ export const data = [ }, { name: 'webhook', - description: 'Test 9', + id: 'Test 9 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', input: { request: { - body: [ - { - message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, - event: 'spin_result', - integrations: { - All: true, - }, - message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - featureGameType: 'N/A', - win_amount: 0, - }, - timestamp: '2019-09-01T15:46:51.693229+05:30', - type: 'track', - fullPath: 'https://www.google.com', - }, - destination: { - Config: { - webhookUrl: 'http://6b0e6a60.ngrok.io', - headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, - ], + body: [ + { + message: { + anonymousId: 'anon_9', + context, + event: 'spin_result', + integrations: { + All: true, }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + additional_bet_index: 0, + battle_id: 'N/A', + featureGameType: 'N/A', + win_amount: 0, }, + timestamp: '2019-09-01T15:46:51.693229+05:30', + type: 'track', + fullPath: 'https://www.google.com', }, + destination, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -1783,29 +915,8 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_9', + context, event: 'spin_result', integrations: { All: true, @@ -1825,7 +936,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_9', type: 'REST', method: 'POST', endpoint: 'https://www.google.com', @@ -1848,7 +959,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 10', + id: 'Test 10 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -1857,29 +971,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_10', + context, event: 'spin_result', integrations: { All: true, @@ -1896,26 +989,7 @@ export const data = [ fullPath: 'https://www.google.com/', appendPath: '?searchTerms=cats', }, - destination: { - Config: { - webhookUrl: 'http://6b0e6a60.ngrok.io', - headers: [ - { - from: '', - to: '', - }, - { - from: 'test2', - to: 'value2', - }, - ], - }, - DestinationDefinition: { - Config: { - cdkV2Enabled: true, - }, - }, - }, + destination, metadata: { destinationId: 'destId', workspaceId: 'wspId', @@ -1932,29 +1006,8 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_10', + context, event: 'spin_result', integrations: { All: true, @@ -1974,7 +1027,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_10', type: 'REST', method: 'POST', endpoint: 'https://www.google.com/?searchTerms=cats', @@ -1997,7 +1050,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 11', + id: 'Test 11 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2006,29 +1062,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_11', + context, event: 'spin_result', integrations: { All: true, @@ -2082,29 +1117,8 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_11', + context, event: 'spin_result', integrations: { All: true, @@ -2124,7 +1138,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_11', type: 'REST', method: 'PUT', endpoint: 'https://www.google.com/?searchTerms=cats', @@ -2147,7 +1161,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 12', + id: 'Test 12 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2156,29 +1173,8 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_12', + context, event: 'spin_result', integrations: { All: true, @@ -2237,7 +1233,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_12', type: 'REST', method: 'DELETE', endpoint: 'https://www.google.com/?searchTerms=cats', @@ -2264,7 +1260,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 13', + id: 'Test 13 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2273,94 +1272,17 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_13', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, destination: { Config: { @@ -2395,101 +1317,24 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_13', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_13', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -2512,7 +1357,10 @@ export const data = [ }, { name: 'webhook', - description: 'Test 14', + id: 'Test 14 - processor', + description: 'Basic track calls', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2521,94 +1369,17 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_14', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, destination: { Config: { @@ -2643,101 +1414,24 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - context: { - device: { - id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', - manufacturer: 'Xiaomi', - model: 'Redmi 6', - name: 'xiaomi', - }, - network: { - carrier: 'Banglalink', - }, - os: { - name: 'android', - version: '8.1.0', - }, - traits: { - address: { - city: 'Dhaka', - country: 'Bangladesh', - }, - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - }, - }, + anonymousId: 'anon_14', + context, event: 'spin_result', integrations: { All: true, }, message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', - properties: { - additional_bet_index: 0, - battle_id: 'N/A', - bet_amount: 9, - bet_level: 1, - bet_multiplier: 1, - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - days_in_game: 0, - extra_param: 'N/A', - fb_profile: '0', - featureGameType: 'N/A', - game_fps: 30, - game_id: 'fireEagleBase', - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: 'False', - is_auto_spin: 'False', - is_turbo: 'False', - isf: 'False', - ishighroller: 'False', - jackpot_win_amount: 90, - jackpot_win_type: 'Silver', - level: 6, - lifetime_gem_balance: 0, - no_of_spin: 1, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - tournament_id: 'T1561970819', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - win_amount: 0, - }, + properties: generalProperties, timestamp: '2019-09-01T15:46:51.693229+05:30', type: 'track', - user_properties: { - coin_balance: 9466052, - current_module_name: 'CasinoGameModule', - fb_profile: '0', - game_fps: 30, - game_name: 'FireEagleSlots', - gem_balance: 0, - graphicsQuality: 'HD', - idfa: '2bf99787-33d2-4ae2-a76a-c49672f97252', - internetReachability: 'ReachableViaLocalAreaNetwork', - isLowEndDevice: false, - level: 6, - lifetime_gem_balance: 0, - player_total_battles: 0, - player_total_shields: 0, - start_date: '2019-08-01', - total_payments: 0, - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', - versionSessionCount: 2, - }, + user_properties: userProperties, }, JSON_ARRAY: {}, XML: {}, FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_14', type: 'REST', method: 'PATCH', endpoint: 'http://6b0e6a60.ngrok.io', @@ -2760,7 +1454,10 @@ export const data = [ }, { name: 'webhook', + id: 'Test 15 - processor', description: 'Test POST method with track message type', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2769,7 +1466,7 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_15', event: 'spin_result', integrations: { All: true, @@ -2818,7 +1515,7 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_15', event: 'spin_result', integrations: { All: true, @@ -2836,7 +1533,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_15', type: 'REST', method: 'POST', endpoint: 'http://6b0e6a60.ngrok.io', @@ -2859,7 +1556,10 @@ export const data = [ }, { name: 'webhook', + id: 'Test 16 - processor', description: 'Test method PATCH', + scenario: 'Framework', + successCriteria: 'All events should be transformed successfully and status code should be 200', feature: 'processor', module: 'destination', version: 'v0', @@ -2868,7 +1568,7 @@ export const data = [ body: [ { message: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_16', context: { traits: { address: { @@ -2925,7 +1625,7 @@ export const data = [ output: { body: { JSON: { - anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + anonymousId: 'anon_16', context: { traits: { address: { @@ -2954,7 +1654,7 @@ export const data = [ FORM: {}, }, version: '1', - userId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + userId: 'anon_16', type: 'REST', method: 'PATCH', endpoint: 'http://6b0e6a60.ngrok.io',