Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: user deletion test cases #1682

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/__tests__/deleteUsers/data/af/handler_output.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[
[
{
"statusCode": 400,
"statusCode": 500,
"error": "API Token and one of Apple ID or Android App Id are required fields for user deletion"
}
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "you can send atmost 3 callBackUrls"
}
],
Expand All @@ -31,7 +31,7 @@
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "you can send atmost 3 callBackUrls"
}
]
Expand Down
6 changes: 3 additions & 3 deletions test/__tests__/deleteUsers/data/am/handler_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "Config for deletion not present"
}
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "api key/secret for deletion not present"
}
],
Expand All @@ -23,4 +23,4 @@
"error": "User id for deletion not present"
}
]
]
]
6 changes: 3 additions & 3 deletions test/__tests__/deleteUsers/data/braze/handler_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "Config for deletion not present"
}
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "data center / api key for deletion not present"
}
],
Expand All @@ -23,4 +23,4 @@
"error": "User id for deletion not present"
}
]
]
]
4 changes: 2 additions & 2 deletions test/__tests__/deleteUsers/data/clevertap/handler_output.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[
[
{
"statusCode": 400,
"statusCode": 500,
"error": "Project ID and Passcode is required for delete user"
}
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "Project ID and Passcode is required for delete user"
}
]
Expand Down
25 changes: 12 additions & 13 deletions test/__tests__/deleteUsers/data/engage/handler_output.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[
[
{
"statusCode": 400,
"error": "Public key is a required field for user deletion"
}
],
[
{
"statusCode": 400,
"error": "User id for deletion not present"
}
]
[
{
"statusCode": 500,
"error": "Public key is a required field for user deletion"
}
],
[
{
"statusCode": 400,
"error": "User id for deletion not present"
}
]
]
6 changes: 3 additions & 3 deletions test/__tests__/deleteUsers/data/ga/handler_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
{
"statusCode": 500,
"authErrorCategory": "REFRESH_TOKEN",
"error": "[GA] invalid credentials"
"error": "invalid credentials"
}
],
[
{
"statusCode": 403,
"error": "[GA] Error occurred while completing deletion request: [dummy response] The parameter used to query is not correct"
"error": "Error occurred while completing deletion request: [dummy response] The parameter used to query is not correct"
}
]
]
]
6 changes: 3 additions & 3 deletions test/__tests__/deleteUsers/data/intercom/handler_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "Config for deletion not present"
}
],
[
{
"statusCode": 400,
"statusCode": 500,
"error": "api key for deletion not present"
}
],
Expand All @@ -23,4 +23,4 @@
"error": "User id for deletion not present"
}
]
]
]