-
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.
fix: addition of custify user-deletion tests
Signed-off-by: Sai Sankeerth <[email protected]>
- Loading branch information
Sai Sankeerth
committed
Feb 7, 2024
1 parent
3bfdb3d
commit 7275b5d
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
test/integrations/destinations/custify/deleteUsers/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,71 @@ | ||
const destType = 'custify'; | ||
|
||
export const data = [ | ||
{ | ||
name: destType, | ||
description: 'Test 0: should fail when config is not being sent', | ||
feature: 'userDeletion', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
destType: destType.toUpperCase(), | ||
userAttributes: [ | ||
{ | ||
userId: 'rudder1', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 400, | ||
body: [ | ||
{ | ||
statusCode: 400, | ||
error: 'Config for deletion not present', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: destType, | ||
description: 'Test 1: should fail when apiKey is not present in config', | ||
feature: 'userDeletion', | ||
module: 'destination', | ||
version: 'v0', | ||
input: { | ||
request: { | ||
body: [ | ||
{ | ||
destType: destType.toUpperCase(), | ||
userAttributes: [ | ||
{ | ||
userId: 'rudder2', | ||
}, | ||
], | ||
config: { | ||
apiToken: 'dummyApiKey', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
output: { | ||
response: { | ||
status: 400, | ||
body: [ | ||
{ | ||
statusCode: 400, | ||
error: 'api key for deletion not present', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; |
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