From 98223748c485d7d7b5732f72c8d560ec38d16ff6 Mon Sep 17 00:00:00 2001 From: Chandra shekar Varkala Date: Mon, 22 Jan 2024 14:13:54 -0600 Subject: [PATCH] chore: clean up --- .../data/iterable/handler_input.json | 93 ------------ .../data/iterable/handler_output.json | 32 ---- .../data/iterable/nw_client_data.json | 138 ------------------ 3 files changed, 263 deletions(-) delete mode 100644 test/deleteUsers/data/iterable/handler_input.json delete mode 100644 test/deleteUsers/data/iterable/handler_output.json delete mode 100644 test/deleteUsers/data/iterable/nw_client_data.json diff --git a/test/deleteUsers/data/iterable/handler_input.json b/test/deleteUsers/data/iterable/handler_input.json deleted file mode 100644 index 8ebc859089..0000000000 --- a/test/deleteUsers/data/iterable/handler_input.json +++ /dev/null @@ -1,93 +0,0 @@ -[ - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder1" - } - ] - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder2" - } - ], - "config": { - "apiToken": "dummyApiKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder1" - }, - { - "userId": "rudder2" - } - ], - "config": { - "apiKey": "dummyApiKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder3" - }, - { - "userId": "rudder4" - } - ], - "config": { - "apiKey": "invalidKey" - } - } - ] - } - }, - { - "request": { - "body": [ - { - "destType": "ITERABLE", - "userAttributes": [ - { - "userId": "rudder5" - }, - { - "userId": "rudder6" - } - ], - "config": { - "apiKey": "dummyApiKey" - } - } - ] - } - } -] diff --git a/test/deleteUsers/data/iterable/handler_output.json b/test/deleteUsers/data/iterable/handler_output.json deleted file mode 100644 index b053d04df4..0000000000 --- a/test/deleteUsers/data/iterable/handler_output.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - [ - { - "statusCode": 400, - "error": "Config for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "api key for deletion not present" - } - ], - [ - { - "statusCode": 400, - "error": "User deletion request failed for userIds : [{\"userId\":\"rudder2\",\"Reason\":\"User does not exist. Email: UserId: rudder2\"}]" - } - ], - [ - { - "error": "User deletion request failed : Invalid API key", - "statusCode": 401 - } - ], - [ - { - "statusCode": 200, - "status": "successful" - } - ] -] diff --git a/test/deleteUsers/data/iterable/nw_client_data.json b/test/deleteUsers/data/iterable/nw_client_data.json deleted file mode 100644 index 159c301b11..0000000000 --- a/test/deleteUsers/data/iterable/nw_client_data.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder1", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder1 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder2", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "User does not exist. Email: UserId: rudder2", - "code": "BadParams", - "params": null - }, - "status": 400 - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder3", - {}, - { - "Accept": "application/json", - "api_key": "invalidKey" - } - ], - "response": { - "response": { - "data": { - "msg": "Invalid API key", - "code": "Success", - "params": { - "endpoint": "/api/users/byUserId/rudder3" - } - }, - "status": 401 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder4", - {}, - { - "Accept": "application/json", - "api_key": "invalidKey" - } - ], - "response": { - "response": { - "data": { - "msg": "Invalid API key", - "code": "Success", - "params": { - "endpoint": "/api/users/byUserId/rudder3" - } - }, - "status": 401 - } - } - } - ], - [ - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder5", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder5 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - }, - { - "type": "delete", - "reqParams": [ - "https://api.iterable.com/api/users/byUserId/rudder6", - {}, - { - "Accept": "application/json", - "api_key": "dummyApiKey" - } - ], - "response": { - "response": { - "data": { - "msg": "All users associated with rudder6 were successfully deleted", - "code": "Success", - "params": null - }, - "status": 200 - } - } - } - ] -]