-
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.
refactor: trade desk proxy testcases (#3175)
* refactor: trade desk proxy testcases * test: add network failure testcases * doc: add trade desk error doc * chore: format koala testcases
- Loading branch information
1 parent
541b596
commit e43b83d
Showing
7 changed files
with
575 additions
and
319 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 |
---|---|---|
|
@@ -31,7 +31,7 @@ export const data = [ | |
value: 10, | ||
}, | ||
context: { | ||
network: 'wifi' | ||
network: 'wifi', | ||
}, | ||
originalTimestamp: '2024-01-23T08:35:17.562Z', | ||
sentAt: '2024-01-23T08:35:17.562Z', | ||
|
@@ -58,20 +58,22 @@ export const data = [ | |
JSON: { | ||
ip: '192.11.22.33', | ||
email: '[email protected]', | ||
events: [{ | ||
type: 'track', | ||
event: 'User Signed Up', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '84e26acc-56a5-4835-8233-591137fca468', | ||
properties: { | ||
email: '[email protected]', | ||
label: 'test', | ||
value: 10, | ||
}, | ||
context: { | ||
network: 'wifi' | ||
events: [ | ||
{ | ||
type: 'track', | ||
event: 'User Signed Up', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '84e26acc-56a5-4835-8233-591137fca468', | ||
properties: { | ||
email: '[email protected]', | ||
label: 'test', | ||
value: 10, | ||
}, | ||
context: { | ||
network: 'wifi', | ||
}, | ||
}, | ||
}] | ||
], | ||
}, | ||
}, | ||
endpoint: 'https://api2.getkoala.com/web/projects/kkooaallaa321/batch', | ||
|
@@ -127,7 +129,7 @@ export const data = [ | |
postalCode: '94107', | ||
}, | ||
email: '[email protected]', | ||
ko_profile_id: 'xxxx-2222-xxxx-xxxx' | ||
ko_profile_id: 'xxxx-2222-xxxx-xxxx', | ||
}, | ||
originalTimestamp: '2024-01-23T08:35:17.342Z', | ||
sentAt: '2024-01-23T08:35:35.234Z', | ||
|
@@ -153,20 +155,22 @@ export const data = [ | |
JSON: { | ||
email: '[email protected]', | ||
profile_id: 'xxxx-2222-xxxx-xxxx', | ||
identifies: [{ | ||
type: 'identify', | ||
sent_at: '2024-01-23T08:35:17.342Z', | ||
traits: { | ||
FirstName: 'John', | ||
LastName: 'Doe', | ||
address: { | ||
city: 'San Francisco', | ||
state: 'CA', | ||
postalCode: '94107', | ||
identifies: [ | ||
{ | ||
type: 'identify', | ||
sent_at: '2024-01-23T08:35:17.342Z', | ||
traits: { | ||
FirstName: 'John', | ||
LastName: 'Doe', | ||
address: { | ||
city: 'San Francisco', | ||
state: 'CA', | ||
postalCode: '94107', | ||
}, | ||
email: '[email protected]', | ||
}, | ||
email: '[email protected]', | ||
}, | ||
}], | ||
], | ||
}, | ||
}, | ||
endpoint: 'https://api2.getkoala.com/web/projects/kkooaallaa321/batch', | ||
|
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 |
---|---|---|
|
@@ -27,14 +27,14 @@ export const data = [ | |
type: 'track', | ||
messageId: '84e26acc-56a5-4835-8233-591137fca468', | ||
traits: { | ||
email: '[email protected]' | ||
email: '[email protected]', | ||
}, | ||
properties: { | ||
label: 'test', | ||
value: 10, | ||
}, | ||
context: { | ||
network: 'wifi' | ||
network: 'wifi', | ||
}, | ||
originalTimestamp: '2024-01-23T08:35:17.562Z', | ||
sentAt: '2024-01-23T08:35:17.562Z', | ||
|
@@ -44,8 +44,8 @@ export const data = [ | |
jobId: 1, | ||
userId: 'u1', | ||
destinationId: 'destId', | ||
workspaceId: 'wspId' | ||
} | ||
workspaceId: 'wspId', | ||
}, | ||
}, | ||
{ | ||
destination: { | ||
|
@@ -65,14 +65,14 @@ export const data = [ | |
type: 'track', | ||
messageId: '8bc79b03-2a5c-4615-b2da-54c0aaaaaae8', | ||
traits: { | ||
ko_profile_id: '123456' | ||
ko_profile_id: '123456', | ||
}, | ||
properties: { | ||
attr1: 'foo', | ||
attr2: 'bar' | ||
attr2: 'bar', | ||
}, | ||
context: { | ||
network: 'wifi' | ||
network: 'wifi', | ||
}, | ||
originalTimestamp: '2024-01-23T08:35:17.562Z', | ||
sentAt: '2024-01-23T08:35:17.562Z', | ||
|
@@ -82,14 +82,14 @@ export const data = [ | |
jobId: 2, | ||
userId: 'u1', | ||
destinationId: 'destId', | ||
workspaceId: 'wspId' | ||
} | ||
workspaceId: 'wspId', | ||
}, | ||
}, | ||
], | ||
destType: 'koala', | ||
}, | ||
method: 'POST' | ||
} | ||
method: 'POST', | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
|
@@ -105,19 +105,21 @@ export const data = [ | |
JSON: { | ||
ip: '192.11.22.33', | ||
email: '[email protected]', | ||
events: [{ | ||
type: 'track', | ||
event: 'User Signed Up', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '84e26acc-56a5-4835-8233-591137fca468', | ||
properties: { | ||
label: 'test', | ||
value: 10, | ||
events: [ | ||
{ | ||
type: 'track', | ||
event: 'User Signed Up', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '84e26acc-56a5-4835-8233-591137fca468', | ||
properties: { | ||
label: 'test', | ||
value: 10, | ||
}, | ||
context: { | ||
network: 'wifi', | ||
}, | ||
}, | ||
context: { | ||
network: 'wifi' | ||
}, | ||
}] | ||
], | ||
}, | ||
}, | ||
endpoint: 'https://api2.getkoala.com/web/projects/kkooaallaa321/batch', | ||
|
@@ -153,19 +155,21 @@ export const data = [ | |
JSON: { | ||
ip: '192.11.55.1', | ||
profile_id: '123456', | ||
events: [{ | ||
type: 'track', | ||
event: 'User Deleted account', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '8bc79b03-2a5c-4615-b2da-54c0aaaaaae8', | ||
properties: { | ||
attr1: 'foo', | ||
attr2: 'bar' | ||
}, | ||
context: { | ||
network: 'wifi' | ||
events: [ | ||
{ | ||
type: 'track', | ||
event: 'User Deleted account', | ||
sent_at: '2024-01-23T08:35:17.562Z', | ||
message_id: '8bc79b03-2a5c-4615-b2da-54c0aaaaaae8', | ||
properties: { | ||
attr1: 'foo', | ||
attr2: 'bar', | ||
}, | ||
context: { | ||
network: 'wifi', | ||
}, | ||
}, | ||
}] | ||
], | ||
}, | ||
}, | ||
endpoint: 'https://api2.getkoala.com/web/projects/kkooaallaa321/batch', | ||
|
@@ -191,10 +195,10 @@ export const data = [ | |
}, | ||
}, | ||
}, | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
]; |
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.