-
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.
chore: fix exports, tests, rtflow removed
- Loading branch information
1 parent
9462c3d
commit b7be265
Showing
5 changed files
with
12 additions
and
417 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
53 changes: 0 additions & 53 deletions
53
src/cdk/v2/destinations/klaviyo_bulk_upload/rtWorkflow.yaml
This file was deleted.
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
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 |
---|---|---|
|
@@ -55,6 +55,7 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
|
@@ -94,6 +95,7 @@ export const data = [ | |
ip: '213.5.6.41', | ||
}, | ||
anonymous_id: 'user1', | ||
jobIdentifier: 'user1:1', | ||
}, | ||
}, | ||
], | ||
|
@@ -122,6 +124,7 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
|
@@ -180,6 +183,7 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
|
@@ -215,6 +219,7 @@ export const data = [ | |
ip: '213.5.6.41', | ||
}, | ||
anonymous_id: 'user1', | ||
jobIdentifier: 'user1:1', | ||
}, | ||
}, | ||
], | ||
|
@@ -243,6 +248,7 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
|
@@ -300,6 +306,7 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
|
@@ -335,6 +342,7 @@ export const data = [ | |
ip: '213.5.6.41', | ||
}, | ||
anonymous_id: 'user1', | ||
jobIdentifier: 'user1:1', | ||
}, | ||
}, | ||
], | ||
|
@@ -353,158 +361,11 @@ export const data = [ | |
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
jobId: 1, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'klaviyo_bulk_upload', | ||
description: 'Failed identify event with missing Private Api Key', | ||
feature: 'processor', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
message: { | ||
channel: 'sources', | ||
context: { | ||
externalId: [ | ||
{ | ||
id: 'user1', | ||
identifierType: 'userId', | ||
type: 'KLAVIYO_BULK_UPLOAD-userProfiles', | ||
}, | ||
], | ||
mappedToDestination: 'true', | ||
sources: { | ||
job_id: '2gif2bMzsX1Nt0rbV1vcbAE3cxC', | ||
job_run_id: 'cp5p5ilq47pqg38v2nfg', | ||
task_run_id: 'cp5p5ilq47pqg38v2ng0', | ||
version: '2051/merge', | ||
}, | ||
}, | ||
traits: { | ||
email: '[email protected]', | ||
first_name: 'Testqwe0022', | ||
last_name: 'user', | ||
phone_number: '+919902330123', | ||
ip: '213.5.6.41', | ||
}, | ||
type: 'identify', | ||
userId: '1', | ||
}, | ||
destination: { | ||
DestinationDefinition: { | ||
Config: { | ||
cdkV2Enabled: true, | ||
}, | ||
}, | ||
Config: { | ||
privateApiKey: '', | ||
listId: 'list101', | ||
}, | ||
}, | ||
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
output: { | ||
metadata: { | ||
jobId: 1, | ||
}, | ||
statusCode: 400, | ||
error: | ||
'Private Api Key is not present. Aborting: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Private Api Key is not present. Aborting', | ||
statTags: { | ||
errorCategory: 'dataValidation', | ||
errorType: 'configuration', | ||
implementation: 'cdkV2', | ||
destType: 'KLAVIYO_BULK_UPLOAD', | ||
module: 'destination', | ||
feature: 'processor', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'klaviyo_bulk_upload', | ||
description: 'Failed event with invalid event type', | ||
feature: 'processor', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
message: { | ||
channel: 'sources', | ||
context: { | ||
externalId: [ | ||
{ | ||
id: 'user1', | ||
identifierType: 'userId', | ||
type: 'KLAVIYO_BULK_UPLOAD-userProfiles', | ||
}, | ||
], | ||
mappedToDestination: 'true', | ||
sources: { | ||
job_id: '2gif2bMzsX1Nt0rbV1vcbAE3cxC', | ||
job_run_id: 'cp5p5ilq47pqg38v2nfg', | ||
task_run_id: 'cp5p5ilq47pqg38v2ng0', | ||
version: '2051/merge', | ||
}, | ||
}, | ||
traits: { | ||
email: '[email protected]', | ||
first_name: 'Testqwe0022', | ||
last_name: 'user', | ||
phone_number: '+919902330123', | ||
ip: '213.5.6.41', | ||
}, | ||
type: 'identify', | ||
userId: '1', | ||
}, | ||
destination: { | ||
DestinationDefinition: { | ||
Config: { | ||
cdkV2Enabled: true, | ||
}, | ||
}, | ||
Config: { | ||
privateApiKey: 'pk_dummy_123', | ||
listId: 'list101', | ||
}, | ||
}, | ||
metadata: { | ||
destinationId: 'destId', | ||
workspaceId: 'wspId', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
output: { | ||
metadata: { | ||
jobId: 1, | ||
}, | ||
statusCode: 400, | ||
error: | ||
'message type track is not supported: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: message type track is not supported', | ||
statTags: { | ||
errorCategory: 'dataValidation', | ||
errorType: 'instrumentation', | ||
implementation: 'cdkV2', | ||
destType: 'KLAVIYO_BULK_UPLOAD', | ||
module: 'destination', | ||
feature: 'processor', | ||
}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.