From 6ef24fbeb709aef2139b6f34f931b08f5725a24a Mon Sep 17 00:00:00 2001 From: Joshua Teitelbaum Date: Thu, 14 Sep 2023 00:01:51 -0700 Subject: [PATCH] #578 fixes None and replaces with string empty (#579) * #578 fixes None and replaces with string empty * tests --- ...t_full_objects_create-create-multiple.json | 616 +++++++++++++ ...t_half_objects_create-create-multiple.json | 495 ++++++++++ ...tiple_delete_full_objects-delete-many.json | 746 +++++++++++++++ ..._delete_half_full_objects-delete-many.json | 625 +++++++++++++ ...es_toomanyvaluesexception-delete-many.json | 125 +++ ...iple_delete_single_object-delete-many.json | 625 +++++++++++++ ...multiple_update_full_objects-tearDown.json | 135 +++ ...tiple_update_full_objects-update-many.json | 864 ++++++++++++++++++ ...ple_update_half_full_objects-tearDown.json | 135 +++ ..._update_half_full_objects-update-many.json | 743 +++++++++++++++ ...ultiple_update_single_object-tearDown.json | 135 +++ ...iple_update_single_object-update-many.json | 622 +++++++++++++ ...es_toomanyvaluesexception-update-many.json | 125 +++ ...aluesexception_create-create-multiple.json | 125 +++ ...tfoundexception-recordnotfound-delete.json | 132 +++ ..._single_object_create-create-multiple.json | 495 ++++++++++ ..._single_object_creation-create-single.json | 131 +++ ....test_single_object_creation-tearDown.json | 135 +++ ..._single_object_deletion-delete-single.json | 261 ++++++ ...ID.test_single_object_update-tearDown.json | 135 +++ ...st_single_object_update-update-single.json | 258 ++++++ ...tfoundexception-recordnotfound-update.json | 129 +++ .../test_create_update_delete_zendesk.py | 5 + zenpy/lib/api.py | 4 +- zenpy/lib/util.py | 7 + 25 files changed, 7806 insertions(+), 2 deletions(-) create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_full_objects_create-create-multiple.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_half_objects_create-create-multiple.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_full_objects-delete-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_half_full_objects-delete-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_raises_toomanyvaluesexception-delete-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_single_object-delete-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-tearDown.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-update-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-tearDown.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-update-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-tearDown.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-update-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_multiple_update_raises_toomanyvaluesexception-update-many.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_toomanyvaluesexception_create-create-multiple.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_delete_raises_recordnotfoundexception-recordnotfound-delete.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_create-create-multiple.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-create-single.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-tearDown.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_deletion-delete-single.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-tearDown.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-update-single.json create mode 100644 tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_update_raises_recordnotfoundexception-recordnotfound-update.json diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_full_objects_create-create-multiple.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_full_objects_create-create-multiple.json new file mode 100644 index 00000000..7820751e --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_full_objects_create-create-multiple.json @@ -0,0 +1,616 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:56:42", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "3211" + ], + "Content-Type": [ + "application/json" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OSw6CMBSF4b3cMVBKhVQW4tT0cYNgaZHeOoCwdzuQOHV8vuQ/O0xB3yMpShH6HUYLPdxEecXOcGEMb22rZKOv8qI6FFIhb2qpORSQVpftg2iJPWOb8OVEOBI6rdJcbegtxmdlwszUMrJ3w34ljOyPRjXF4HOIAqmc4nVdwLKGYcWYv/rkXAHnc3glTGiznvOqBjxBxsnR1x/HB4FtbeTwAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3c562c1bc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:42 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=UACzqLCabKAxNq8EHPAeO8j%2BqrA5pPW0sR6gka55l3iNCaXH9BMo7kmXTInI%2F3x1NX%2BE0ae5UFg9JY3E6e6Z6ld5%2F9IOA3nS1%2B4GTsu4J%2Fvka%2BRi9m7bVLMakvpiRGrc3sSjfuWkdgL0irTSRw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"34ebc4b0436826e5fa4eb23f49a37bfe\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "699" + ], + "rate-limit-reset": [ + "18" + ], + "set-cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca; path=/; expires=Sat, 07 Sep 2024 19:33:48 GMT; secure; HttpOnly; SameSite=None" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "699" + ], + "x-request-id": [ + "804a3c562c1bc3b1-SEA", + "804a3c562c1bc3b1-SEA" + ], + "x-runtime": [ + "0.309264" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-72sxd" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:56:47", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OSw6CMBSF4b3cMVBKhVQW4tT0cYNgaZHeOoCwdzuQOHV8vuQ/O0xB3yMpShH6HUYLPdxEecXOcGEMb22rZKOv8qI6FFIhb2qpORSQVpftg2iJPWOb8OVEOBI6rdJcbegtxmdlwszUMrJ3w34ljOyPRjXF4HOIAqmc4nVdwLKGYcWYv/rkXAHnc3glTGiznvOqBjxBxsnR1x/HB4FtbeTwAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3c7b6be1c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:47 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=qqT4n%2FQToVN0QOnBmDKuU5aNdvbqyxdGBDTIeCy1wf0zDLq1uLyw2E9srexw3WF4jDl4254MxqJDLoAF4hvH%2BRapdBSYv6AVkgjBihBtXnEexVcLT%2FE5SIlQB%2FlAEeOqqmI2TOYpuSFacVYECw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"34ebc4b0436826e5fa4eb23f49a37bfe\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "698" + ], + "rate-limit-reset": [ + "13" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "698" + ], + "x-request-id": [ + "804a3c7b6be1c3b1-SEA", + "804a3c7b6be1c3b1-SEA" + ], + "x-runtime": [ + "0.053339" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + } + }, + { + "recorded_at": "2023-09-10T19:56:52", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OTQ6CMBBGr2LGLVIKSpCtZ9CtGWCCYGlJO9VEwt0dF8at2+8n7y0wuuYaGDkGqBcYOqjhUuyOVLa6aFt96A5Y5c2x2mNJRYWk86xqNCQQvZHtjXkOtVKvwu5GpoHJNBin9EW2o3BPWzcpnAf1yNWPREH9wUjH4KyA2DEKSmdZArN3vacgrqVO4OsNT+fvg+1lPEmJPUl28oQs4eYcyG+25cdZrtGwPGw0Zl3fFetLjv4AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3c9de8cac3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:52 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=DGwQzUBTVTJByKABchWmB7kYZXYe3SOVbDoOhP4wzmGuRh7X8JRm6C1aX613uWVvUvhXgxGOGmALy7h4PIIpNzLPKEsPI%2FwiepGITlieeo8yYhSgO2HF9nT9%2F67l35n0qFciH1VCXZpvmvU35w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"a0bc0c455fa5d9cec3627926b4825075\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "697" + ], + "rate-limit-reset": [ + "8" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "697" + ], + "x-request-id": [ + "804a3c9de8cac3b1-SEA", + "804a3c9de8cac3b1-SEA" + ], + "x-runtime": [ + "0.059161" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + } + }, + { + "recorded_at": "2023-09-10T19:56:58", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42WT28aQQzFvwraa0PWMx7PH675Dr1UVbXAKA2FgNilh0T57nXVRq2qHn4rLizmvfEb+9mvw+G8/TIv03Kbh83r8LQfNsNHXbeed0F3u2B7m2rctpqm3LVOPUSp2zDcDbfr0WO/Lstl3ozjiz6vD0t/WvpxO91O9y/9ed/nb/e782mcLk/j9zj+YerzCDjuD/P52YmW8zI5VRC5Gy7X8+O1z/Pvr+8HH5zmcuxL33v8yX+fHru/fXh/u5qWVZSoa2nrIKvQNpY3llYfxB//i0PejosDffolQQ6q0T8p5Jj/onm49uknydvdP3ExZhQXtAjCsxhRXCkV8dbK8LQlhJca4y2G8FQUxcVsTL+g7HweivCasDqQgM6XGtMlB8RrQRmeVaZfLgnla4p0tlDYfbTA6lm9oklcCYryNWN1XwPTOVXmG60xnasx/VxmhifsfCUa4jVh/uIPilNvOKSfZYRXIztfLagOTHyaoD5KLA8NLA8ve+YHwvw5K+PNkflzzWgOWkjsPlpivG5/rN8yug+TEpg/Z+ZDWlm91MTmhxW2HxRDeVgMDK8pm0eSkG+YGPOrUlk9uzBMvwbnTGPzQ31govMpq6tSWB61oXszaQyvCKpT83Jh95aZ37eK+shEmM5uB2x/iazfckW8FjLCs9DYvpGE9ZGPBZRvyqiPTJTVfRO0T/p6gOrAYmX+rInVqWamn0Z2v2pIF9MGfTej+easrD9iZPehhe0RsaD9wNzWGJ4i3zVP4794n9/efgDm7WGLsxAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3cbe6962c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:58 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=RuzZB1NzKdVOaxnagDP5KWD2akqKhyy0NZ7QT80GVkSHUpYjRJJhcuYTIIxhwuQZtke7zZCERJZv9NFq3ebBCdKGWnx0sObEkkX1awNDhIIZirtJp75wat%2BFJ8HW2tE%2B6Mhm1UxsS3mZG4WlxA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"a5e4c2dfa1fcb0147808027c20c2ac80\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "696" + ], + "rate-limit-reset": [ + "2" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "696" + ], + "x-request-id": [ + "804a3cbe6962c3b1-SEA", + "804a3cbe6962c3b1-SEA" + ], + "x-runtime": [ + "0.072238" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-9e6c13cc15d5a82b984a6e38ae1208b1.json" + } + }, + { + "recorded_at": "2023-09-10T19:56:58", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133233241626,6133233242266,6133233241370,6133233242522,6133233242778,6133233241882,6133233242394,6133233241498,6133233241754,6133233243034,6133233242650,6133233242138,6133233241242,6133233242906,6133233242010,6133233244954,6133233246106,6133233251354,6133233245850,6133233246746,6133233245338,6133233251738,6133233249178,6133233243418,6133233247130,6133233245594,6133233248154,6133233244826,6133233249946,6133233248538,6133233247386,6133233248026,6133233247258,6133233245082,6133233244442,6133233243290,6133233249562,6133233248282,6133233248794,6133233250202,6133233246490,6133233243162,6133233244186,6133233251098,6133233246362,6133233246234,6133233248666,6133233251482,6133233249434,6133233243546,6133233249690,6133233250714,6133233246618,6133233243802,6133233248410,6133233245722,6133233247514,6133233252122,6133233249306,6133233250458,6133233250586,6133233247898,6133233244570,6133233245978,6133233243930,6133233243674,6133233244314,6133233247770,6133233248922,6133233250970,6133233247002,6133233251226,6133233247642,6133233249818,6133233250074,6133233245466,6133233245210,6133233246874,6133233251610,6133233251994,6133233244058,6133233251866,6133233244698,6133233250330,6133233249050,6133233250842,6133233252890,6133233253402,6133233253658,6133233253274,6133233253530,6133233253914,6133233252634,6133233253018,6133233252250,6133233253786,6133233252762,6133233253146,6133233252378,6133233252506" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3czW7bRhTF8XfR2rb4/eFdX6CbNou2KIixNLaZUKRKDp3Ght+9945txckmWRzEQe8BuolM/SVR+gHFLM7DZl38vGwu/3rY9PvNZZXmeSb/FWlWZGebdR42l5vbEI7L5XZ7n4/n74Pvgx+u3Hq4uPfj3i8fLnbTYeuO/fYu28ba9ovKxftlGjdnm9EdvMSCX8I7uUoe8QfXS39ch+Fss5u9C37fuSAXZUmWnyfteZr8nraXZXVZtH/KE9bj/pvXhP7gu/tp1Nf65eDnfue2v/qP3R/T/EH+3LvRdd+45ngb//T0vpZbN8tLxse6cT1cyVt//pM8FqaXfwzTzg2+05uYvvxL8n48f/ebNKf5xo39vQv9NMaLnp41T89X7c/Xp5tyJ2/nuvdyxbUbFi936d/g59ENr54V3I1+ZX+fbdzQu+XlYbcL/Z3kwrz6lzd+yjx/Dnfjx3B6cHBL6Ibpph/jPX2uf5y6a2lNc+fWcNv50V0Nr0v9zejCOp9u0d4H+SJPb2Oc5Dt+/QG78Ol4uni3LmE6dPHxz5/oMO397OQlT68S+t0HH7pZfi7y/ehtk/s0+39WeUDejNzRcfjUHef+Tn4SnfwED/LBltPTX573+SM/35V1OerP9vPH2ftrtw6hu5mn9fj6q/HHaQ7dbrk7XapfUSdfzrCXF3p4fDz7Gk1eJwA0UiEaorGCpmgbABqpEA3RWEFTZRUAjVSIhmisoKnLAoBGKkRDNFbQNA3iIEAqREM0RtBkSQo4CNAK0RCNFTRpDjgI0ArREI0VNFkFOAjQCtEQjRU0eQs4CNAK0RCNFTRlBjgI0ArREI0VNFWJOAiQCgRNmXwbzdM1REM0b4amrhEHAVIhGqKxgqZNEAcBUiEaojGCJk9ywEGAVoiGaKygSSvAQYBWiIZorKCR/7MCoJEK0RCNFTRFCjgI0ArREI0VNGUBOAjQCtEQjRU0VY04CJAK0RCNFTRNgjgIkArREI0VNG2OOAiQCtEQjRE0RVICDgK0QjREYwVN2gAOArRCNERjBU2eAg4CtEI0RGMFTYEYC9QK0RCNFTQlYixQK0RDNFbQVIixQK0QDdFYQdMgxgK1QjREYwVNixgL1MqPQ5MSDdG8JZoyQYwFagWDJiUaovnp0WSIsUCtEA3RWEGTI8YCtUI0RGMFTYEYC9QK0RCNFTQlYixQK0RDNFbQ1IixQK0QDdFYQdMgxgK1QjREYwVNixgL1ArREI0RNFWKGAvUCtEQjRU0GWIsUCtEQzRW0OSIsUCtEA3RWEFTIMYCtUI0RGMFTYUYC9QK0RCNFTQ1YixQK0RDNFbQNIixQK0QDdEYQVMniLFArRAN0VhBkyLGArVCNERjBU2GGAvUCtEQjRU0OWIsUCsYNNl3oMmIhmjeFE2JGAvUCtEQjRU0FWIsUCtEQzRW0NSIsUCtEA3RWEHTIMYCtUI0RGMETZMgxgK1QjREYwVNihgL1ArREI0VNBliLFArREM0VtAUiLFArRAN0VhBUyLGArVCNERjBU2FGAvUCtEQjRU0NWIsUCtEQzRW0LSIsUCtEA3RGEHTJoixQK0QDdFYQZMixgK1QjREYwVNjhgL1ArREI0VNAViLFArREM0VtCUiLFArWDQ5N+BJicaonlTNBViLFArREM0VtA0iLFArRAN0VhB0yLGArVCNERjA02ZJICxwFghGqKxgiYDjAXGCtEQjRU0OWAsMFaIhmisoCkAY4GxQjREYwVNCRgLjBWiIRoraGrAWGCsEA3RWEHTAMYCY4VoiMYKmhYwFhgrREM0RtCkCWAsMFaIhmisoMkAY4GxQjREYwVNDhgLjBWiIRoraArAWGCsEA3RWEFTAcYCY4VoiMYKmhowFhgrREM0VtA0gLHAWCEaorGCpgWMBcbKj0NTEA3RvCWaLAWMBcYKBk1BNETz06PJAGOBsUI0RGMFTQ4YC4wVoiEaK2hKwFhgrBAN0VhBUwHGAmOFaIjGCpoaMBYYK0RDNFbQNICxwFghGqIxgiZPAGOBsUI0RGMFTQoYC4wVoiEaK2gyxFigVoiGaKygKRBjgVohGqKxgqZEjAVqhWiIxgqaCjEWqBWiIRoraGrEWKBWiIZorKBpEWOBWiEaovmfopEvYJSvpzvKS5x+FLO/66d1+eLB3bTqW0iT5PE/25/JPvFAAQA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3cbfcab1c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:58 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=KssfJJ7mz2hbGO9jwk8XgZR8j6PLwZKDm2jQ1sG0SoEgiHRz1dltj62aNw2edpmDTeQqSL6beQgiD4sohk80bRd0uYKX3WpqGwuvFjYGpdoBqe0qJ7XE6KzGDmwikfmbOcqNQzDoS%2FCA9vk0Ew%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"c3b0037190959f09705acb5496c61f36\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "695" + ], + "rate-limit-reset": [ + "2" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "695" + ], + "x-request-id": [ + "804a3cbfcab1c3b1-SEA", + "804a3cbfcab1c3b1-SEA" + ], + "x-runtime": [ + "0.283438" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133233241626,6133233242266,6133233241370,6133233242522,6133233242778,6133233241882,6133233242394,6133233241498,6133233241754,6133233243034,6133233242650,6133233242138,6133233241242,6133233242906,6133233242010,6133233244954,6133233246106,6133233251354,6133233245850,6133233246746,6133233245338,6133233251738,6133233249178,6133233243418,6133233247130,6133233245594,6133233248154,6133233244826,6133233249946,6133233248538,6133233247386,6133233248026,6133233247258,6133233245082,6133233244442,6133233243290,6133233249562,6133233248282,6133233248794,6133233250202,6133233246490,6133233243162,6133233244186,6133233251098,6133233246362,6133233246234,6133233248666,6133233251482,6133233249434,6133233243546,6133233249690,6133233250714,6133233246618,6133233243802,6133233248410,6133233245722,6133233247514,6133233252122,6133233249306,6133233250458,6133233250586,6133233247898,6133233244570,6133233245978,6133233243930,6133233243674,6133233244314,6133233247770,6133233248922,6133233250970,6133233247002,6133233251226,6133233247642,6133233249818,6133233250074,6133233245466,6133233245210,6133233246874,6133233251610,6133233251994,6133233244058,6133233251866,6133233244698,6133233250330,6133233249050,6133233250842,6133233252890,6133233253402,6133233253658,6133233253274,6133233253530,6133233253914,6133233252634,6133233253018,6133233252250,6133233253786,6133233252762,6133233253146,6133233252378,6133233252506" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_half_objects_create-create-multiple.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_half_objects_create-create-multiple.json new file mode 100644 index 00000000..f9612cf3 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_half_objects_create-create-multiple.json @@ -0,0 +1,495 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:56:58", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "1611" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKDIBCF4btsbURBJeNB0mYQVqNBMLKk0PHuoYiTNvX7Zv63w+S7eyBFMUC7w2ighZu4yKqSUhqty2vDBWrNy15gbQQv+rLRNWQQV5vsg2gJLWObcJeJcCS0nYpzvqEzGJ659jNTy8jenP1KGNgfjXwK3qUQeVIpVRcZLKsfVgzpqovWZnAeh1fEiCbhOa1qwBMkHC19/XF8AN4kCAfvAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3cc2accfc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:56:58 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=26RphSzDAYhYHAHjktf2e2WgRVYYdDzbe7CpOsKXTLzpvGx1JJVU89K8Q28boDnKlbZSrBfmxOAox3Y4NIVLn8sh8n6rlhZvqUVFCQPeSlWGUfJqPTfvGA0M%2BuiWf%2BIS01a1AzslCPunt0Qh9w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"c8693dceae8c20b534e5fdd3980a2fd7\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "694" + ], + "rate-limit-reset": [ + "2" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "694" + ], + "x-request-id": [ + "804a3cc2accfc3b1-SEA", + "804a3cc2accfc3b1-SEA" + ], + "x-runtime": [ + "0.079611" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rxw4j" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:04", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-744777dcc18623ecc21f3e5d320f16c5.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKDIBCF4btsbURBJeNB0mYQVqNBMLKk0PHuoYiTNvX7Zv63w+S7eyBFMUC7w2ighZu4yKqSUhqty2vDBWrNy15gbQQv+rLRNWQQV5vsg2gJLWObcJeJcCS0nYpzvqEzGJ659jNTy8jenP1KGNgfjXwK3qUQeVIpVRcZLKsfVgzpqovWZnAeh1fEiCbhOa1qwBMkHC19/XF8AN4kCAfvAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ce38b57c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:04 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=9ppErixO2yKNh%2FYdf57lUsMzENw69uLTrODQPwo6BwzaIbTIfFIL2TKJt5cFzBG%2BltIG9yuyEfbxuhVeuvG%2B%2FitUX8CW70uFjhqzBN1m1arjIxx%2FqfTIRng7y0lD2z1rNu77yOS3pw2yqU0S3g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"c8693dceae8c20b534e5fdd3980a2fd7\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "699" + ], + "rate-limit-reset": [ + "56" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "699" + ], + "x-request-id": [ + "804a3ce38b57c3b1-SEA", + "804a3ce38b57c3b1-SEA" + ], + "x-runtime": [ + "0.054290" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-744777dcc18623ecc21f3e5d320f16c5.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:09", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-744777dcc18623ecc21f3e5d320f16c5.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA41Vy07DMBD8lcpX2ma962eu/QcuCKGQGGhpm6pxORT131lUVSDEYXKLM5nZ8azXn2YzPj9NtaunybSfZj2Y1tzLIjoXYxz63qbAUvqe7YsUPwjTiw29N3NzOm4V+1brYWqb5iz7xaaWdS3b5+60W57LfijT+7Ifd013WDcf3PwolakBNJabadyrUB1rp1Ke5uZwHF+PZZqub7eyjYoctqWWQdE7/dy9Fl1d3VZnXZ0xsSwoLyzNbG59bCnO7kgf/UUZT9uqRA/XDQhWhNkRZ0r8S2Z1LN23yGX+F8eWEFzK3gE4scFhuj5DfE7dQ7qE4cQJpksRwrHF9kWSTZAP9hBOg8P2OXkkX1G7AaovZaQ+zi4gfJwj5EMoYXm4aDGcT5Bf57A8hMB9DlgfOGWE+BjrZz1GWL4xQrougec8R8gvuYzpZqw+Zmj+iSeon0V8wOaQxXKzgvUfCaar7QLxacCY34zNA89YX5HF6mMH3UciAesXDtAcEuuxucFesPkcofuNs/zP93i5fAFAJw+V4QgAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d05695cc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:09 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Yd8tnKUyjdBLfdR9vDf3C5HGnXOFH%2Byzor3SkQaBAqgRgs9na0RKvonY3Iw6ijCa9we0AUSbooUj0JQHzuoR%2F3KF3d%2FAvJ7vV9OYv7svsR9NmgjO7iVbyHJooMThxlgcBpVFu5p5lQiCxoiV%2FA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"3a144fb6838c1887875ba9172e259b57\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "698" + ], + "rate-limit-reset": [ + "51" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "698" + ], + "x-request-id": [ + "804a3d05695cc3b1-SEA", + "804a3d05695cc3b1-SEA" + ], + "x-runtime": [ + "0.054957" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-744777dcc18623ecc21f3e5d320f16c5.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:09", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133224029082,6133224029210,6133224028954,6133224031642,6133224029594,6133224034202,6133224031002,6133224033434,6133224034074,6133224032154,6133224033818,6133224031258,6133224032922,6133224029850,6133224030746,6133224031898,6133224029466,6133224029722,6133224030874,6133224034714,6133224034586,6133224034458,6133224033050,6133224030618,6133224034330,6133224030234,6133224032026,6133224031770,6133224034842,6133224029978,6133224030490,6133224034970,6133224032282,6133224035098,6133224033562,6133224031130,6133224031386,6133224030362,6133224033306,6133224033178,6133224033946,6133224035226,6133224030106,6133224032410,6133224033690,6133224032666,6133224031514,6133224032538,6133224032794,6133224029338" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3cu3LbOBQG4HdhLVm8U1SXF0iTTZHs7GBgCZYZkyCXBJWNPX73PYAl2UmTQmdsT85fCgJ/4sKvOcV5iObJjFO0+fshanbRpkyyLE3zOF3XRb6I5rGNNtGtc8O0Wa3uM7v85kzjTHut5+7q3tidme6utn230kOzOqSrkLb6KeXq29TbaBFZ3RkKc2Zyn2kWjZhON5Rv57ZdRNvRaGd2SjualMZptozrZRL/ldSbotrE+Vd6YB52v53jms6o+976d33ozNhs9eqj+a6+9OMd/d1oq9Vv5gy34a+ndU23eqRXhjFl5+6aln78i8Zcf/rR9lvdGuUPMTn9onhjl58/UWY/7rVt7rVrehsmPT019sdZu+X8dCgHWs5NY2jGjW4nQ6f0nzOj1e2Lp5ze+yv7ZxHpttHTaVhvXXOgODfO5rTwc8xxH3pvrDsPtnpyqu33jQ1nekz/3qsbyupHpWd3q4zV1+3LpGZvtZvH8xHtjKOLPC/D9nTHLzeo3I/hPHk7T67vVBh/3lHX78yo6ZXnt7hme2ecGulzofvxx0bnNJp/ZxqgxdCJ2vaHGsbmQJ+Eok+wo41N58dPzz1v+Xgq8zT4z/Z5Oztzo+fWqf3Yz8PLqzFDPzq1nQ7nqf6KFF1Ou6MXPTw+Ln5BU8fr9HI0PgVogEYKmjSJGdBQCtAAjRQ0WbZmQEMpQAM0UtDkZcmAhlKABmikoClqhkKATwEaoJGCpko5CgGUAjRAIwXNuuAoBFAK0ACNFDR1xVEIoBSgARoZaLI4iS8vBIQUoAEaKWjS7PJCQEgBGqCRgiYrLy8EhJTXQ1MADdC8KZq8vrwQEFJ40BRAAzTvHk2ZXF4ICClAAzRS0FQ5RyGAUoAGaKSgWVcchQBKARqgEYImiWOGQoBPARqgkYImyRgKAT4FaIBGCpq0YCgE+BSgARopaLI1QyHApwAN0EhBUyQMhQCfAjRAIwVNmXMUAigFaIBGCpqq4igEUArQAI0UNOuaoxBAKUADNELQ0CfJUAjwKUADNFLQJAzNAkMK0ACNFDQpQ7PAkPJ6aEqgAZo3RZMzNAsMKTxoSqABmnePpmBoFhhSgAZopKApGZoFhhSgARopaCqGZoEhBWiARgqamqFZYEgBGqARgiaLGZoFhhSgARopaBKGZoEhBWiARgqajKNZoE8BGqCRgibnaBboU4AGaKSgKTiaBfoUoAEaKWhKjmaBPgVogEYKmjVHs0CfAjRAIwVNzdEs0Ke8HpoKaIDmLdHkMUezQJ/Cg6YCGqB592hSjmaBPgVogEYKmoyjWaBPARqgkYIm52gW6FOABmikoCk4mgX6FKABGiloKo5mgT4FaIBGCpo1R7NAnwI0QCMFTc3RLNCnAA3QCEFTxBzNAn0K0ACNFDQpR7NAnwI0QPOHoqELsHQ9aqBXnD+K0Ryafp5+Gtz2s19CET/+D9pr9NmWoAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d073ab4c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:09 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=2TkzJ6UmG6K9rrJI%2F%2FD2oc%2FoLyMEWZiY5sNE0LQvDvTqI9hBxwQGROuJf739je7NQtOGlMMPpLOw019NEwq6o7u2kFSGkk3weorrmtMt1q6I6OTJtJPgHxVTX5s01c%2FkwRqJ0gootek4JQMEmg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"93e9cd715aa787b1285fbf4db0fc3ddb\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "697" + ], + "rate-limit-reset": [ + "51" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "697" + ], + "x-request-id": [ + "804a3d073ab4c3b1-SEA", + "804a3d073ab4c3b1-SEA" + ], + "x-runtime": [ + "0.199093" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rdfq7" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133224029082,6133224029210,6133224028954,6133224031642,6133224029594,6133224034202,6133224031002,6133224033434,6133224034074,6133224032154,6133224033818,6133224031258,6133224032922,6133224029850,6133224030746,6133224031898,6133224029466,6133224029722,6133224030874,6133224034714,6133224034586,6133224034458,6133224033050,6133224030618,6133224034330,6133224030234,6133224032026,6133224031770,6133224034842,6133224029978,6133224030490,6133224034970,6133224032282,6133224035098,6133224033562,6133224031130,6133224031386,6133224030362,6133224033306,6133224033178,6133224033946,6133224035226,6133224030106,6133224032410,6133224033690,6133224032666,6133224031514,6133224032538,6133224032794,6133224029338" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_full_objects-delete-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_full_objects-delete-many.json new file mode 100644 index 00000000..1c0daa39 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_full_objects-delete-many.json @@ -0,0 +1,746 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:57:10", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "3211" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsjSQkAgMHsXU2ZkUwECQbCxjubgoZW+v3zfxvg8Gba2DkGKDdoLfQwkWf7mVRVs1Z6ZqsKZTCEtHUsq6sNtLIBjKIi0v2wTyHVohVT6eBqWdyBuOYrzRZCs/85keBcy/eSvxKFMQfjXwIfkoh9owpVUiZwbz4bqGQvk7RuQyO5/CKFMkmPaYVOzpAwtHx1+/7B8APjI7wAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d097c60c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:10 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=BumfHmZuZSdbbUEqbLrPrHhn1AyCBSjecnzihjX9HlDS%2Fgl5HUTePrvcO8l18AU1n6SS%2Fk0%2BNZO9s%2BCsPjtZOMtyUrpCy6rLdP6DsIwFsk3HqjYnwu1S2XPRPOB6TReYfidbbtEH3c0qZCm4Yw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"6ff81e6ef5a391fafde2a7e36871545f\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "696" + ], + "rate-limit-reset": [ + "50" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "696" + ], + "x-request-id": [ + "804a3d097c60c3b1-SEA", + "804a3d097c60c3b1-SEA" + ], + "x-runtime": [ + "0.128394" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:15", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OS47CMBBEr4KabYg/mRCRLWeY2Y7apCckOHZkt0ECcffpDWLLtqqeXj1gju43M3LJ0D9gGqCHn2b315p2f/iyTUeDM9Zii+g63e2HxmmnD1BBSV62Z+Y190rdm7CbmSYm77As9Z3CQPlSn+KicJ3U1aq3ibL6wFHPOQYRcWQUldG6gjXFMVGWr8ZW8PoNt5guUxhlvEiJI0l2TIQs4eY7U9psjZVW0OJZiFC8fz7/AYDXebP+AAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d2ad971c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:15 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=uUcbTMQB12lmcA7MgJYt67tdMkH3WN9q7vFT0zygd1BY%2BglqWHne6nxB4YjeSrZF8U0g9wP%2BKXw0UOGHMk3GvAcxFYjESDEDBSzxuHxDdbRumMUuvIISLLaxeVyzCXIJZ%2B58iZL3WKLcQjV4Yg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"4f29e3bd68325a6969f610919036a65b\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "695" + ], + "rate-limit-reset": [ + "45" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "695" + ], + "x-request-id": [ + "804a3d2ad971c3b1-SEA", + "804a3d2ad971c3b1-SEA" + ], + "x-runtime": [ + "0.067512" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rxw4j" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:20", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OwW6DMBBEfyXaXgk2uATBNd+QXKt12VKIsZG9TqQg/r17qXLNdWae3mwwB/uVGDkn6DeYBujhao4/TdWcus/atDTYqq6xQbStbk+DsdrqDgrI0cn2l3lNvVJP448z08TkLOalfJIfKN3K77AoXCd1r9XLREm94SjnFLyIODCKqtK6gDWGMVKSr50p4P83PEK8TX6U8SIljiTZORKyhIdLonj46Iy0gmbHQvjs3L7/AaCoD+v+AAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d4b7c73c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:20 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ENRgd%2FMAxiiqd6uSHPp2nmDHCnTLg%2B52ghs9vvXyeF1gJK4LqwkJoUdCTLnVQJpbLU%2BgT%2BkDYq%2B2%2By2klqiWSRg4ysDdr0QNmi5gyNoAOia8wk8tbsrIbDXsKpASX2%2B4ydhxIJPrDBRlEpjPdA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"2549a1b498d51335310b378d40a4779d\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "694" + ], + "rate-limit-reset": [ + "40" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "694" + ], + "x-request-id": [ + "804a3d4b7c73c3b1-SEA", + "804a3d4b7c73c3b1-SEA" + ], + "x-runtime": [ + "0.058529" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:25", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42XQW/bMAyF/0rg65pGpCRSyrX/YZdhGJzF69KlTRA7O7Tofx+Hrdgw7PAludh55pPIx0f5ZXg47T7Ny7hc52H7Mhz2w3Z4n9dfqlTrRbNP+52ojnUcd57c9nmXdqkPN8P1cgzs12U5z9vN5jk/rR+W6bBMx914fbx9np720/zt9vPpcTOeD5vvuvnDNM0bwHH7MJ+egmg5LWNQSUo3w/lyur9M8/z78m3hQ9Ccj9My7QP/GP+P91PcvXu7uxqXlSbN69TXklbSt9W3Kqt3KT7xSIS8HpcI9OFXCkxy1tK7p3jqL5q7yzT+JHm9+ReXcwI4600awTXvheC8CsF5ih/irZmtTyrjLRXFiw2zeK2QepgbwrmkzvarjfEmqJfaDMVzVDcXZ3UzL4i3FWF67iiei6F4LoXluZeM+iO+aB+RPlYPZXru4kxXZix/DeGsdWW6V2XxEsKF7GH/OvIrc4F+mirDVWP925gf9JxQ/syQ38d2mZ96QevzGKoIV4T5SzQIwmVD/eFuTFe5MD8tjfmLC5uX2pBveAxMlmdldbPEeGtD/hdjkPVlFubjpkzPxZCPe8gU8bqyeZ4r1Gli+/DG9lEq69/cmf66IL/yVpnf14J80kthfanCeEtidWuJ9W8TdM7xEBaK1xPrI3VWj9LZ+qqj+RHHDYZrys4R8QLC4nXIa0xXNTO9WGY+1DJ6P3JVuL7E8leF8bozP1Bj+uvK5kJzNvezsrlgxuZv7aw/amXrk/7/PH98ff0B7xKIdLMQAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d6bf8a1c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:25 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=YJs4JvWnmEGTINamR7eXCb85gQs7hGCwfaYKjYIR%2FmlBrWkMr1uZ49k2wO5jSUS%2FpQki2pavloNzbcg07c%2BhtyEtb22wsfYIeLfuqPE88d2vZ6FrKzxkqCQ9AXP0P%2BoMUZM4mt2JDy8073hOEg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"69554f625312e2eb114d547b72958f40\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "693" + ], + "rate-limit-reset": [ + "35" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "693" + ], + "x-request-id": [ + "804a3d6bf8a1c3b1-SEA", + "804a3d6bf8a1c3b1-SEA" + ], + "x-runtime": [ + "0.057797" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-f515694237edb122a5aab7076d3b0b09.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:26", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133249970202,6133249970330,6133249969818,6133249968794,6133249967514,6133249970970,6133249968538,6133249968154,6133249970458,6133249966874,6133249970842,6133249967642,6133249971098,6133249968282,6133249967002,6133249970586,6133249967770,6133249971738,6133249966746,6133249968410,6133249969946,6133249971610,6133249971482,6133249969434,6133249969690,6133249967386,6133249967258,6133249969178,6133249968666,6133249971866,6133249968922,6133249971226,6133249968026,6133249970074,6133249970714,6133249967130,6133249969050,6133249969562,6133249967898,6133249969306,6133249966618,6133249971354,6133249977498,6133249972378,6133249974170,6133249976730,6133249973658,6133249977626,6133249973402,6133249974810,6133249977114,6133249972890,6133249976858,6133249974298,6133249976090,6133249975834,6133249976474,6133249973146,6133249976218,6133249974682,6133249973786,6133249977242,6133249973530,6133249973018,6133249977882,6133249974554,6133249973914,6133249979162,6133249978522,6133249975450,6133249974426,6133249972122,6133249974042,6133249978010,6133249978138,6133249977370,6133249979034,6133249972762,6133249974938,6133249975706,6133249972506,6133249978266,6133249976986,6133249978906,6133249978650,6133249975322,6133249976346,6133249978394,6133249972250,6133249975066,6133249975194,6133249977754,6133249972634,6133249979290,6133249978778,6133249973274,6133249976602,6133249975962,6133249975578,6133249971994" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3cvW7jRhiF4XthbVv8/1GXG0iTbJEEATGWxjLXFKmQQ23Whu89841t2ZvGAnIAAflOuTL1SqL0FDvFeYqW2U5ztP7jKeq20bpMsizNm6Ysy6S+ipapj9bRvXOHeb1aPWbD9VdnO2f7W7Psbx7tsLXzw81m3K/MoVsd01WorX6o3HydxyG6igaztz7m7Oy++Kv8I3ZvOt8flr6/ijaTNc5uW+P8RWmcZtdxc53EvybNuqjWSf67f8Jy2H56jev2tn0cB3mtn/Z26jZm9bP91v42Tg/+z50ZTPvJNYf78KeX9zXfm8m/ZHisHZb9rX/rr3/yj7nx7R/9uDG9beUmJm//8nk7XH/5xTfHaWeG7tG4bhzCRS/PmsbXq7bXy8tNOfq3c9dZf8Wd6Wfr79Lfzk6D6T88y5mdfGV/XkWm78z89rDZuO7oc25a7NsbP2VeP4fZ2cGdHuzN7Np+3HVDuKev9W9je+db49Saxd23djC3/cdStxuMW6bTLdpa57/I09sYRv8df/yArft+OF28WWY37tvw+Psn2o9bOxn/kqdXcd3mwbp28j8X//3IbfP3abJ/Lf4B/2b8HR367+1h6o7+J9H6n+Def7D59PS3571/5Ne7sswH+dm+f5ytvTNL79rdNC6Hj1+NPYyTazfz8XSpfEWt/3L6rX+hp+fnq3+jqfISgMZXiIZotKCpqxyAxleIhmiUoKniOP3vaKRCNESjBU2SxQA0vkI0RKMFTVoADgKkQjREowVNVgMOAqSCQVOcgaYgGqK5KJoiARwESIVoiEYLmjJHHAT4CtEQjRY0VYU4CPAVoiEaLWjqBnEQ4CtEQzRK0NRxCjgIkArREI0WNEkBOAiQCtEQjRY0aQ04CJAK0RCNFjR5AjgIkArREI0WNEUGOAiQCtEQjRY0ZYk4CPAVoiEaLWiqBnEQ4CtEQzRa0DQp4iDAV4iGaJSgaeICcBAgFaIhGi1okgpwECAVoiEaLWiyGHAQIBUMmvIMNCXREM1F0eQZ4CBAKkRDNFrQFCXgIEAqREM0WtD4/8QD0PgK0RCNFjQ1YixQKkRDNFrQNIixQKkQDdHoQFPFMWAsMFSIhmi0oEkBY4GhQjREowVNBhgLDBWiIRotaHLAWGCoEA3RaEFTAMYCQ4VoiEYLmgowFhgqREM0WtDUgLHAUCEaotGCpgGMBYYK0RCNEjRJDBgLDBWiIRotaFLAWGCoEA3RaEGTAcYCQwWDpjoDTUU0RHNRNDlgLDBUiIZotKApAWOBoUI0RKMFTQUYCwwVoiEaLWhqwFhgqBAN0WhB0wDGAkOFaIhGCZo0AYwFhgrREI0WNClgLDBUiIZotKDJAGOBoUI0RKMFTQEYCwwVoiEaLWhKwFhgqBAN0WhBUwHGAkOFaIhGC5oaMBYYKkRDNErQZDFgLDBUiIZotKBJAGOBoUI0RKMFTYoYC5QK0RCNFjQ5YixQKhg09RloaqIhmouiKRBjgVIhGqLRgqZEjAVKhWiIRguaCjEWKBWiIRotaBrEWKBUiIZolKDJY8RYoFSIhmi0oEkQY4FSIRqi0YImRYwFSoVoiEYLmhwxFigVoiEaLWgKxFigVIiGaLSgKRFjgVIhGqLRgqZGjAVKhWiIRguaBjEWKBWiIRolaIoYMRYoFaIhGi1oEsRYoFQwaJoz0DREQzQXRZMhxgKlQjREowVNjhgLlArREI0WNAViLFAqREM0WtBUiLFAqRAN0WhBUyPGAqVCNESjBU2DGAuUCtEQjRI0ZYwYC5QK0RCNFjQpYixQKkRDNFrQZIixQKkQDdFoQZMjxgKlQjREowVNiRgLlArREI0WNBViLFAqREM0WtDUiLFAqRAN0WhB0yDGAqVCNESjBE2VIMYCpUI0RKMFTYoYC5QK0RCNFjQZYixQKhA0afw5mpdriIZoLoYmR4wFSoVoiEYLmhIxFigVoiEaLWgqxFigVIiGaLSgqRFjgVIhGqJRgqaOEWOBUiEaotGCJkGMBUqFaIhGC5oUMRYoFaIhGi1oMsRYoFSIhmi0oCkQY4FSIRqi0YKmRIwFSoVoiEYLmgoxFigVoiEaLWgaxFigVIiGaJSgaWLEWKBUiIZotKBJEGOBUiEaotGCJkWMBUqFaIjmf4rGfwGD/3rag3+J049issduXOYfHtyMi7yFJI6f/wHIqEtt8UABAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d6d29dfc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:26 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Aqv9lUkWocs47BWAoiIm3oPM2BzsKIMaKO2fQc7cyaO7LkCABjTaEQpl9zcQ8MTkG27t6%2BKxukE2s0ODSW5%2Ba4s17XMtd4OHMDas8J8BFxHBYwjYF78F9HldvNmh1kDBxFbsrR13l4n%2Bl9KI%2Bw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"889a470ccdf94081fcf78e1294be6bde\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "692" + ], + "rate-limit-reset": [ + "34" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "692" + ], + "x-request-id": [ + "804a3d6d29dfc3b1-SEA", + "804a3d6d29dfc3b1-SEA" + ], + "x-runtime": [ + "0.277666" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rdfq7" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133249970202,6133249970330,6133249969818,6133249968794,6133249967514,6133249970970,6133249968538,6133249968154,6133249970458,6133249966874,6133249970842,6133249967642,6133249971098,6133249968282,6133249967002,6133249970586,6133249967770,6133249971738,6133249966746,6133249968410,6133249969946,6133249971610,6133249971482,6133249969434,6133249969690,6133249967386,6133249967258,6133249969178,6133249968666,6133249971866,6133249968922,6133249971226,6133249968026,6133249970074,6133249970714,6133249967130,6133249969050,6133249969562,6133249967898,6133249969306,6133249966618,6133249971354,6133249977498,6133249972378,6133249974170,6133249976730,6133249973658,6133249977626,6133249973402,6133249974810,6133249977114,6133249972890,6133249976858,6133249974298,6133249976090,6133249975834,6133249976474,6133249973146,6133249976218,6133249974682,6133249973786,6133249977242,6133249973530,6133249973018,6133249977882,6133249974554,6133249973914,6133249979162,6133249978522,6133249975450,6133249974426,6133249972122,6133249974042,6133249978010,6133249978138,6133249977370,6133249979034,6133249972762,6133249974938,6133249975706,6133249972506,6133249978266,6133249976986,6133249978906,6133249978650,6133249975322,6133249976346,6133249978394,6133249972250,6133249975066,6133249975194,6133249977754,6133249972634,6133249979290,6133249978778,6133249973274,6133249976602,6133249975962,6133249975578,6133249971994" + } + }, + { + "recorded_at": "2023-09-10T19:57:26", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133249966618, \"name\": \"testUser\"}, {\"id\": 6133249966746, \"name\": \"testUser\"}, {\"id\": 6133249966874, \"name\": \"testUser\"}, {\"id\": 6133249967002, \"name\": \"testUser\"}, {\"id\": 6133249967130, \"name\": \"testUser\"}, {\"id\": 6133249967258, \"name\": \"testUser\"}, {\"id\": 6133249967386, \"name\": \"testUser\"}, {\"id\": 6133249967514, \"name\": \"testUser\"}, {\"id\": 6133249967642, \"name\": \"testUser\"}, {\"id\": 6133249967770, \"name\": \"testUser\"}, {\"id\": 6133249967898, \"name\": \"testUser\"}, {\"id\": 6133249968026, \"name\": \"testUser\"}, {\"id\": 6133249968154, \"name\": \"testUser\"}, {\"id\": 6133249968282, \"name\": \"testUser\"}, {\"id\": 6133249968410, \"name\": \"testUser\"}, {\"id\": 6133249968538, \"name\": \"testUser\"}, {\"id\": 6133249968666, \"name\": \"testUser\"}, {\"id\": 6133249968794, \"name\": \"testUser\"}, {\"id\": 6133249968922, \"name\": \"testUser\"}, {\"id\": 6133249969050, \"name\": \"testUser\"}, {\"id\": 6133249969178, \"name\": \"testUser\"}, {\"id\": 6133249969306, \"name\": \"testUser\"}, {\"id\": 6133249969434, \"name\": \"testUser\"}, {\"id\": 6133249969562, \"name\": \"testUser\"}, {\"id\": 6133249969690, \"name\": \"testUser\"}, {\"id\": 6133249969818, \"name\": \"testUser\"}, {\"id\": 6133249969946, \"name\": \"testUser\"}, {\"id\": 6133249970074, \"name\": \"testUser\"}, {\"id\": 6133249970202, \"name\": \"testUser\"}, {\"id\": 6133249970330, \"name\": \"testUser\"}, {\"id\": 6133249970458, \"name\": \"testUser\"}, {\"id\": 6133249970586, \"name\": \"testUser\"}, {\"id\": 6133249970714, \"name\": \"testUser\"}, {\"id\": 6133249970842, \"name\": \"testUser\"}, {\"id\": 6133249970970, \"name\": \"testUser\"}, {\"id\": 6133249971098, \"name\": \"testUser\"}, {\"id\": 6133249971226, \"name\": \"testUser\"}, {\"id\": 6133249971354, \"name\": \"testUser\"}, {\"id\": 6133249971482, \"name\": \"testUser\"}, {\"id\": 6133249971610, \"name\": \"testUser\"}, {\"id\": 6133249971738, \"name\": \"testUser\"}, {\"id\": 6133249971866, \"name\": \"testUser\"}, {\"id\": 6133249971994, \"name\": \"testUser\"}, {\"id\": 6133249972122, \"name\": \"testUser\"}, {\"id\": 6133249972250, \"name\": \"testUser\"}, {\"id\": 6133249972378, \"name\": \"testUser\"}, {\"id\": 6133249972506, \"name\": \"testUser\"}, {\"id\": 6133249972634, \"name\": \"testUser\"}, {\"id\": 6133249972762, \"name\": \"testUser\"}, {\"id\": 6133249972890, \"name\": \"testUser\"}, {\"id\": 6133249973018, \"name\": \"testUser\"}, {\"id\": 6133249973146, \"name\": \"testUser\"}, {\"id\": 6133249973274, \"name\": \"testUser\"}, {\"id\": 6133249973402, \"name\": \"testUser\"}, {\"id\": 6133249973530, \"name\": \"testUser\"}, {\"id\": 6133249973658, \"name\": \"testUser\"}, {\"id\": 6133249973786, \"name\": \"testUser\"}, {\"id\": 6133249973914, \"name\": \"testUser\"}, {\"id\": 6133249974042, \"name\": \"testUser\"}, {\"id\": 6133249974170, \"name\": \"testUser\"}, {\"id\": 6133249974298, \"name\": \"testUser\"}, {\"id\": 6133249974426, \"name\": \"testUser\"}, {\"id\": 6133249974554, \"name\": \"testUser\"}, {\"id\": 6133249974682, \"name\": \"testUser\"}, {\"id\": 6133249974810, \"name\": \"testUser\"}, {\"id\": 6133249974938, \"name\": \"testUser\"}, {\"id\": 6133249975066, \"name\": \"testUser\"}, {\"id\": 6133249975194, \"name\": \"testUser\"}, {\"id\": 6133249975322, \"name\": \"testUser\"}, {\"id\": 6133249975450, \"name\": \"testUser\"}, {\"id\": 6133249975578, \"name\": \"testUser\"}, {\"id\": 6133249975706, \"name\": \"testUser\"}, {\"id\": 6133249975834, \"name\": \"testUser\"}, {\"id\": 6133249975962, \"name\": \"testUser\"}, {\"id\": 6133249976090, \"name\": \"testUser\"}, {\"id\": 6133249976218, \"name\": \"testUser\"}, {\"id\": 6133249976346, \"name\": \"testUser\"}, {\"id\": 6133249976474, \"name\": \"testUser\"}, {\"id\": 6133249976602, \"name\": \"testUser\"}, {\"id\": 6133249976730, \"name\": \"testUser\"}, {\"id\": 6133249976858, \"name\": \"testUser\"}, {\"id\": 6133249976986, \"name\": \"testUser\"}, {\"id\": 6133249977114, \"name\": \"testUser\"}, {\"id\": 6133249977242, \"name\": \"testUser\"}, {\"id\": 6133249977370, \"name\": \"testUser\"}, {\"id\": 6133249977498, \"name\": \"testUser\"}, {\"id\": 6133249977626, \"name\": \"testUser\"}, {\"id\": 6133249977754, \"name\": \"testUser\"}, {\"id\": 6133249977882, \"name\": \"testUser\"}, {\"id\": 6133249978010, \"name\": \"testUser\"}, {\"id\": 6133249978138, \"name\": \"testUser\"}, {\"id\": 6133249978266, \"name\": \"testUser\"}, {\"id\": 6133249978394, \"name\": \"testUser\"}, {\"id\": 6133249978522, \"name\": \"testUser\"}, {\"id\": 6133249978650, \"name\": \"testUser\"}, {\"id\": 6133249978778, \"name\": \"testUser\"}, {\"id\": 6133249978906, \"name\": \"testUser\"}, {\"id\": 6133249979034, \"name\": \"testUser\"}, {\"id\": 6133249979162, \"name\": \"testUser\"}, {\"id\": 6133249979290, \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4311" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133249966618,6133249966746,6133249966874,6133249967002,6133249967130,6133249967258,6133249967386,6133249967514,6133249967642,6133249967770,6133249967898,6133249968026,6133249968154,6133249968282,6133249968410,6133249968538,6133249968666,6133249968794,6133249968922,6133249969050,6133249969178,6133249969306,6133249969434,6133249969562,6133249969690,6133249969818,6133249969946,6133249970074,6133249970202,6133249970330,6133249970458,6133249970586,6133249970714,6133249970842,6133249970970,6133249971098,6133249971226,6133249971354,6133249971482,6133249971610,6133249971738,6133249971866,6133249971994,6133249972122,6133249972250,6133249972378,6133249972506,6133249972634,6133249972762,6133249972890,6133249973018,6133249973146,6133249973274,6133249973402,6133249973530,6133249973658,6133249973786,6133249973914,6133249974042,6133249974170,6133249974298,6133249974426,6133249974554,6133249974682,6133249974810,6133249974938,6133249975066,6133249975194,6133249975322,6133249975450,6133249975578,6133249975706,6133249975834,6133249975962,6133249976090,6133249976218,6133249976346,6133249976474,6133249976602,6133249976730,6133249976858,6133249976986,6133249977114,6133249977242,6133249977370,6133249977498,6133249977626,6133249977754,6133249977882,6133249978010,6133249978138,6133249978266,6133249978394,6133249978522,6133249978650,6133249978778,6133249978906,6133249979034,6133249979162,6133249979290" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsjSQYxMBBbJ2F7CAYEiQbCxjubgoZW+v3zfxvg9G398DIMUCzwWCggZs6aaqNrkxRXEzdaVmiqjTKqi2lMqS6K2QQF5vsg3kOjRCrcqeRaWCyLcYpX8kZCs+885PAeRDvs/iVKIg/GvkYvEsh9owpVUiZwbz4fqGQvrpobQbHc3hFimSSntKKPR0g4Wj56/f9AwrFL57wAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d6ffc1ec3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:26 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=V%2FzsXowmjrQY%2FLFaL3AjODS%2FviItohEoNzvXyzSe7R8YIpLI393oXjF18I6Z2xNQDqyv6UYi2yblZinvWEFZTPBJXJus3lw8yMdrHXBfHSwxkUejIgjMeYZMgzEkP63i4KE1OO3JzfOliHQMTw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b8541c312178558154f92a4234f7da95\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "691" + ], + "rate-limit-reset": [ + "34" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "691" + ], + "x-request-id": [ + "804a3d6ffc1ec3b1-SEA", + "804a3d6ffc1ec3b1-SEA" + ], + "x-runtime": [ + "0.093778" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy_many\", :unpermitted_keys=>[\"users\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133249966618,6133249966746,6133249966874,6133249967002,6133249967130,6133249967258,6133249967386,6133249967514,6133249967642,6133249967770,6133249967898,6133249968026,6133249968154,6133249968282,6133249968410,6133249968538,6133249968666,6133249968794,6133249968922,6133249969050,6133249969178,6133249969306,6133249969434,6133249969562,6133249969690,6133249969818,6133249969946,6133249970074,6133249970202,6133249970330,6133249970458,6133249970586,6133249970714,6133249970842,6133249970970,6133249971098,6133249971226,6133249971354,6133249971482,6133249971610,6133249971738,6133249971866,6133249971994,6133249972122,6133249972250,6133249972378,6133249972506,6133249972634,6133249972762,6133249972890,6133249973018,6133249973146,6133249973274,6133249973402,6133249973530,6133249973658,6133249973786,6133249973914,6133249974042,6133249974170,6133249974298,6133249974426,6133249974554,6133249974682,6133249974810,6133249974938,6133249975066,6133249975194,6133249975322,6133249975450,6133249975578,6133249975706,6133249975834,6133249975962,6133249976090,6133249976218,6133249976346,6133249976474,6133249976602,6133249976730,6133249976858,6133249976986,6133249977114,6133249977242,6133249977370,6133249977498,6133249977626,6133249977754,6133249977882,6133249978010,6133249978138,6133249978266,6133249978394,6133249978522,6133249978650,6133249978778,6133249978906,6133249979034,6133249979162,6133249979290" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_half_full_objects-delete-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_half_full_objects-delete-many.json new file mode 100644 index 00000000..48f41939 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_half_full_objects-delete-many.json @@ -0,0 +1,625 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:57:26", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "1611" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDQQJQoaD2DobWBAMCZKNBQx3N4WMrfX7Zv63w+T03TNy8NDsMHbQwE2mhSwrrWpEKVWfl1WL9SXvpUSpdF+oChIIq4n2wbz4RohN2nRiGpmMxjBnG9mO/DNr3SxwGcW7EL8SefFHI5u8szHEjjGmrnkCy+qGlXy8aoMxCZzH4RUoUBfxHFcc6AQRB8NffxwfnHL14u8AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d716d43c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:26 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dk9iZhX1rnHfkZ7cpBqT8Ra9uV7iokEdAbpo%2BJHyzwTKcu3WJ2vZm0VHhpt19rgMDqiIayonOC4Gk8%2B6tpW0OSgKewXvWkxksDU%2FsFTd7w0B2ALIANBmfN4D1OYS6RJ7B7A0DQDJvn29Y4N6oQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"8d84a985a72f4c28da7d3413712262d6\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "690" + ], + "rate-limit-reset": [ + "34" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "690" + ], + "x-request-id": [ + "804a3d716d43c3b1-SEA", + "804a3d716d43c3b1-SEA" + ], + "x-runtime": [ + "0.090845" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:32", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2346b87aa338f046ca710f33a38bf286.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OwW6DMBBEfyXaXgkm3oQgrv2G5hotyUIhxkb2upWC+Pfspeo115l5erPCFLprEpKcoF1hvEMLF9xbPNZdcyZCbPrqWN/ofKh6RMKm621TQwE5Ot1+iyypNeaJfj8Jj8KuozyXT/Z3To/yFmZDy2h+rPk3cTJvOMopBa8iCUKqOlUFLDEMkZNetVjA3234DfEx+kG3s5Y0sGafkUk03H0ljrsPi9oqmp0o4bNz2/YC/K8++v0AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3d9229b7c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:32 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=cbGc321Z7Ckxp1pI0AiG2G0HsTRPlNWC6mXLb7PhOr%2BRoyjGSbnNPc2HeOjPVYWRBtI95I5v16DeI9i07dmGls7pM7%2FQkljAv2XOvRTnCDYpays3uUeu%2FZmlpsiRSKg1OouTF1cK41%2Fb1FprSw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"7c8ea585febaef9d02fef1beacb5e32b\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "689" + ], + "rate-limit-reset": [ + "29" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "689" + ], + "x-request-id": [ + "804a3d9229b7c3b1-SEA", + "804a3d9229b7c3b1-SEA" + ], + "x-runtime": [ + "0.059359" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rxw4j" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2346b87aa338f046ca710f33a38bf286.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:37", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2346b87aa338f046ca710f33a38bf286.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA41Uy3LaQBD8FWqvATSPferqf8gllXItZnHAgCi05GAX/+4NxkkOqah106rVPdPTs29mN6wex5rrZTT9m9muTW++6kLU+lUMOavGDVn/lAPTRjVrXG0kejM3l/O+YX/Uehr7rnvV42JXy7aW/SpfDsvXclyX8WX5NBy6fNp2P6X7o1TGDtBY7sbh2ITqUHOTcjQ3p/PwfC7j+PH2WbZpIqd9qWXd0If2OT+XdvrweTrLdSYkuqC0YJpx6l3oVWdfqD3tl8Z42ddG9O3DAM8qNqUYRbz/S+bhXPIvkev8N05F1bK3wU7gmLxPFHgKd+Nzycv/cWLVOvYaIlQfJYJwbSJTujdfWDFd4QncvQ9xUH0xYP0mwfoNGhCcEEckB0IO4uPoZGK+dz5rERz7BNXHyU/m9KbLFsq9UBRsP6LD5sZTub/7B+YvgvsbNWG+KKQr3IyBfAmK5dQmzL8E8QkRNo8gWP6Sndrzu25y0P0XE2Fz89i9ERi7d70naC+5TRjSDWC/hPE1+yBfQoTyJ+TBXEXQF4ftESk2j0QK4YL/9z30/Xp9B+0NVGPhCAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3db2de73c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:37 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=v72rQXeui9DVJsn41U7OgSLuU9%2BA2Hjz58Yvcd8c5GvlI2u%2FV89No95nMUwJqDcDJBtL%2B7CKwFxA7iM0Oxc3EGj2WgmujOPRwgEkNGxeh6kJjba%2BXFCuJfGgU4q3iq36dlPx0NsYqvpOEn%2BXgg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"5ca23547b0bdfc90a40204f6903d606f\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "688" + ], + "rate-limit-reset": [ + "23" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "688" + ], + "x-request-id": [ + "804a3db2de73c3b1-SEA", + "804a3db2de73c3b1-SEA" + ], + "x-runtime": [ + "0.057961" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2346b87aa338f046ca710f33a38bf286.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:37", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6132499882266,6133233416474,6133106690714,6133233415962,6132434516378,6133233416090,6133233416346,6132499882138,6133233416218,6132434516250,6133233418778,6133233419290,6133233417370,6133233420186,6133233420570,6133233418522,6133233420442,6133233416986,6133233419674,6133233421466,6133233420826,6133233416858,6133233419162,6133233418138,6133233418266,6133233418394,6133233421338,6133233421082,6133233416730,6133233417498,6133233419930,6133233420058,6133233417242,6133233419418,6133233420954,6133233418906,6133233418650,6133233417114,6133233416602,6133233421210,6133233417754,6133233418010,6133233419546,6133233417882,6133233420698,6133233419802,6133233421594,6133233420314,6133233419034,6133233417626" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3cz27jNhAG8HfR2Y7135JvfYFe2j20RUEwNuNoI1GqRHm7CfLuHSqxlO1lA2iAAJnvaIr6RJH6XQbGPAXjYPohOPz1FFSn4JBHSZwmaRblcRZugrGvg0Nw71w3HHa7x8RuvzpTOVPf6rG5eTT2ZIaHm2Pb7HRX7S7xbkrb/ZBy83VobbAJrG4MhTkzuC80i0ZMoyvKt2Ndb4Jjb7QzJ6UdTYrDONmG5TYKf4/KQ7Y/JOGfdMPYnX46x1WNUY+t9c/6pTF9ddS7X8039UfbP9DlSlutfjKnu58uvaxruNc9PXIaU3Zsbmnpr5dozLXXH3V71LVRfhOj6y+KN3b75TfKbPuzttWjdlVrp0kvd/Xt66zTdnzZlAst564yNONO14OhXfrXmd7q+s1dTp/9kf29CXRd6eE6rI+uulCc60dzXfgc8/oe+mysmwdrPThVt+fKTnv6mv6tVXeU1fZKj+5eGatv67dJ1dlqN/bzFp2Mo4Ocl2FbOuO3L6jc926efBwH1zZqGl/eqGlPptf0yPkprjo+GKd6+lzofPy20T715p+RBmgxtKO2/q66vrrQJ6HoE2zoxYb59ut9yyu/7so4dP6zXV7nZO70WDt17tuxe3s0pmt7p47DZZ7qj0jR4dQnetDT8/Pm/2iSfcGAhlKABmgEoCnLooijZCWaawrQAI0UNHGeM6ChFKABmk+PJonCPC/DfZSuQbOkAA3QfH40cZKkUVbm8So0cwrQAI0QNHlYrqqeLSlAAzRS0MTRqkLAkgI0QCMFTZKuKgQsKTxoonegiYAGaD4UTbpfVwiYU4AGaKSgyUOGQoBPARqgkYJmn3AUAigFaIBGCpoi4ygEUArQAI0UNGXBUQigFKABGiFo9tHKfwTMKUADNFLQxClDIcCnAA3QSEGT7BkKAT4FaIBGCpq0ZCgE+BSgARopaPKYoRDgU4AGaKSg2WcchQBKARqgkYKmKDgKAZQCNEAjBE0RRgyFAJ8CNEAjBc3KHgFLCtAAjRQ0K3sELClAAzRS0CQlQyHApwAN0EhBk8UMhQCfwoMmfgeaGGiA5kPR5Os6bC4pQAM0UtDs13XYXFKABmikoClDjkIApQAN0AhBU4YJQyHApwAN0EhBE3E0C/QpQAM0UtDEHM0CfQrQAI0UNClHs0CfAjRAIwVNxtEs0KcADdBIQZNzNAv0KUADNFLQFBzNAn0K0ACNFDQlR7NAnwI0QCMDTRyGDM0CpxSgARopaCKGZoFTCtAAjRQ0CUOzwCkFaIBGCpqUoVnglAI0QCMFTcbQLHBKARqgkYImZ2gWOKUADdBIQVMwNAucUnjQJO9AkwAN0HwompKhWeCUAjRAIwRNFDI0C5xSgAZopKCJGZoFTilAAzRS0CQMzQKnFKABGiloUoZmgVMK0ACNFDQZQ7PAKQVogOaToqEDsHQ8qqNHzB9Fby5VOw4/DB7b0S8hC5//A9MVfsGWoAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3db42f8dc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:37 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=E9d%2FPN3C5pn%2Fr4njbi4sWqa5jdHLUWFfZoJr1GHSjd8sgLFsdKHd7GI7tB7F8WcV5Yz7KKM0ht7J05LRbmFaaugJmlZeS0PkhzmeCt9VXsZxmwU2MbVLjOWnbCQwLgwidt6EVl1NHBx1RVSpzQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"dad4b6cb386ff4aa30fb412d1361e796\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "687" + ], + "rate-limit-reset": [ + "23" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "687" + ], + "x-request-id": [ + "804a3db42f8dc3b1-SEA", + "804a3db42f8dc3b1-SEA" + ], + "x-runtime": [ + "0.215195" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6132499882266,6133233416474,6133106690714,6133233415962,6132434516378,6133233416090,6133233416346,6132499882138,6133233416218,6132434516250,6133233418778,6133233419290,6133233417370,6133233420186,6133233420570,6133233418522,6133233420442,6133233416986,6133233419674,6133233421466,6133233420826,6133233416858,6133233419162,6133233418138,6133233418266,6133233418394,6133233421338,6133233421082,6133233416730,6133233417498,6133233419930,6133233420058,6133233417242,6133233419418,6133233420954,6133233418906,6133233418650,6133233417114,6133233416602,6133233421210,6133233417754,6133233418010,6133233419546,6133233417882,6133233420698,6133233419802,6133233421594,6133233420314,6133233419034,6133233417626" + } + }, + { + "recorded_at": "2023-09-10T19:57:37", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6132434516250, \"name\": \"testUser\"}, {\"id\": 6132434516378, \"name\": \"testUser\"}, {\"id\": 6132499882138, \"name\": \"testUser\"}, {\"id\": 6132499882266, \"name\": \"testUser\"}, {\"id\": 6133106690714, \"name\": \"testUser\"}, {\"id\": 6133233415962, \"name\": \"testUser\"}, {\"id\": 6133233416090, \"name\": \"testUser\"}, {\"id\": 6133233416218, \"name\": \"testUser\"}, {\"id\": 6133233416346, \"name\": \"testUser\"}, {\"id\": 6133233416474, \"name\": \"testUser\"}, {\"id\": 6133233416602, \"name\": \"testUser\"}, {\"id\": 6133233416730, \"name\": \"testUser\"}, {\"id\": 6133233416858, \"name\": \"testUser\"}, {\"id\": 6133233416986, \"name\": \"testUser\"}, {\"id\": 6133233417114, \"name\": \"testUser\"}, {\"id\": 6133233417242, \"name\": \"testUser\"}, {\"id\": 6133233417370, \"name\": \"testUser\"}, {\"id\": 6133233417498, \"name\": \"testUser\"}, {\"id\": 6133233417626, \"name\": \"testUser\"}, {\"id\": 6133233417754, \"name\": \"testUser\"}, {\"id\": 6133233417882, \"name\": \"testUser\"}, {\"id\": 6133233418010, \"name\": \"testUser\"}, {\"id\": 6133233418138, \"name\": \"testUser\"}, {\"id\": 6133233418266, \"name\": \"testUser\"}, {\"id\": 6133233418394, \"name\": \"testUser\"}, {\"id\": 6133233418522, \"name\": \"testUser\"}, {\"id\": 6133233418650, \"name\": \"testUser\"}, {\"id\": 6133233418778, \"name\": \"testUser\"}, {\"id\": 6133233418906, \"name\": \"testUser\"}, {\"id\": 6133233419034, \"name\": \"testUser\"}, {\"id\": 6133233419162, \"name\": \"testUser\"}, {\"id\": 6133233419290, \"name\": \"testUser\"}, {\"id\": 6133233419418, \"name\": \"testUser\"}, {\"id\": 6133233419546, \"name\": \"testUser\"}, {\"id\": 6133233419674, \"name\": \"testUser\"}, {\"id\": 6133233419802, \"name\": \"testUser\"}, {\"id\": 6133233419930, \"name\": \"testUser\"}, {\"id\": 6133233420058, \"name\": \"testUser\"}, {\"id\": 6133233420186, \"name\": \"testUser\"}, {\"id\": 6133233420314, \"name\": \"testUser\"}, {\"id\": 6133233420442, \"name\": \"testUser\"}, {\"id\": 6133233420570, \"name\": \"testUser\"}, {\"id\": 6133233420698, \"name\": \"testUser\"}, {\"id\": 6133233420826, \"name\": \"testUser\"}, {\"id\": 6133233420954, \"name\": \"testUser\"}, {\"id\": 6133233421082, \"name\": \"testUser\"}, {\"id\": 6133233421210, \"name\": \"testUser\"}, {\"id\": 6133233421338, \"name\": \"testUser\"}, {\"id\": 6133233421466, \"name\": \"testUser\"}, {\"id\": 6133233421594, \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "2161" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6132434516250,6132434516378,6132499882138,6132499882266,6133106690714,6133233415962,6133233416090,6133233416218,6133233416346,6133233416474,6133233416602,6133233416730,6133233416858,6133233416986,6133233417114,6133233417242,6133233417370,6133233417498,6133233417626,6133233417754,6133233417882,6133233418010,6133233418138,6133233418266,6133233418394,6133233418522,6133233418650,6133233418778,6133233418906,6133233419034,6133233419162,6133233419290,6133233419418,6133233419546,6133233419674,6133233419802,6133233419930,6133233420058,6133233420186,6133233420314,6133233420442,6133233420570,6133233420698,6133233420826,6133233420954,6133233421082,6133233421210,6133233421338,6133233421466,6133233421594" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDYQEIshBbJ0EFgRDgmRjAcPdTSFja/2+mf/tMDl996QoeGh2GDto4Fak/KLzvhV1fa1Q9YiVEMil4KUspC4lhwTCaqJ9EC2+YWwrbDoRjoRGqzBnG9oO/TNr3czUMrK3YL8SevZHI5u8szFEjlRMyTyBZXXDij5etcGYBM7j8AoYsIt4jqsa8AQRB0Nffxwfp+CzH+8AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3db689c0c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:37 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=2xbag7KZJqABELVTOcXtwyloGqhvgFJMBIpuYjEH7%2BMj%2FPU6B4Z5enB%2BOGzbnGXDNtePJ6MjUy8HeJwmjyrHmo99EIwDVQDP66NAvYakhI%2BM1kabsKlNKwDbvTQeVqe2l7CDt2VdU%2FLe%2B3EDpw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"0066193671d599b991052a1dc02d4459\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "686" + ], + "rate-limit-reset": [ + "23" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "686" + ], + "x-request-id": [ + "804a3db689c0c3b1-SEA", + "804a3db689c0c3b1-SEA" + ], + "x-runtime": [ + "0.090483" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy_many\", :unpermitted_keys=>[\"users\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rdfq7" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6132434516250,6132434516378,6132499882138,6132499882266,6133106690714,6133233415962,6133233416090,6133233416218,6133233416346,6133233416474,6133233416602,6133233416730,6133233416858,6133233416986,6133233417114,6133233417242,6133233417370,6133233417498,6133233417626,6133233417754,6133233417882,6133233418010,6133233418138,6133233418266,6133233418394,6133233418522,6133233418650,6133233418778,6133233418906,6133233419034,6133233419162,6133233419290,6133233419418,6133233419546,6133233419674,6133233419802,6133233419930,6133233420058,6133233420186,6133233420314,6133233420442,6133233420570,6133233420698,6133233420826,6133233420954,6133233421082,6133233421210,6133233421338,6133233421466,6133233421594" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_raises_toomanyvaluesexception-delete-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_raises_toomanyvaluesexception-delete-many.json new file mode 100644 index 00000000..da3de508 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_raises_toomanyvaluesexception-delete-many.json @@ -0,0 +1,125 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:57:38", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4811" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"error\":\"TooManyValues\",\"description\":\"Maximum 100 users may be created per call\"}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3db82aebc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "83" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:38 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=aEUhi7LduGzSlHbgzZc89OPAZsZpGppSQsb0wj5RnoZ%2Bsw2v56Y%2F7WNWYnWQIdyP4jZLYkox59K8VqkoqzBTAaL%2BzjGBhpwuH9oJzfcMsGOlAY5zYrGh2AZIpxpM9nsh1%2B7PSBz03aZ86TcdIA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "no-cache" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "685" + ], + "rate-limit-reset": [ + "22" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "685" + ], + "x-request-id": [ + "804a3db82aebc3b1-SEA", + "804a3db82aebc3b1-SEA" + ], + "x-runtime": [ + "0.081639" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 400, + "message": "Bad Request" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_single_object-delete-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_single_object-delete-many.json new file mode 100644 index 00000000..91d74bc0 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_delete_single_object-delete-many.json @@ -0,0 +1,625 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:57:38", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "43" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OQQ6CMBCF4bvMGmmgaICDuDUtHREsLTIzLiDc3S4kbl2/L/nfBmO0N2LDQtBuMDho4apPd9fo0pY1ni/adaidLgpbVXWja9sgImQgi0/2wTxTq9Sqw2lkHBi9NTLlKwaH9My7OCkzD+pdql8JSf3RyEeKIYU4skmpIoN5if2ClJ4G8T6D4ze8BAVdslNaTY8HSFg8f/2+fwDYSJfl7gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3dba0ca6c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:38 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0xI6NYCK3Ak8d6%2FYS%2BRn%2F2pU81m9Pr26TvUUTf%2FavBIsVmqlWRi5DWkgCgYsu0MG%2BMqPIF5NmxLxL75vpoozCikMisIJvGAYGcjr1sk7s0bhcIwLxArBUR%2BjqBtBXWkjoEldZFllH3t1tj53Xg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"f0c6fec11b774206140920f580889696\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "684" + ], + "rate-limit-reset": [ + "22" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "684" + ], + "x-request-id": [ + "804a3dba0ca6c3b1-SEA", + "804a3dba0ca6c3b1-SEA" + ], + "x-runtime": [ + "0.062961" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:43", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fd932b28e563dce3d311b448938b9eee.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OQQ6CMBCF4bvMGmmgaICDuDUtHREsLTIzLiDc3S4kbl2/L/nfBmO0N2LDQtBuMDho4apPd9fo0pY1ni/adaidLgpbVXWja9sgImQgi0/2wTxTq9Sqw2lkHBi9NTLlKwaH9My7OCkzD+pdql8JSf3RyEeKIYU4skmpIoN5if2ClJ4G8T6D4ze8BAVdslNaTY8HSFg8f/2+fwDYSJfl7gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3dda8f13c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:43 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=UNxJR2P3aSeYPALGxr85cnhkdbCbNvoUIMNqiwRUR0GAiXZ2xarJxAGGH26iNahgqUXYkXaSRzgiFluoUqVtDhX4q7L5mkwlm%2FKJMfrV%2B3yxNzUvaosNLNSaRmrRsUs8zG6E3L1iTugHqDKyCQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"f0c6fec11b774206140920f580889696\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "683" + ], + "rate-limit-reset": [ + "17" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "683" + ], + "x-request-id": [ + "804a3dda8f13c3b1-SEA", + "804a3dda8f13c3b1-SEA" + ], + "x-runtime": [ + "0.068904" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fd932b28e563dce3d311b448938b9eee.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:48", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fd932b28e563dce3d311b448938b9eee.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42PwW6DMAyGXwXlukJIDB3Jte+wyzRVSeO2UCCImB1a8e71NlXrsZYv/m3/n30TXfT7RI6WJOxNtEFY8QH5MRjQXjdYbyEcEAIo5auqMdB4g4hiI5a559kz0ZSslFcY846wJey9W4biimPAdCkOcZBuauW3lv8kTPIFRtGlODKIIjlGqY2Y5niaMaXf4nG0YMTUI2Hg2YG77oSs7h5q5ijTpYa8NLkqM2Vs/W4ryN5KDl5hw6UnNvr8e3+rADRAVTecT5jdjO4Hsn6t6x19Gc+eNwEAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3dfb2a3cc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:48 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=f7oYwfLvp2vfctUnJaQfNmjz3TVe76sceR%2FUKXL7f5FQ9mnnt%2BBPrTH3Jj7S6navMBImC%2BLtc103J9E4W%2FNGQ3lpKq8aF0zW%2Fk39R30FRbAElbY08qi4Iic6Glfw4x%2FG%2FkbNwAWw7NsZmOpw6g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"d822cdfe6ab1595792b9c47bf213acf4\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "682" + ], + "rate-limit-reset": [ + "12" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "682" + ], + "x-request-id": [ + "804a3dfb2a3cc3b1-SEA", + "804a3dfb2a3cc3b1-SEA" + ], + "x-runtime": [ + "0.055679" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fd932b28e563dce3d311b448938b9eee.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:49", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133233458458" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3LbMAz8F54ty7KSttGtP9BLm0Pb6XBgEZYZ81USVBp7/O+FZEl2TpnRRcvFAtjFWeSEMYnm91loJZpPVV1v6/rh8Qt/K5GjEY04EIXUlOWpdsULoSY0O8h2fUKnMB3XrbclBF3223JUK9+prF+Sd2IlHFhkMcJEz8xiBC1o1nfZmJVoIwKhkkBM2m62dbF5KqrNj+qpefzcPNS/uCAH9SGHtEV58m7o9dVi1C2U3/BV/vTxyM8aHMgPOOEwPl3nSgeI3HLEpMt2x6NPT4yRn3+Mb8GgHEys5j+WR1c8f2dNHztw+gSkvRtJ16roJ5Yq8tWUnsfZa2TGHkxCdukfYXRg7qoIuiGyPysBRkOaYWhJ9yxHMeM8+CIz7QEdOlpAA4mk8Z12o6eT+quXe9byUUKmg0QHO3OvpDsHlONikULiIJcxnOeM7xeU9BYWcpsTeStH/LaR9QojcMulC+n2iCQjnwvnM9jGPkX8mxngYdhRZ95kiLrnk5B8gpYXS0v5XHdbeXIlpzCc7W0dhXvIhmQXfQ730WDwkWSb+oU6RCQ5HKO40fly4QAcxyMDt1iOImKvfU7vwNbnYYTq8h/UbmnxcAMAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3dfc6b2ec3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:49 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NsTt5J%2BDxLpOvb0ONjJLT42702%2BvMtdQVymf5F09TiCCdMoZiimb4%2B5qDiTnYlJVwalAN0RKY555WL1Eo9bdO7348f3aN%2FVNwJOOQlQnXHYVB4gni%2BUwOdAodzrMLeJWpKKZWGpumQB9OKjuGg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"bdb223cec21270e0dbdc8b32f04672d6\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "681" + ], + "rate-limit-reset": [ + "11" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "681" + ], + "x-request-id": [ + "804a3dfc6b2ec3b1-SEA", + "804a3dfc6b2ec3b1-SEA" + ], + "x-runtime": [ + "0.101200" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133233458458" + } + }, + { + "recorded_at": "2023-09-10T19:57:49", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133233458458, \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "54" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133233458458" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDQSSEZSD2DpZWRAMSSQbCxjubgoZW+v3zfxvg8nhLbDmGKDdYOyghavKaynPeGqwvEhdlRUh9lg3qJXq67LHBjKIi0n2wexDK8SqbD4xjUwGdZyLlWxH4Vnc3Sy0H8Vbil+JgvijUUzB2RRixzqlqgz84oaFQnpqozEZHL/hFSlSl+ycVj3QARKOhr9+3z9iB3iZ7gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3dfdec5fc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:49 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=z0QHrS7IIdHSKgW%2Bp37cYaXe791B895MNZaI9uzguZaxUGB9Z9VkOD4prd%2F5z06bUJ1UZ%2BRXesR0Pw2wxLuQ%2B6YiNBmqNPo%2B%2FQsZ%2FoQARjcM00fkdzLkpKllU%2FDiHKiY%2FfomaXoS1WOOQnlIog%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"e5a88de94e26f4642e18a01c88d6c7a3\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "680" + ], + "rate-limit-reset": [ + "11" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "680" + ], + "x-request-id": [ + "804a3dfdec5fc3b1-SEA", + "804a3dfdec5fc3b1-SEA" + ], + "x-runtime": [ + "0.060567" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy_many\", :unpermitted_keys=>[\"users\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133233458458" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-tearDown.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-tearDown.json new file mode 100644 index 00000000..e95589c2 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-tearDown.json @@ -0,0 +1,135 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:12", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133233421722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233421850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233421978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233422106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233422234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084378, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084506, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084634, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084762, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084890, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085018, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085146, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085274, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085402, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085530, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085658, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085786, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085914, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086042, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086170, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086298, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086426, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086554, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086682, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086810, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086938, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087066, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087194, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087322, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087450, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087578, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087706, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087834, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087962, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088090, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088218, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088346, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088474, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088602, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088730, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088858, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088986, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089114, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089242, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089370, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089498, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089626, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089754, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089882, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090010, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090138, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090266, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090394, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090522, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090650, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090778, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090906, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091034, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091162, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091290, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091418, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091546, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091674, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091802, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091930, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092058, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092186, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092314, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092442, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092570, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092698, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092826, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092954, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093082, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093210, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093338, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093466, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093594, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094362, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094490, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094618, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094746, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094874, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095002, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095130, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095258, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095386, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095514, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095642, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095770, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095898, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096026, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096154, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096282, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096410, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "8311" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133233421722,6133233421850,6133233421978,6133233422106,6133233422234,6133250084378,6133250084506,6133250084634,6133250084762,6133250084890,6133250085018,6133250085146,6133250085274,6133250085402,6133250085530,6133250085658,6133250085786,6133250085914,6133250086042,6133250086170,6133250086298,6133250086426,6133250086554,6133250086682,6133250086810,6133250086938,6133250087066,6133250087194,6133250087322,6133250087450,6133250087578,6133250087706,6133250087834,6133250087962,6133250088090,6133250088218,6133250088346,6133250088474,6133250088602,6133250088730,6133250088858,6133250088986,6133250089114,6133250089242,6133250089370,6133250089498,6133250089626,6133250089754,6133250089882,6133250090010,6133250090138,6133250090266,6133250090394,6133250090522,6133250090650,6133250090778,6133250090906,6133250091034,6133250091162,6133250091290,6133250091418,6133250091546,6133250091674,6133250091802,6133250091930,6133250092058,6133250092186,6133250092314,6133250092442,6133250092570,6133250092698,6133250092826,6133250092954,6133250093082,6133250093210,6133250093338,6133250093466,6133250093594,6133250093722,6133250093850,6133250093978,6133250094106,6133250094234,6133250094362,6133250094490,6133250094618,6133250094746,6133250094874,6133250095002,6133250095130,6133250095258,6133250095386,6133250095514,6133250095642,6133250095770,6133250095898,6133250096026,6133250096154,6133250096282,6133250096410" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDQSCiHIQW2dhdxAMCZKNBQx3N4WMrfX7Zv63wejauxeU4KHZYCBo4FambV0x1t21qrDQeXemi0bSfEK6EtdUQAJhMdE+RGbfKLWWNh2FB2HTYpiylS2xf2admxTOg3pr9SuxV380stE7G0PiBGOqyPME5sX1C/v41QZjEjiewytwYIp6iiv2fICIg5Gv3/cPdXC+//AAAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e8e08e1c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:12 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=OHKyqZwk%2FEzuAWTbsn%2FPJfUePAOSb8shxjGUN04JNm3naw2YgsxDl3042Bv%2FfaO%2F39zM2r51s%2BTgzpcFNx1k%2Fo0A4%2F0e%2BEkzAnONAutn3DYjhXncPooZG4GJSrQA47VBFqXrW3dORAu%2F7ih8ow%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"a6758090c713a90c480143248b054dab\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "694" + ], + "rate-limit-reset": [ + "48" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "694" + ], + "x-request-id": [ + "804a3e8e08e1c3b1-SEA", + "804a3e8e08e1c3b1-SEA" + ], + "x-runtime": [ + "0.098287" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy_many\", :unpermitted_keys=>[\"users\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133233421722,6133233421850,6133233421978,6133233422106,6133233422234,6133250084378,6133250084506,6133250084634,6133250084762,6133250084890,6133250085018,6133250085146,6133250085274,6133250085402,6133250085530,6133250085658,6133250085786,6133250085914,6133250086042,6133250086170,6133250086298,6133250086426,6133250086554,6133250086682,6133250086810,6133250086938,6133250087066,6133250087194,6133250087322,6133250087450,6133250087578,6133250087706,6133250087834,6133250087962,6133250088090,6133250088218,6133250088346,6133250088474,6133250088602,6133250088730,6133250088858,6133250088986,6133250089114,6133250089242,6133250089370,6133250089498,6133250089626,6133250089754,6133250089882,6133250090010,6133250090138,6133250090266,6133250090394,6133250090522,6133250090650,6133250090778,6133250090906,6133250091034,6133250091162,6133250091290,6133250091418,6133250091546,6133250091674,6133250091802,6133250091930,6133250092058,6133250092186,6133250092314,6133250092442,6133250092570,6133250092698,6133250092826,6133250092954,6133250093082,6133250093210,6133250093338,6133250093466,6133250093594,6133250093722,6133250093850,6133250093978,6133250094106,6133250094234,6133250094362,6133250094490,6133250094618,6133250094746,6133250094874,6133250095002,6133250095130,6133250095258,6133250095386,6133250095514,6133250095642,6133250095770,6133250095898,6133250096026,6133250096154,6133250096282,6133250096410" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-update-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-update-many.json new file mode 100644 index 00000000..33a9abe9 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_full_objects-update-many.json @@ -0,0 +1,864 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:57:50", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "3211" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OSw6CMBQA7/LWSIEisRzErenngWBpkb66gHB3ayJx63ommdlg9OoWSFIM0G4wGGjhyk+CN6rWlam7SnHTlLLkgneNqDst9OVsIIO42OTeiebQMrZydxoJB0KrZJzyFZ3B8Mi1n5icB/aq2K+Egf3RyMfgXQqRJ5lSZVFkMC++XzCkVxetzeA4h2fEiJ+tKVHZ4yEkOVr6+vv+BunJVOnwAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e003eafc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:50 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FmdxuoGfYhSnL2G9Fv7YfCcSBHtwEt%2FBWg8s%2BUQE0utBTcZ8ACY7hgpb3Vd7QCtUphA28UivE7wbC3YGkOm3Ua6Gzn4O4fq%2FEDnygPygErU5MBUrCo2OLVsrGDxPozCFHr%2BRzvdd009sfU0L2Q%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b12a2d17a7a06a7b4c26d748217cae5a\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "679" + ], + "rate-limit-reset": [ + "10" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "679" + ], + "x-request-id": [ + "804a3e003eafc3b1-SEA", + "804a3e003eafc3b1-SEA" + ], + "x-runtime": [ + "0.161104" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:57:55", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-936b4c2d4f2b3d61a1393f694fc9c85d.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OwQ6CMBBEf8WsV6TSIhGufoNeTaELAqUl7VYTjf/uXoxXrzPz8uYFk2+vkTSlCM0LRgMNXNSuVlVbdtKUvWyVqQpdqFr1VV32Xd0dDwYySMHy9ka0xkaIp3K7iXAktK1OS/5EZzDOeecXoddR3KX4mTCKPxz5FL1jEXnSrCr2+wzW4IeAkb9KlcH3Nzx8mEc38HjhUg/I2SmgJg4354hhs5WKW0aTJSZcsvb9/gB8eloU/gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e24feedc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:57:55 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=g%2FbONCI8GSgp3yeZo9V2ptiCjRc%2F5WnMyyGgjdZykJlBEaHwSHmDVcmvclDAOPZQL3zJ18qzQmj4wvw7fanPWJFdNvJ0J9MeKVrb1to85KCeP5e4V7Gxjxl5VS4gas4FIXbi51sH7E8tRsIf7w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"30995fbf6197b541908aa760978a4ad3\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "678" + ], + "rate-limit-reset": [ + "5" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "678" + ], + "x-request-id": [ + "804a3e24feedc3b1-SEA", + "804a3e24feedc3b1-SEA" + ], + "x-runtime": [ + "0.055034" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-936b4c2d4f2b3d61a1393f694fc9c85d.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:00", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-936b4c2d4f2b3d61a1393f694fc9c85d.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA41Wy44aQQz8FTTXAOO2291trvsPuUTRaoBhA8tLTJPDrvj3NSSrRFGkKSQOzBg/y1V+b3an5fNQu3odmsV7s103i+arzEzSMq54HTe8lHUKXRCTTbK4Wdmq6LqZNtfL3m1/1HoeFm37JsfZrvbb2u+X3fUwf+uP6354na9Oh7Y7b9uf3P6J1A8tEGO+G05HD1RPtfNQgWjanC+nl0s/DL9/fibeeJjzvq/9PbGDv+9een/69Pl00tUJE8uMbBZoEmyheaE2+UL+8b+4y+u+uqNvv1qQgggrUSlW0l9hni59dw9ym/5jl4NFxE5VCLErMUP+YrFRfyKRmQXyl0wKVK8wQ/kpjfbvnl8oivXFLaE6KEL5laKQPyUsrlrA+qwK2eWCzS3n8T4/7ChBdh4Wm5tlqC/G4/N44DRgdWgkaL7ZEmSX2DBcpYLhKmN7rhnjFwsYrrJi84gZ7EsJWB2M8ZUmbN98gaH8NIzj9OGPxnny0RfB+pfjOF899iNjPJkiQ3WkkLE6EsQbFkFdsALh3ihD/TNhCFcWDNojI4Z4zdUN0hmPiu25ZYjHLSiEU3PZx+wwnnTagPbcSKD7xdUN0kHjAuHZAkN7aS77kD9SaN9MBfMnivVFGeI1SxHDPRuGKy2QbrkKYvvLhNUhAt2JFiPGuyYQr5mfJdjcMN41/2L7QSBfEca7rFi9HKE71jhhOKCAzU2wu840YfmpYveLAxWarwZMF0LB5hsSdL8YJUw/7pbQXhJWbxSMx1PAeIMFmodpxu4Nixj+YsL0I5b/z+P77fYB+lIQzrMQAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e457c20c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:00 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Q5niY3dSOZzlhGDGp6v500PAKRFFaRS4DsCXVZE4GvQNmCcr8%2F9AOac8i4i2IBGGoYmhTze6NA5%2B1fGvSDTFjxndmZH%2FQo8iwG1UyO4aQn%2F1zQicE4D5KPGxK2BLQu2JGB8BT4J5obXCr6hnjA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"004111c4c34ac7571df0d54b4a6b0437\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "699" + ], + "rate-limit-reset": [ + "60" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "699" + ], + "x-request-id": [ + "804a3e457c20c3b1-SEA", + "804a3e457c20c3b1-SEA" + ], + "x-runtime": [ + "0.074975" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-936b4c2d4f2b3d61a1393f694fc9c85d.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:01", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133250088986,6133250087194,6133250085530,6133250088474,6133250084890,6133233422234,6133250086938,6133250087322,6133250084506,6133233421850,6133250088218,6133250086042,6133250088858,6133250085018,6133250085914,6133250086554,6133250087834,6133250087706,6133250087066,6133250088346,6133233421978,6133250089242,6133233422106,6133250085402,6133250087962,6133250086298,6133250086682,6133250088730,6133250085786,6133250089114,6133250087578,6133250084762,6133250086810,6133250085274,6133250085658,6133250088602,6133250085146,6133250088090,6133250084378,6133250087450,6133233421722,6133250086426,6133250086170,6133250084634,6133250094234,6133250089882,6133250090778,6133250093210,6133250091930,6133250090266,6133250093850,6133250093082,6133250089754,6133250091546,6133250094746,6133250094106,6133250091162,6133250090394,6133250091418,6133250092826,6133250091290,6133250092186,6133250090522,6133250095386,6133250093594,6133250095258,6133250096410,6133250092954,6133250095898,6133250096282,6133250092058,6133250093338,6133250094490,6133250089370,6133250093466,6133250093722,6133250095002,6133250090010,6133250091034,6133250092570,6133250092442,6133250092698,6133250090138,6133250093978,6133250095642,6133250095514,6133250089626,6133250095130,6133250091802,6133250091674,6133250090650,6133250090906,6133250096026,6133250094362,6133250096154,6133250092314,6133250095770,6133250089498,6133250094618,6133250094874" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3cy27bVhRG4XfR2I54v3jWF+ikzaAtCoKRjm0mFKny4rQO8u49+8RSnE5iQBt10b0GGUSmlq4fYBwD/6fNOrtp3tz89mnT7Tc3RZymSZpmSVwmydVmnfrNzeZ+WY7zzXb7mA7X7xfXLa5/166HN49u2Lv5w5vdeNi2x277kGxDbftN5c37eRw2V5uhPTgfW9y8vPVX+Vvcoe18f1j7/mqzm1y7uH3TLv6iJErS66i+jqOf4/omL2/y7Fd/h/W4/+41S3dwzeM4yGP9cHBTt2u3P7qPzS/j9MH/uGuHtvnONcf78KMvz2u+byf/kOG2ZlgP7/xTf/qRv20ZT//px13bu0bexPj0P593w/Xbn3xznO7aoXtsl24cwkVf7jWNT1ftr9cvb8qDfzq3nfNX3Lb97Py79OfipqHtn91rae/kI/v9atP2XTufbm53S/fgc8u0utMTP2eeXkd754blfGPfzkvTj3fdEN7Tp/rHsbn1rXFq2nW5b9zQvuufl7q7oV3W6fwW7d3iP8jz0xhG/xk/f4HN8tfxfPFunZfx0ITbv76iw7h3U+sf8vwoS7f74JZm8l8X//nI2+bfp8n9sfob/JPx7+jQ/9Ucp+7BfyUa/xU8+Bc2n+9+ut/Xl/z0rqzzUb62X1/O3t22a780d9O4Hp9/NO44Tkuzmx/Ol8pH1PgPp9/7B/r0+fPVP9FUeaSAxldAAxoraOqyUkDjK6ABjRE0SRwVl6ORCmhAYwVNkmYKaHwFNKAxgCaPoipLL/317FQBDWisoMkv/fXsVAENaKygKS799exUAQ1orKApiwv/TnOqgAY0VtBU9YV/pzlVQAMaI2jyKFY4CJAKaEBjBU2cKRwESAU0oLGCJikVDgKkAhrQWEGTRQoHAVIBDWisoMlThYMAqYAGNFbQFLnGQYCvgAY0VtCUlcZBgK/ooMlfgCYHDWheFU0daxwE+ApoQGMETRFlCgcBUgENaKygiUuFgwCpgAY0VtAktcJBgFRAAxoraLJE4SBAKqABjRU0ea5wECAV0IDGCpqi0jgI8BXQgMYKmirWOAjwFdCAxgqaOtU4CPAV0IDGCJoyKhQOAqQCGtBYQRPXCgcBUgENaKygSS/dcj5VQAMaK2iyS7ecTxXQgMYKmlxjLFAqoAGNFTSlxligVEADGitoKo2xQKmABjRW0NQaY4FSAQ1ojKCpIo2xQKmABjRW0CQaY4FS+ffQFKABzauiSTXGAqWig6YADWj+82gyjbFAqYAGNFbQFBpjgVIBDWisoCk1xgKlAhrQWEFTaYwFSgU0oLGCptYYC5QKaEBjBE0da4wFSgU0oLGCJtEYC5QKaEBjBU2qMRYoFdCAxgqaTGMsUCqgAY0VNIXGWKBUQAMaK2hKjbFAqYAGNFbQVBpjgVIBDWhsoKmjSGEsMFRAAxoraGKFscBQAQ1orKBJFMYCQwU0oLGCJlUYCwwV0IDGCppcYSwwVEADGitoCoWxwFABDWisoCkVxgJDRQdN+QI0JWhA86poaoWxwFABDWiMoIkjhbHAUAENaKygiRXGAkMFNKCxgiZRGAsMFdCAxgqaTGEsMFRAAxoraHKFscBQAQ1orKApFMYCQwU0oLGCplIYCwwV0IDGCppaYSwwVEADGiNokkhhLDBUQAMaK2hihbHAUAENaKygSRXGAkMFNKCxgiZTGAsMFdCAxgqaXGEsMFRAAxoraAqFscBQAQ1orKCpFMYCQwU0oLGCplYYCwwV0IDGCJo0UhgLDBUdNNUL0FSgAc2rokk0xgKlAhrQWEGTaowFSgU0oLGCJtMYC5QKaEBjBU2uMRYoFdCAxgqaUmMsUCqgAY0VNJXGWKBUQAMaK2hqjbFAqYAGNEbQZLHGWKBUQAMaK2gSjbFAqYAGNFbQpBpjgVIBDWisoMk0xgKlAhrQWEFTaIwFSgU0oLGCptQYC5QKaEBjBU2lMRYoFdCAxgga/0/hIEAqoAGNFTSxxligVEADGitoEo2xQKmABjRW0KQaY4FSAQ1orKDJNcYCpaKDpn4Bmho0oHlVNIXGWKBUQAMaK2hKjbFAqYAGNFbQVBpjgVIBDWiMoCkijbFAqYAGNFbQxBpjgVIBDWisoEk0xgKlAhrQWEGTaYwFSgU0oPmfovEfwOA/nuboH+L8pZjcQzeu8zc37sZVnkIcRZ//Bh6Ws2bxQAEA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e471d6fc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:01 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=x7%2BDp09F%2Bk0ncBJ1qKM7LOdHRc6WvBvNqY%2BGRBKF5eLc%2FpnaSgi9yk6b00z2xAYViza8gBG%2FZrobuWmixECEwFMM%2Bdl7b76dJ0QxUZlWD11832PxWzEcN7b9oqGf2MXX3prqeQo3NaZNztyk8w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"24e2800a5fe90dadc20d3faff5d28beb\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "698" + ], + "rate-limit-reset": [ + "59" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "698" + ], + "x-request-id": [ + "804a3e471d6fc3b1-SEA", + "804a3e471d6fc3b1-SEA" + ], + "x-runtime": [ + "0.292018" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-dpp47" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133250088986,6133250087194,6133250085530,6133250088474,6133250084890,6133233422234,6133250086938,6133250087322,6133250084506,6133233421850,6133250088218,6133250086042,6133250088858,6133250085018,6133250085914,6133250086554,6133250087834,6133250087706,6133250087066,6133250088346,6133233421978,6133250089242,6133233422106,6133250085402,6133250087962,6133250086298,6133250086682,6133250088730,6133250085786,6133250089114,6133250087578,6133250084762,6133250086810,6133250085274,6133250085658,6133250088602,6133250085146,6133250088090,6133250084378,6133250087450,6133233421722,6133250086426,6133250086170,6133250084634,6133250094234,6133250089882,6133250090778,6133250093210,6133250091930,6133250090266,6133250093850,6133250093082,6133250089754,6133250091546,6133250094746,6133250094106,6133250091162,6133250090394,6133250091418,6133250092826,6133250091290,6133250092186,6133250090522,6133250095386,6133250093594,6133250095258,6133250096410,6133250092954,6133250095898,6133250096282,6133250092058,6133250093338,6133250094490,6133250089370,6133250093466,6133250093722,6133250095002,6133250090010,6133250091034,6133250092570,6133250092442,6133250092698,6133250090138,6133250093978,6133250095642,6133250095514,6133250089626,6133250095130,6133250091802,6133250091674,6133250090650,6133250090906,6133250096026,6133250094362,6133250096154,6133250092314,6133250095770,6133250089498,6133250094618,6133250094874" + } + }, + { + "recorded_at": "2023-09-10T19:58:01", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133233421722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233421850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233421978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233422106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133233422234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084378, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084506, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084634, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084762, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250084890, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085018, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085146, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085274, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085402, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085530, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085658, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085786, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250085914, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086042, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086170, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086298, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086426, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086554, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086682, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086810, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250086938, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087066, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087194, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087322, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087450, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087578, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087706, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087834, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250087962, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088090, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088218, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088346, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088474, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088602, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088730, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088858, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250088986, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089114, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089242, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089370, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089498, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089626, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089754, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250089882, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090010, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090138, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090266, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090394, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090522, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090650, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090778, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250090906, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091034, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091162, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091290, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091418, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091546, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091674, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091802, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250091930, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092058, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092186, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092314, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092442, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092570, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092698, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092826, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250092954, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093082, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093210, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093338, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093466, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093594, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250093978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094362, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094490, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094618, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094746, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250094874, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095002, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095130, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095258, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095386, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095514, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095642, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095770, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250095898, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096026, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096154, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096282, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133250096410, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "8311" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "PUT", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OQQ6CMBCF4bvMGmhtJRoO4ta0dECwtMhMXUC4u11I3Lp+X/K/DcZo78SGE0GzweCggZsudXu+GHSya42TFq2qVS2vTqLTCmvVQQFp8dk+mGdqhFh1KEfGgdFbk6ZqxeCQnlUbJ2HmQbyV+JWQxB+NaqQYcogjm5w6SVnAvMR+QcpfQ/K+gOM5vBImdFlPeTU9HiDj5Pnr9/0DaW2up/AAAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e4a487bc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:01 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=D%2BUBSREbcSDtIc%2Bz4GyH%2FIjLSW4z48WbvvZ9zRjawuLDThgRU2dLAL29vIBgRrFTbTNxkgEDF6P9N8LhCeOq%2B2%2BVgmbK8tzspqXOQ6jJFmwBCCrysjoJJHJWM0%2FceBIDXOSDiBIYzRk2Hapquw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"f8a4b53ee558d74d8dcb523d1aa2ffe3\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "697" + ], + "rate-limit-reset": [ + "59" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "697" + ], + "x-request-id": [ + "804a3e4a487bc3b1-SEA", + "804a3e4a487bc3b1-SEA" + ], + "x-runtime": [ + "0.124312" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:06", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-3c47aed0fcad0beb252508d0ed32e52f.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OwQ6CMBBEf8WsV6S1QCT8h15NoSuCpW3arSYQ/929GK9eZ+blzQaz76+JNOUE3QaTgQ4u1aEa6pNGI2+DNrLHXjWqka2RaCqFjbpBATla3t6JQuqEWCt3mAknQtvrvJQrOoPpUQ5+ETpM4qnEz4RJ/OEo5+Qdi8iTZtVRygJC9GPExF/rtoDvb3j5+JjcyOOFSz0iZ+dgNHG4Y1/c7euWW0azJSZctvb9/gD7VLxL/gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e6b4d06c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:06 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2BHRb3stCrovkymdhFVC3DTqaFC%2FOBJTB9veXuU8DYDn14Pl5lJOM9l%2FD71sc2mhai0Sl62g9oTbGG78Y1TvoDY5N1lWV4INGZQuFN%2FeM0%2Bx6K5%2FmwTl%2B673vuLGX55gL8s6TrBIVGWyD5lfbUA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b511550519b840066705437cd66ee6e4\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "696" + ], + "rate-limit-reset": [ + "54" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "696" + ], + "x-request-id": [ + "804a3e6b4d06c3b1-SEA", + "804a3e6b4d06c3b1-SEA" + ], + "x-runtime": [ + "0.067375" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-3c47aed0fcad0beb252508d0ed32e52f.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:12", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-3c47aed0fcad0beb252508d0ed32e52f.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA63YzY7aMBQF4FdB2RbI9bWv7cu2z9BuqqoKiWcK5U/E6WJGvHsvaUetuqrKQWJBCMfOUciX+LXZn7dfxtrVaWw2r81uaDbNR7/yfUhdGeip7wbali0LC+WByuC5CD81y2a6Hmzfr7Vexk3bvvjTal/LrpbDtpuO65dyGsr4bd2fj2132bXfuf09UhnbfxhjvR/PJxuonmtnQzmiZXO5np+vZRx/fXybeGPDXA6llsH2P9r33XOxre/fti66umBivyJdOVo43Ui2hMU7spf9xCKnQ7WgTz8riM579j6wS8zLpuvrzqayaabL0NXS/DHwh3nLfdhx6vt5ZvU6ldvy76AshAnSlCFB7ChigtiHh4OEKAcPOLQ5SACHNgdF1KGl+Ph5NAdlffw8ugcJOUzZ4gKmbOGEKVsCYcoW8aCyo4DKThlUtjpM2ZECpuzoEqbsyIopOwbGlB1FQGXHDCo7O1DZ6jFlJ4qYspNTTNnJA+yfgwLA/jlIQECmBAIyZRCQSUFAZgIBmRkEpFWEKdvuIjBl20UbVHYCAZkzCMisICDVgYBUBgGpHgSkBhCQ9p8FlZ1AQGrGAKlEGCCVHAZIJcYAqeQxQCoJBkiliAFSKWGA1PucIEGOMEDa5QgDpDrGAGkPEBgg1QkGSHURA6S6jAFSnWKAVCYMkGp3NZiy2WOANB8xQCoLBkjliAFSOWOAVFYMkHY6goD0DALSexCQdpuNKdsLCEiPWD2egxCrx3MQYvX4HhQQq8dzEGj1WIMHARkCCMgQQUDacx+o7AwC0t6YssWBgBQGASkeBKQICEiJICAlgYCUDAIyEgjI6EBARgYBGcN/Avn5dvsBA9PGZpcdAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e8cafcfc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:12 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=6sOqwPAnXjXTpOjjaB72cbqRV8PISLqtoA9%2FYFup214d6C37pBIYVGyRBXEVvC2srFEjclUfC%2F8MEtGuNuJXP0DmErzUZQ%2BBVpgKyKnEW%2FejeeucmV1JGkoryTiD4naH6spScpo1%2F5Yk8xzurg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"f9bf50a11c861f6bd82dbf9e3a0a81fd\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "695" + ], + "rate-limit-reset": [ + "48" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "695" + ], + "x-request-id": [ + "804a3e8cafcfc3b1-SEA", + "804a3e8cafcfc3b1-SEA" + ], + "x-runtime": [ + "0.060249" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-3c47aed0fcad0beb252508d0ed32e52f.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-tearDown.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-tearDown.json new file mode 100644 index 00000000..5371c786 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-tearDown.json @@ -0,0 +1,135 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:29", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133241034010, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034138, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034266, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034394, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034522, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034650, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034778, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034906, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035034, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035162, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035290, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035418, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035546, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035674, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035802, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035930, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036058, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036186, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036314, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036442, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036570, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036698, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036826, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036954, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037082, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037210, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037338, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037466, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037594, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038362, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038490, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038618, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038746, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038874, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039002, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039130, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039258, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039386, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039514, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039642, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039770, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039898, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040026, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040154, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040282, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4161" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133241034010,6133241034138,6133241034266,6133241034394,6133241034522,6133241034650,6133241034778,6133241034906,6133241035034,6133241035162,6133241035290,6133241035418,6133241035546,6133241035674,6133241035802,6133241035930,6133241036058,6133241036186,6133241036314,6133241036442,6133241036570,6133241036698,6133241036826,6133241036954,6133241037082,6133241037210,6133241037338,6133241037466,6133241037594,6133241037722,6133241037850,6133241037978,6133241038106,6133241038234,6133241038362,6133241038490,6133241038618,6133241038746,6133241038874,6133241039002,6133241039130,6133241039258,6133241039386,6133241039514,6133241039642,6133241039770,6133241039898,6133241040026,6133241040154,6133241040282" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDSQQUclBbJ0l7CAYEiQbCxjubgoZW+v3zfxvg9G398DIMYDeYOhAw03lNaKRtWxleVFnZbCRqmquplREDVYnhAziYpN9MM9BC7Eql49MA5NtMU7FSq6j8CyMnwTOg3hX4leiIP5oFGPwLoXYM6ZULTOYF98vFNJVF63N4DgOr0iRuoSntGJPB0g4Wv76ff8AA9aakO8AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ef84edbc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:29 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=MvSMZrb6ffniUsHhz6LypCa7sfd94rNqb36wCG%2ByjXextI3Pur2I9q5%2FcMMZwEwJaHHsYMOdHeXDN0N7FEk9FUa%2FX162F285aXHIyZXbEceuUFdliYR0DEpwc0H9cQouPpSMha7RJOJDCgzkcA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"fa45e2a8b2faa605249adb82b620d02a\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "687" + ], + "rate-limit-reset": [ + "31" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "687" + ], + "x-request-id": [ + "804a3ef84edbc3b1-SEA", + "804a3ef84edbc3b1-SEA" + ], + "x-runtime": [ + "0.092453" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy_many\", :unpermitted_keys=>[\"users\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/destroy_many.json?ids=6133241034010,6133241034138,6133241034266,6133241034394,6133241034522,6133241034650,6133241034778,6133241034906,6133241035034,6133241035162,6133241035290,6133241035418,6133241035546,6133241035674,6133241035802,6133241035930,6133241036058,6133241036186,6133241036314,6133241036442,6133241036570,6133241036698,6133241036826,6133241036954,6133241037082,6133241037210,6133241037338,6133241037466,6133241037594,6133241037722,6133241037850,6133241037978,6133241038106,6133241038234,6133241038362,6133241038490,6133241038618,6133241038746,6133241038874,6133241039002,6133241039130,6133241039258,6133241039386,6133241039514,6133241039642,6133241039770,6133241039898,6133241040026,6133241040154,6133241040282" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-update-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-update-many.json new file mode 100644 index 00000000..ab558bb8 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_half_full_objects-update-many.json @@ -0,0 +1,743 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:12", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "1611" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKCMBCF4btsDQQhgMNBbJ0NWRAMCZKNBQx3N4WMrfX7Zv63w+TU3TNy8NDuMGpo4VamqpG9blBjra5Fl/dSXTCvq16WEqu6KSCBsJpoH8yLb4XYSptOTCOTURjmbCOryT+zzs0Cl1G8C/ErkRd/NLLJOxtD7BhjqsoTWFY3rOTjVRuMSeA8Dq9AgXTEc1xxoBNEHAx//XF8AOsKhXXvAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3e8faa13c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:12 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Asrmnl2OqP1kUYpM0W9Bu6aWwec%2FphJg2rqZMGfFGgLs9eMtBL7gFidd25SyKdC5b%2Fn7sUGYIh%2BW9jP1rbutBaNbJJ1fK1nTyF8%2Fv3ABFHTEssJrD7WaQIITe27sWHO54wqBWddq3GzwN0CvOA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"e82960b0f128eed250686cd80d3b8edc\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "693" + ], + "rate-limit-reset": [ + "48" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "693" + ], + "x-request-id": [ + "804a3e8faa13c3b1-SEA", + "804a3e8faa13c3b1-SEA" + ], + "x-runtime": [ + "0.082882" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:17", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-b74fd7ada6b82c0f4b1a065f434a5672.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OwW6DMBBEfyXaXgkm2EDFtd+QXKt1WChgbGSvUylR/r17qXLNdWae3jxgCfY7MXJO0D9gHqCHiz7azoxDhwO29rO+VqOxJ6zaZjTaYNN2NRSQo5PtD/OeeqXu2h8XppnJWcxbeSc/UFrLa9gU7rO61eploqTecJRLCl5EHBhF1VQF7DFMkZJcNbqA/9vwG+I6+0m2m5Q4kWRfkZAlPJwTxcOH0dIKmh0L4bNzz+cf67fSQP0AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3eb08db9c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:17 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=EYpjU0wSiohkVYwSBCdGteJRJr%2Fe9VdfhJhTxqRHS%2BChjU2tI7Rsd9rQug5smc0l2JNR7kUkqT2T6GYxJuZiLcDjIQr5hz2kpnuQNWhWSHUKfRAkVCoMa3gavoTXCelUi7V%2BiWyJkF9s8f2Ssg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"7e0478161f4baca797de1d52e7ba8af6\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "692" + ], + "rate-limit-reset": [ + "43" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "692" + ], + "x-request-id": [ + "804a3eb08db9c3b1-SEA", + "804a3eb08db9c3b1-SEA" + ], + "x-runtime": [ + "0.051310" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rxw4j" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-b74fd7ada6b82c0f4b1a065f434a5672.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:23", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-b74fd7ada6b82c0f4b1a065f434a5672.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA41Vy26DMBD8FeRrQ/Dba675h16qqjLBSZOSgLDpIVH+va6iqFXVw3DDDDu7s+vZKzuO3VvKIS+JtVd26FnLnlXdOb3rXeiD7Uhu+U53InBrdlrpYKyTbMWWeSjY95yn1DbNRZ3rY46HHIcuLKf1JZ77mD7W2/HUhOnQfMrmhymmBuBYH9N4LkR5zKFQGb5i0zzu55jS/e2RNisk0xBz7Av6VD6HfSynm8dpFXIluVQ197XglfCtoVZQ9cTLU34pEZchl0AvdwGsUEpqwZV2jn7RbOYYvkluq784LjiCM9JDOO25RXCWGyg/4xXGaw2GU15DvFpg+ZWQEK+0kC5leqB4VhCmsxJYPOuheq3WEqpXKCyeN1g/jMbqNQ6aA8cJqsMQx3DCYroYCeGcxO6lJQnpQg7ST3OJ6UIKq9dzTD9P2PyRxnzIC8w3nMP64S0098VOsXku7cD6JjA/9Qa657q0A4unMH8hwvyKJOaT3mH310tsf5DFfNwZbC84hfma89j+dfT/3nq93b4ASgzhOOEIAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ed158cdc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:23 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=lftrf2z1gVsk%2BAKB7E9dbFw3X4uk8%2BfLaIrnIjjYEZm7Gcb1wIUu%2Fh%2Bww%2BE3Q8GvXeh8p5idzCpYhJyjcm9aMHkIs3zSfLu5TFFfIH1UWlNhfTbE9YrhjgIzRCYoYjapF1ZzGme%2BLBe7O8NJ8g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"a3589bc34c78d84fa0d4c05d77d3c572\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "691" + ], + "rate-limit-reset": [ + "37" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "691" + ], + "x-request-id": [ + "804a3ed158cdc3b1-SEA", + "804a3ed158cdc3b1-SEA" + ], + "x-runtime": [ + "0.060637" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-b74fd7ada6b82c0f4b1a065f434a5672.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:23", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133241034778,6133241034010,6133241035290,6133241034906,6133241036058,6133241035930,6133241034650,6133241034394,6133241035418,6133241035034,6133241034266,6133241035674,6133241036186,6133241036314,6133241036698,6133241036442,6133241034138,6133241036954,6133241035546,6133241036570,6133241037082,6133241035802,6133241035162,6133241034522,6133241037210,6133241036826,6133241038746,6133241040282,6133241038362,6133241039002,6133241039898,6133241038490,6133241039130,6133241037722,6133241039642,6133241040154,6133241037466,6133241038106,6133241039514,6133241040026,6133241039386,6133241038874,6133241038234,6133241039770,6133241039258,6133241038618,6133241037594,6133241037338,6133241037978,6133241037850" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA+3cyXLbRhAG4HfBmRSxL7zlBXJJfEhSqakROaJgYctgQMdS6d3TTZGUnItdlS7Llf6PHA5+zILv0od+ipbZ+Tna/vEUtftoWyZZluZJnOVxEq+ixXfRNroPYZq3m81jNqw/BtcG193apb95dMPezQ83u7Hf2KndHNPNKW3zRcrNx3kcolU02N5RWHBz+ECzaMT1tqX8Yem6VbTzzga3NzbQpDROs3XcrJP416TZFvU2yX+nB5Zp/9U5oe2deRwHftdPvfPtzm5+dp/Mb6N/oL9bO1jzlTnT/emvl3XN99bTK09jZlj6W1r6+S8aC+PlRzfubOcMH2Jy+UXxblh/+IUyR3+wQ/toQzsOp0kvT/nxPGu/Xl4O5UjLuWsdzbiz3ezolP4Ozg+2e/NUsAe+sj9Xke1aO1+G7S60R4oLfnGXhV9jzvuwBzeE62Bn52C68dAOpzM9p38azR1ljd7YJdwbN9jb7m1SexhsWPz1iPYu0EVelzGMdMdvN2jC5+k6ebfMYezNafx1R/24d97SK69vCe3uwQXj6XOh++Fjo3Py7q+FBmgxdKJD99lMvj3SJ2HoE+xpY/P18ctzr1s+n8oyT/zZvm5n7+7s0gVz8OMyvb0aN40+mN18vE7lKzJ0Od2eXvT0/Lz6N5okqwXQUIoMmuIb0BRAAzTviiYtSwE0lAI0QKMFTdbkAmgoBWiARguaIk0F0FAK0ACNFjRlIVEIoBSgARotaKpKohBAKUADNFrQNLFEIYBSgAZolKAp6Iv/72g4BWiARguapBQoBHAK0ACNFjRpI1AI4BSgARotaPJEoBDAKUADNFrQFLlAIYBTgAZotKApK4lCAKUADdBoQVPHEoUASgEaoNGCpskkCgGUAjRAowRNGRcChQBOARqg0YImqQUKAZwig6b8BjQl0ADNu6LJEoFCAKcADdBoQZPnAoUATgEaoNGCpqgECgGcAjRAowVN2UgUAigFaIBGC5o6lSgEUArQAI0WNE0hUQigFKABGiVoqrgWKARwCtAAjRY0qUSzQE4BGqDRgiaTaBbIKUADNFrQ5BLNAjkFaIBGC5pColkgpwAN0GhBU0k0C+QUoAEaLWhqiWaBnAI0QKMFTSPRLJBTvh+aCmiA5j3R1IlEs0BOkUFTAQ3Q/PBoUolmgZwCNECjBU0m0SyQU4AGaLSgySWaBXIK0ACNFjSlRLNATgEaoNGCppJoFsgpQAM0WtDUEs0COQVogEYJmiaWaBbIKUADNFrQJBLNAjkFaIBGC5pUolkgpwAN0GhBk0k0C+QUoAEaLWgKiWaBnAI0QKMFTSnRLJBTgAZotKCpJJoFcgrQAI0WNLVEs0BOARqg0YEmj2OBZoGnlO+HpgYaoHlXNIlAs8BTigyaGmiA5odHkwo0CzylAA3Q/E/R0AUMdD1moldcPwrvju24zF8M7saFl1DEz/8AVRrwiZagAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ed2a9a4c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:23 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=x0nqOeB2R5xnjH6CnHnedGT1HJ7ln00pDNmS2GLODayyZaMd0P9o%2F9exFesAktaZ90wlBLZ0Dj2YfozMXqGzfiz3jPWxRaQl%2FyPj%2FyFRWzTzwJgwk9%2FZ7gMmbYYCgGeBtRE5YSiVJ6eKrPcZBg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b2775c75b2df4a2fa99abcfe61854a97\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "690" + ], + "rate-limit-reset": [ + "37" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "690" + ], + "x-request-id": [ + "804a3ed2a9a4c3b1-SEA", + "804a3ed2a9a4c3b1-SEA" + ], + "x-runtime": [ + "0.163617" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-72sxd" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133241034778,6133241034010,6133241035290,6133241034906,6133241036058,6133241035930,6133241034650,6133241034394,6133241035418,6133241035034,6133241034266,6133241035674,6133241036186,6133241036314,6133241036698,6133241036442,6133241034138,6133241036954,6133241035546,6133241036570,6133241037082,6133241035802,6133241035162,6133241034522,6133241037210,6133241036826,6133241038746,6133241040282,6133241038362,6133241039002,6133241039898,6133241038490,6133241039130,6133241037722,6133241039642,6133241040154,6133241037466,6133241038106,6133241039514,6133241040026,6133241039386,6133241038874,6133241038234,6133241039770,6133241039258,6133241038618,6133241037594,6133241037338,6133241037978,6133241037850" + } + }, + { + "recorded_at": "2023-09-10T19:58:23", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133241034010, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034138, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034266, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034394, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034522, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034650, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034778, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241034906, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035034, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035162, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035290, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035418, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035546, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035674, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035802, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241035930, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036058, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036186, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036314, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036442, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036570, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036698, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036826, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241036954, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037082, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037210, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037338, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037466, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037594, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037722, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037850, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241037978, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038106, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038234, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038362, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038490, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038618, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038746, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241038874, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039002, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039130, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039258, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039386, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039514, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039642, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039770, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241039898, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040026, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040154, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}, {\"id\": 6133241040282, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4161" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "PUT", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OOxKCMBSF4b3cGggC0chCbJ08LgiGBMmNBQx7N4WMrfX5Zv6zwejVPZCkGKDdYDDQwq3Otbnwk+iujTqLEqtGKxSdaRTnXFfi1EEGcbHJPojm0DK21i4fCQdCq2ScihWdwfAstJ+YnAf2rtivhIH90SjG4F0KkSeZUrzMYF58v2BIV120NoPjOLwiRjQJT2mVPR4g4Wjp6/f9A1YSooLvAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ed48af6c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:23 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jFMG8tKCgccPG1XOSNci2dKYLWDCac%2FFtxQLCrGjxq%2BWFd52nvlf0%2Fz%2B84EFgczIsdl5Ep%2BOM19cAH7zCf%2FTCqRTxuu2KEhyeyKZbMeRg91aXMzCZGd%2F4ds%2FmW7sZSPA%2BtUd5Qv2TCZVjwYQ%2Fw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"453c4998c151b6faa68ac54d4dbf2b41\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "689" + ], + "rate-limit-reset": [ + "37" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "689" + ], + "x-request-id": [ + "804a3ed48af6c3b1-SEA", + "804a3ed48af6c3b1-SEA" + ], + "x-runtime": [ + "0.074418" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rdfq7" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:29", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-cd7518f94b680e24cbe8fd4b555c281f.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA62Xy07jQBBFfyXq7SRxv6q7ylu+ATYIjfzoQEISW+k2C1D+nR4QmhErNLreudy+t3Rk6chv6jD1v3PpypJV+6b2o2rVndsMYyTDO/F9YJ2sH/rEu9H3RDRYNju1VsvlWM8+lTLntmle3XlzKGlf0rHvltP2NZ3HlJ+3w3RqunnfvNjmb1PKzQ86toc8nWtRmUpXq0iv1XyZHi8p58+7r7VVLZmPqaSxnj7Vx91jqtObr+mqKyurrdto2Ri9MtIStzauful61Vdq4nIsNej+E0AwzllvtPPa1JpuKPu6SKuWeexKUv8U335M/tTmZRg+FiuXJV3X34OMY0yQDQET5MRjgshaTFAgEOwYQbBFY2BTzcIEmYCBTVYwsMkbDGwiD4IdIgg2axBscRjYQRMGdjCMgR2cwcAO3mNgB4og2EFAsNmCYAthYEfNGNjRggQZHUiQ0YMEGQkkyBhBgowMEmQUkCDZgATJFiRIdiBBsgcJkgNIkBxBgmQGCVI0SJBiQIIUCxKkOJAghUCClAASpESQIIUxgvT1M4LArr9rGEF6bf9TkA/X6zuMDcIMUw8AAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3ef51c64c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:29 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=BseJ%2B055vYR3%2FVUgMu5zo6fEbJsqzeVvj29zTLBt%2FKZiO%2Bh9KunxC%2FctTavA6GHljy6Ob7TctfXr2%2B1I2kPv%2Bkp2l%2BwSmjhumPAU8L3uQ39gww3dZUQfHg9y5AZwV3DLgQ6Kz09%2FbXihIrjPjA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"e8deb42c94aa31f00b54d4058db7f3f3\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "688" + ], + "rate-limit-reset": [ + "31" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "688" + ], + "x-request-id": [ + "804a3ef51c64c3b1-SEA", + "804a3ef51c64c3b1-SEA" + ], + "x-runtime": [ + "0.057327" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-cd7518f94b680e24cbe8fd4b555c281f.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-tearDown.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-tearDown.json new file mode 100644 index 00000000..cdf4f9b8 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-tearDown.json @@ -0,0 +1,135 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:40", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 6133192290842, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "91" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133192290842.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSTZfaMAz8Lz4D+Voo5NY/0Eu7h7avz0+xleDFsVNbZrvw+O9VwhJoD+3R8sxoNNJZpIhB1GdhtKg3RVUVu7Lc5dunciFSsKIWe6Ih1ll2qtzyhdAQ2gZSvzqh0xgPK+X7DAaTHcts1IrZHyqrl+idWAgHPbIYYaRnRrW4bjZYlthUudKg821T6k27KdWHsmxgi0W7UapYMxN7MOzDJWsXQgUEQi2BWKzMy2qZ75ZF/qXY1ettXeXfmJAG/Q/M04Qh06M8eTd6+thjMAqyT/gqv/pw4G8DDuR/MMN++rr6insI3HKqSZf6Zgz1+sU18reH9QosyjHs4vZieXTL58+s6UMHzpyAjHcT6MoK/h2ll9O6FuLIdlqDjGjBRuSUfhEGB/aBRdBFUX//sRBgDcRbGRSZI87Eq/O/nhI6dDQXLUSS1nfGTaG+y7962bKYDxIS7SU6aOyjkukcUApzRhqJNzn7cJ6P4XFCSW/DDFYpku/lVL+P1HuNAbjl3IWMOiDJwHfFCxpz46AC/kxcYDMcqbNvcgjmyDch+VZ7HizO9BvvPjKFNJpPcRjv+z6OxhaSJdkFn4bH3eDgA0kVjzN03JHk7VjNjc6Xy+U3ufqjNWYDAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f3efd1ec3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:40 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=MklP5LvbE2RhV0WCsnk6G6VvcPEtQ4BMkE0CnLUsZxI7XsZ02YCos4jLSRNrh%2BiUoyhmZ09w4VtpUmBD4pQtYM5rHMwWHxQSUgCRSRnS%2FwvpyyPZlMc865chcnThGP2IzJ%2FjoGihKpre9TTTUw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"3bfaa0c1e07257c4cd77a807c5ce0b58\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "681" + ], + "rate-limit-reset": [ + "20" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "681" + ], + "x-request-id": [ + "804a3f3efd1ec3b1-SEA", + "804a3f3efd1ec3b1-SEA" + ], + "x-runtime": [ + "0.322010" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy\", :unpermitted_keys=>[\"user.id\", \"user.name\", \"user\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rxw4j" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133192290842.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-update-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-update-many.json new file mode 100644 index 00000000..14ce8802 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_multiple_update_single_object-update-many.json @@ -0,0 +1,622 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:29", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "43" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OOxKCMBSF4b3cGghJ1EEWQuvkcUUwJEhuLGDYuylkbK3PN/OfDcagb5EUpQjtBoOFFjpZGmsEb+RZGF0baRvZCK7ru71aYS78hFBAWly2D6I5toyt0pcj4UDotEpTtaK3GJ+VCRNT88Degv1KGNkfjWqMwecQBVI5xQuYl9AvGPNTn5wr4PgNr4QJbbZTXlWPB8g4Ofr6ff8Ao6pgP+4AAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3efa183dc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:29 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=XEvLXJLv8DpfF8EtXtU60irrT7loqDawT%2BiWkLAUds8pf%2BPqZn2s6KVhiofAniebVZhE2K46EVP72naeZl0Gu3wjfYokWqd1jiL7KFUSzoR0HPFiG6W87WjY%2BMMo0RsZwqcFcvv6vyEVkrjCDQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"9dce9d530adec2c55a7526516fda0de4\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "686" + ], + "rate-limit-reset": [ + "31" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "686" + ], + "x-request-id": [ + "804a3efa183dc3b1-SEA", + "804a3efa183dc3b1-SEA" + ], + "x-runtime": [ + "0.076054" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:34", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-cdc218352cb0c3d83821b0fd9d2c614e.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42PwU7DMAyGX6XKlbVJnG1Kct07cJkQShMzWtqmatwdNvXdMaAJjvjm37//z76LPrevhQKtRfi76JLw4tnUMUXQ1hwgtiqaZI0F3aq35BLEo96j2Il1Gdj7TjQXL+XNTHVP2BEObVjH5oZTwvLRxDzKMHfyCvKXhEX+g9H0JU8MokyBUXon5iVfFizlu3kcLRgxD0iY2DvyNFyQ1dNDrQJVoMDUytVaVdr5g/VGVU+Ki1c4cB2Ig84/7x+1MdoBOGX38AdzWjB8QbaXbfsEUwjgAzcBAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f1abb18c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:34 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=XV3s4QrjVSPj%2F1oj2aZHWTtrPS3bo4yLJcdmiTq8tgj1nGgSVctyCuFcZAklGGALXM4iYGJfDy8vqW3vQ%2F3Vyzkh62qeNDiaXIdSJUMWB6Chmn6jqfStNrXMV%2Fx7r0Rrks7BoLnBV6qmpmbWlA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"8c8353bb9996a3ce7a2d47814a7b273b\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "685" + ], + "rate-limit-reset": [ + "26" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "685" + ], + "x-request-id": [ + "804a3f1abb18c3b1-SEA", + "804a3f1abb18c3b1-SEA" + ], + "x-runtime": [ + "0.050152" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-72sxd" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-cdc218352cb0c3d83821b0fd9d2c614e.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:35", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133192290842" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3LbMAz8F54t69V2Yt36A720ObSdDgeWYJkxXyVBpbHH/15IlmTnlCOXiwWwi4tIEUMUze+LUJ1ovpR1Xe6qalc8fao2IgUtGnEk8rHJ83NtsxdCRaj3kMz2jLbDeNq2zuTgVT5U+aSWv1PZvkRnxUZYMMhihJGemcUIGlCsb5PWG9EGBMJOAjGpKqo6K3ZZWfwod83np6YufnFB8t2HHFIG5dnZsddXg0G1kH/DV/nThRN/K7AgP+D44/R1myseIXDLCZM2mT2PPn8xRm55aNeCRjmaWC4vlkebPX9nTRd6sOoMpJydSLeq4GZWl6WbKQOPc1DIjAPoiOzSP8JgQT9UEfRjZH82ArSCuMDQkhpYjkLCZfBVZt4DerS0ghoiSe16ZSdPZ/VXJw+s5YKEREeJFvb6UUn1FiiF1aIOiYNcx7COM35cUNKbX8ltiuSMnPD7RsZ1GIBbrl1ItSckGfhcOJ/RNvYp4N/EAA/Djlr9Jn1QA5+E5BM0vFhcy5e6+8qzKyn68Wzv63R4gKRJ9sEl/xgNehdItnFYqWNEksPRHTe6XK8cgOV4pOcW61EEHJRL8R3YujSOUF7/A6+l0spwAwAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f1bec3ec3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:35 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=VJeOJTfOdCjRvb6GA3fxMup72Uz6uSsEI9oA1q33DemBs5hiC6kzM8sL456NmQW0OsdtCNlncAE6KrOxknD46yZJA%2Fzm8Q4DBNM4ugg2NdqjlwNMAFL8FM9jVBcXbI59cIiLpnUunKkYiJkoig%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"923967b90d0dbfa3039e13dab8dda1ed\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "684" + ], + "rate-limit-reset": [ + "26" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "684" + ], + "x-request-id": [ + "804a3f1bec3ec3b1-SEA", + "804a3f1bec3ec3b1-SEA" + ], + "x-runtime": [ + "0.089830" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133192290842" + } + }, + { + "recorded_at": "2023-09-10T19:58:35", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": 6133192290842, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "94" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "PUT", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42OQQ6CMBAA/7JnpNhiCDzEq1nKFsHSIt16gPB3ayLx6nkmmdlg9O0tMHIM0GwwdNDAVZ1kpaQuCevaVKUpUGmjjam1VLJoL6aDDOJik3tnnkMjxKrcaWQamGyLccpXch2FR679JHAexEuKX4mC+KORj8G7FGLPmFLnDObF9wuFdOqitRkc3/CMFOkzNSWKPR1CkqPlr7/vb5fmxJTuAAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f1d4db2c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:35 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=2v8IBTZHu9f23eGpe3l%2FCcWZ%2Fm8x9MRnUzgbK9c6LfftQO9sIMICrOiKWUwOw43vtdxiwhdBmDzZDohW2oGn9RW%2Focv8j04QvRBmO%2Bcq%2FVwQYaL01lHcDHkE74702w43ror7NvOfiFEbLEUAUw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"9d684fd7cbf2bec9c18a330569abc00a\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "683" + ], + "rate-limit-reset": [ + "25" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "683" + ], + "x-request-id": [ + "804a3f1d4db2c3b1-SEA", + "804a3f1d4db2c3b1-SEA" + ], + "x-runtime": [ + "0.060607" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/update_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:40", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2732c4ea99f74f0a3cfcff9c2320b5fd.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42PS27DMAxEr2JwW9uSJecjbXuGdlMUhSxTiV3/YFFdJMjdy7gI2mW545CcN7xCPzcfkRylCPYKXQsWXnWhDlr5Gp0x4VAH6bQPPgTjlVay2YUWckjrwLtnoiVaIS56KnrCjnBoXBrLC04txs/Sz6NwSye+lPglYRT/YJR9nCcG0UyOUVUOyzqfVoxxax6hgRHLgIT3UCNP3QlZfX6omaNMSaULaYpKZpWxu6PV++xJcvEJG6aB2Ojt5/19pXVllDLyWKscnKeOY1hIS+sI4Q/4ZVPu2Ji833LRmvD2frt9AzxHh1tYAQAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f3dcc0fc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:40 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=sqC6oKqgDvWGrsDJFrmsyUtoZq7RrNBvr0%2BoDJc4cY3aURerPDTiEZNTzlcNeEcE%2FeHMGSLv1vOYwq69CyR8oodW4HgjORF0l%2FboZvjeRX0zD8LEM16AoY8fqtp5LBsnQ5VhzPwiGWRIhMoDtA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"812d99f7ea6257bf0e29520d98b7841d\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "682" + ], + "rate-limit-reset": [ + "20" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "682" + ], + "x-request-id": [ + "804a3f3dcc0fc3b1-SEA", + "804a3f3dcc0fc3b1-SEA" + ], + "x-runtime": [ + "0.051419" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-2732c4ea99f74f0a3cfcff9c2320b5fd.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_multiple_update_raises_toomanyvaluesexception-update-many.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_multiple_update_raises_toomanyvaluesexception-update-many.json new file mode 100644 index 00000000..018e4c59 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_multiple_update_raises_toomanyvaluesexception-update-many.json @@ -0,0 +1,125 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:41", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4811" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"error\":\"TooManyValues\",\"description\":\"Maximum 100 users may be created per call\"}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f41ef71c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "83" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:41 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=p4VWyvC847BZ9jVpbksxq4%2BAqsN1T%2BShTp7lrcY6wYIwLh7TMWbvTgJkHw6dt29NG6pt2J3UjjYv3Refkg5jl0iJ9NQywkAhqVOJM%2F8BE8jzQYvuTyDk2VD%2BI6tmDDAl2TatNCidnQJTmoF3aw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "no-cache" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "680" + ], + "rate-limit-reset": [ + "19" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "680" + ], + "x-request-id": [ + "804a3f41ef71c3b1-SEA", + "804a3f41ef71c3b1-SEA" + ], + "x-runtime": [ + "0.076877" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 400, + "message": "Bad Request" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_toomanyvaluesexception_create-create-multiple.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_toomanyvaluesexception_create-create-multiple.json new file mode 100644 index 00000000..fcc8c35c --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_raises_toomanyvaluesexception_create-create-multiple.json @@ -0,0 +1,125 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:41", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}, {\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "4811" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"error\":\"TooManyValues\",\"description\":\"Maximum 100 users may be created per call\"}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f435892c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "83" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:41 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ygsHR%2FVUADEkxIazoSDPwZnevf196gM%2BKLkPRYuDEqaB40QsZfQ3RGhPHwyYK%2FWozXlhKUQwu2tn6OzmS44BmA51uE%2FKxWefRLamWip4JlpXqIMTyevu3nKglrZ69JkdZmmVTfsJ4Qs6I1nmXw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "no-cache" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "679" + ], + "rate-limit-reset": [ + "19" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "679" + ], + "x-request-id": [ + "804a3f435892c3b1-SEA", + "804a3f435892c3b1-SEA" + ], + "x-runtime": [ + "0.091051" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 400, + "message": "Bad Request" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_delete_raises_recordnotfoundexception-recordnotfound-delete.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_delete_raises_recordnotfoundexception-recordnotfound-delete.json new file mode 100644 index 00000000..cf3ec76a --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_delete_raises_recordnotfoundexception-recordnotfound-delete.json @@ -0,0 +1,132 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:41", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 9223372036854775807}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "37" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/9223372036854775807.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA6tWSi0qyi9SslIKSk3OL0rxyy9xyy/NS1HSUUpJLU4uyiwoyczPA0oDJRTSwDK1AHKmUTI0AAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f44ca40c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:41 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jLrC870dFO%2BVyxjDem3KbNcDjz1cH4t4Q%2FbIjcOo7QZBPlW2pxdfNcZCp1UC6WzfXPtSkNI6UIX%2FJbiqT%2BqeOnR11ll7tsyqSeCaNGDZwIN69FSZHAnbZ4KXK%2FI%2FL82V%2F8CtS7xurhXIZMVCAA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "no-cache" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "678" + ], + "rate-limit-reset": [ + "19" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "678" + ], + "x-request-id": [ + "804a3f44ca40c3b1-SEA", + "804a3f44ca40c3b1-SEA" + ], + "x-runtime": [ + "0.043722" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy\", :unpermitted_keys=>[\"user.id\", \"user\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-72sxd" + ] + }, + "status": { + "code": 404, + "message": "Not Found" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/9223372036854775807.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_create-create-multiple.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_create-create-multiple.json new file mode 100644 index 00000000..1278c266 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_create-create-multiple.json @@ -0,0 +1,495 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:41", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"users\": [{\"id\": \"\", \"name\": \"testUser\"}]}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "43" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKDIBCF4btsrSJicOJB0mZQVqNBILKk0PHuoYiTNvX7Zv63w+y6eyBFMUC7w6ShhZvIB5RalLxCVffNcKkFYnPlnezlUDbIJWQQV5Psg8iHlrFN2HwmnAhNp+JSbGg1hmfRu4UpP7F3xX4lDOyPRjEHZ1OIHKmU4hn41Y0rhvTURmMyOH/DK2JEneySVjXiCRKOhr7+OD4NKqOM7gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f45eb42c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:41 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=9Mw57t3HRU00E7pCPfxXwlDw5ovwc4jMSp8PPbUZQyfkaif66yUwKp8Jl5SUn%2BHWFtA1BsPD73T5htEs4sZxBc2H3DdPlBCJm%2Bi5tYOeB9XwCjlfE8HlyNFF%2FC7EJhj4rfZWUksKAkfs0pT%2Blw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b4b952ee499087fcb477ab3d1052ee36\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "677" + ], + "rate-limit-reset": [ + "19" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "677" + ], + "x-request-id": [ + "804a3f45eb42c3b1-SEA", + "804a3f45eb42c3b1-SEA" + ], + "x-runtime": [ + "0.075538" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-rws6q" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/create_many.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:47", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fe6d3012ea4c7f543ee791b6c6f07e16.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA43OMRKDIBCF4btsrSJicOJB0mZQVqNBILKk0PHuoYiTNvX7Zv63w+y6eyBFMUC7w6ShhZvIB5RalLxCVffNcKkFYnPlnezlUDbIJWQQV5Psg8iHlrFN2HwmnAhNp+JSbGg1hmfRu4UpP7F3xX4lDOyPRjEHZ1OIHKmU4hn41Y0rhvTURmMyOH/DK2JEneySVjXiCRKOhr7+OD4NKqOM7gAAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f66798cc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:46 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=cvdTtYnBua3SUqdE6g1bJNUZZBcSdXVHBM7MD6oD9w5g2CR%2FP4r8SC3WYDa5sQtiCBg8u7bnPI4P3L%2B1N%2F9qqQ9OIrhQ%2BiQbSyL%2FJ%2BRxJyrFvo1s8COeBraKyJ0cy%2F2h32D%2BQ98T7rXbCQEOLQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"b4b952ee499087fcb477ab3d1052ee36\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "676" + ], + "rate-limit-reset": [ + "14" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "676" + ], + "x-request-id": [ + "804a3f66798cc3b1-SEA", + "804a3f66798cc3b1-SEA" + ], + "x-runtime": [ + "0.055438" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-72sxd" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fe6d3012ea4c7f543ee791b6c6f07e16.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:52", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fe6d3012ea4c7f543ee791b6c6f07e16.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA42PTXKDMAyFr8J424D/iF17mztkk8lkDIgUCpjBIotkuHvUdjLtstrp6el90oP1sbokDLgm5h+sa5hnR523YBotpIJQ1rbdlxrAOlmZ2rTCgjRsx9ZlIO8H4pw853c95T1ChzBUYR2LO0wNpM+ijiMPc8dviv+SIPF/MIo+xYlAGDEQSu7YvMTrAil9N6+jGSHmARAa8o40DVcg9fBSs4CZEkrnwuVSZNL5/bsvbfYmqGiFAtcBKej0876RWitptZbOlX8whwXCF2Q7b9sTG5ZM3zcBAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f874811c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:52 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=LCEh36wW3ESj9LPC7zvCrcU%2Ftch6AXM8D8F2X03wsvU%2FoOhETHWEcSwhqhCpnrf3Iywed5LXNK1du%2Bn%2BaP1ix4D9gfo9GFiB0ZonQ5HaNvAYoQWq9q1xagA4v2p2Dz0fUURKvUuj%2BjmA66NsaA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"ea10bf791c6f1caf2d678bf5fc422d71\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "675" + ], + "rate-limit-reset": [ + "8" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "675" + ], + "x-request-id": [ + "804a3f874811c3b1-SEA", + "804a3f874811c3b1-SEA" + ], + "x-runtime": [ + "0.054925" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/job_statuses/V3-fe6d3012ea4c7f543ee791b6c6f07e16.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:52", + "request": { + "body": { + "encoding": "utf-8", + "string": "" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "GET", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133217331994" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3LbMAz8F54ty7LSJtatP9BLm0Oa6XBgCZYZ8xUSVBJ7/O+BZEl2TjlyuVgAuziJFDFEUT2fhGpE9bMoy3VxX5bFZnO3ECloUYk9kY9Vnh9Lm70QKkK9hWSWR7QNxsOydiYHr/JunQ9q+ReV5Ut0ViyEBYMsRhjpkVmMoAHF+jZpvRB1QCBsJBCT1qt1ma02WbH6W2yqHw/V3f0/Lki++ZZDyqA8Otv3+mUwqBry3/gmn1w48LcCC/Ibjt8PX5e54h4CtxwwaZPZ8ujjF2Pkpod2NWiUvYnF9GJ5tNnjH9Z0oQWrjkDK2YF0qQpuZDVZupjS8Tg7hczYgY7ILr0TBgv6poqg7SP7vxCgFcQJhppUx3IUEk6DzzLjHtCipRnUEElq1yo7eDqqvzm5Yy0XJCTaS7Sw1bdKqrVAKcwWNUgc5DyGdZzx7YKSPvxMrlMkZ+SAXzcyrsEA3HLuQqo+IMnA58L59LaxTwFfEwM8DDtq9Yf0QXV8EpJP0PBicS6f6q4rj66k6Puzva7T4A6SJtkGl/xtNOhdIFnHbqb2EUkORzfc6HQ+cwCW45GeW8xHEbBTLsUvYO1SP0Jx/gQuwcNPcAMAAA==", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f88691ac3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:52 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=CNbbPq1EXLfsByqFhZ6I0%2BvI8mEjt9vRobqX7kOdwN0gQTjm6%2BSNZP45KwRUjTz%2BXwwBqVAV9Ko3nI8vvzDPIm2rA7vdhnODRktoP8Pc%2Fu7zyVJrWQOYkf7v%2Fwkdx6A%2F9AeZkMR1sD4R5bAHcA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"7a8ed28b4d5a152733a8d64c4e981d07\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "674" + ], + "rate-limit-reset": [ + "8" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "674" + ], + "x-request-id": [ + "804a3f88691ac3b1-SEA", + "804a3f88691ac3b1-SEA" + ], + "x-runtime": [ + "0.090288" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/show_many.json?ids=6133217331994" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-create-single.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-create-single.json new file mode 100644 index 00000000..a8c45eff --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-create-single.json @@ -0,0 +1,131 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:52", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": \"\", \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "40" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"user\":{\"id\":6133192344218,\"url\":\"https://d3v-zenpydev.zendesk.com/api/v2/users/6133192344218.json\",\"name\":\"testUser\",\"email\":null,\"created_at\":\"2023-09-10T19:58:52Z\",\"updated_at\":\"2023-09-10T19:58:52Z\",\"time_zone\":\"America/New_York\",\"iana_time_zone\":\"America/New_York\",\"phone\":null,\"shared_phone_number\":null,\"photo\":null,\"locale_id\":1,\"locale\":\"en-US\",\"organization_id\":null,\"role\":\"end-user\",\"verified\":false,\"external_id\":null,\"tags\":[],\"alias\":null,\"active\":true,\"shared\":false,\"shared_agent\":false,\"last_login_at\":null,\"two_factor_auth_enabled\":false,\"signature\":null,\"details\":null,\"notes\":null,\"role_type\":null,\"custom_role_id\":null,\"moderator\":false,\"ticket_restriction\":\"requested\",\"only_private_comments\":false,\"restricted_agent\":true,\"suspended\":false,\"default_group_id\":null,\"report_csv\":false,\"user_fields\":{}}}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f89da95c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "829" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:52 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2FyuMpcUKyIioAU59PyGO1nmVEKUwXLeCS73RdiuHvAgNtvwRGAO1QQ1GXvGCEJzsESUkPwDQYSXh4cvfINPPwSwLY3S6yhY9%2B3YGiQ3ecLi3DhMHJF3nlKz8BHwrF%2F7lX2EJFDfOOlBrvFQ84A%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"0a6884937a53d9808d2fb878ea7225e6\"" + ], + "location": [ + "https://d3v-zenpydev.zendesk.com/api/v2/users/6133192344218.json" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "673" + ], + "rate-limit-reset": [ + "8" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "673" + ], + "x-request-id": [ + "804a3f89da95c3b1-SEA", + "804a3f89da95c3b1-SEA" + ], + "x-runtime": [ + "0.155165" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-dpp47" + ] + }, + "status": { + "code": 201, + "message": "Created" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-tearDown.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-tearDown.json new file mode 100644 index 00000000..41d8b792 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_creation-tearDown.json @@ -0,0 +1,135 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:53", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 6133192344218, \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133192344218.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3LbMAz8F54ly5KSTqxbf6CXNoem0+HAEiwz5kMlQaWxx/9eUIplJ4fmCGCxWCxwEjGgF81JqE40X8q6LjdVfXdXlQ+ZiF6LRuyJhtAUxbG2+TOhItRbiGZ1RNthOKxaZwoYVDFWReIKxTuW1XNwVmTCgkEmIwz0mCZmAg0o5rdR60y0HoGwk0AMqtZVna83ebn+UW6a+4fmvnrihjh0/8PUCUPKoDw6m2Z9NehVC8U3fJE/nT9wWYEF+Qlm2E+lWVfYg+eRU07aaLbJrLnEOXKXQLsWNMpkYnmJmB5t/vidOZ3vwaojkHJ2As1d3r2hujzOpowsZ6eQETvQAdmlv4Tegr7pIuiDaH79zgRoBeGShpbUiEvjrPxDKKFHS0tSQyCpXa/sZOob/YuTOyZzXkKkvUQLW33LpHoLFP3iUYfEl1x0WMdHvt1Q0uuwgNsYyBk55a8rGdehBx65TCHVHpCk53/hAyXf2CiPfyInWAxbavWrHLwa+Sck/6DhxcLSfum7rkw+JvExDOlvr+t0uIOoSfbexeH2Njg4T7IN4wJNN5J8Hd3xoNP5fP4H/Y/oZj4DAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f8c1c8cc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:53 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=WzYBDXwY6D3ieRpHzg1CdfK5NI%2FDXMPXvIfd2TQsH6jzKV9hREWpvGgzahLptqWo7rwEBYytO9MyK73Gd1HgNY3JJl0jUBqwpNGFOcaWWEBiRbUlPlUB9yEXtHJTKyVSogw4%2FTELxkqd0OoyaQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"a9f057486208a4e850979763771ae241\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "672" + ], + "rate-limit-reset": [ + "7" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "672" + ], + "x-request-id": [ + "804a3f8c1c8cc3b1-SEA", + "804a3f8c1c8cc3b1-SEA" + ], + "x-runtime": [ + "0.261532" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy\", :unpermitted_keys=>[\"user.id\", \"user.name\", \"user\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-hzthw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133192344218.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_deletion-delete-single.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_deletion-delete-single.json new file mode 100644 index 00000000..72a28f19 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_deletion-delete-single.json @@ -0,0 +1,261 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:53", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": \"\", \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "40" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"user\":{\"id\":6133217347610,\"url\":\"https://d3v-zenpydev.zendesk.com/api/v2/users/6133217347610.json\",\"name\":\"testUser\",\"email\":null,\"created_at\":\"2023-09-10T19:58:53Z\",\"updated_at\":\"2023-09-10T19:58:53Z\",\"time_zone\":\"America/New_York\",\"iana_time_zone\":\"America/New_York\",\"phone\":null,\"shared_phone_number\":null,\"photo\":null,\"locale_id\":1,\"locale\":\"en-US\",\"organization_id\":null,\"role\":\"end-user\",\"verified\":false,\"external_id\":null,\"tags\":[],\"alias\":null,\"active\":true,\"shared\":false,\"shared_agent\":false,\"last_login_at\":null,\"two_factor_auth_enabled\":false,\"signature\":null,\"details\":null,\"notes\":null,\"role_type\":null,\"custom_role_id\":null,\"moderator\":false,\"ticket_restriction\":\"requested\",\"only_private_comments\":false,\"restricted_agent\":true,\"suspended\":false,\"default_group_id\":null,\"report_csv\":false,\"user_fields\":{}}}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f8e8eb9c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "829" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:53 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dB7o8OuEvW2MPH8lq5Z70qu6aGZpVw5SeUwCK4Bd9nTnGnGs7nbXXiBV%2Ft5jrPbN0GsEAFi%2BNgCvcm6gqoUEoTGgOSfr9xHXMAy2ZGt8U7YLTuCKzelB%2BLw3QPrmyEzjPbbr%2FI8L9w%2F2oYqTgw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"e73989c578dcf2446b8ae6bfed4ab6fc\"" + ], + "location": [ + "https://d3v-zenpydev.zendesk.com/api/v2/users/6133217347610.json" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "671" + ], + "rate-limit-reset": [ + "7" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "671" + ], + "x-request-id": [ + "804a3f8e8eb9c3b1-SEA", + "804a3f8e8eb9c3b1-SEA" + ], + "x-runtime": [ + "0.125522" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 201, + "message": "Created" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:53", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 6133217347610, \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133217347610.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3abQAz9l1mDMaZJGnb9gW7aLNqeHh0ZZDzxPOiMhjT28b9XQIydbrKUdHV1daWTSpGCqk9Kt6q+L6tqUz5Unx7uy3WmUjCqVnvmPtZFcaxc/sykmcwWk10dybUUD6vG2wJ7XQybYuSKxTuW1XP0TmXKoSUhY4r8NE7MFFnUwu+SMZlqAiFTC8gC2qw3Vb5+zMv19/Kxvvtc31U/pSH17YcY1pbg6N0464uloBssvtIL/PDhIGWNDuEDTL+fSrOuuMcgI6ccuGS3o1lzSXLsL4HxDRqC0cTyEgk9ufzpm3D60KHTR2Tt3QSau4J/Q7V5mk0ZRM5OkyB2aCKJS3+ZgkNz08XYRVX/+p0pNBrjJY0N64GWxln5fyFgR46XpMHIYHyn3WTqG/2Lh52Q+QCYeA/kcGtumXTnkFNYPGqJ5ZKLDuflyLcbAr/2C7hJkb2FKX9dyfqWAsrIZQrr5kAMQf5FDjT6JkYF+pMkIWLEUmdeoQ96kJ8A+UEri8Wl/dJ3XZlDGsWn2I9/e12npR0mw9AFn/rb21DvA0MThwU63gjkOqaVQafz+fwPujt7+z4DAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f90280dc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:53 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jKJccOztuh1o%2BkbiF0iBeVepaq9qw%2BAYbrbjRmpp0aUv0v0%2F2X1uC180VDx58HHZL0RDdIVha9MMwTrA6t2gody8WHzvL1JOmGFcAYqBiz7UxJfk5I8h9m3oMq715mQd0vNxRSt7USz50aA5JQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"ac5ba21b4398a11c698bd6cbfee51d0b\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "670" + ], + "rate-limit-reset": [ + "7" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "670" + ], + "x-request-id": [ + "804a3f90280dc3b1-SEA", + "804a3f90280dc3b1-SEA" + ], + "x-runtime": [ + "0.273790" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy\", :unpermitted_keys=>[\"user.id\", \"user.name\", \"user\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-mx2vw" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133217347610.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-tearDown.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-tearDown.json new file mode 100644 index 00000000..a6ba43bb --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-tearDown.json @@ -0,0 +1,135 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:54", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 6133233653018, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "91" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "DELETE", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSy3LbMAz8F55t61Wrjm79gV7aHNpOhwORkMyYIlUSdBp7/O+F5FhxemiPBHcXiwXOIkUMojkLo0VTF1VVVlW9rfJitxIpWNGIPdEYmyw7VW79RGgIbQtp2JzQaYyHjfJDBqPJjmU2acXsncrmKXonVsLBgCxGGOmRUR1u2xrLEtsqVxp0vmtLXXd1qT6WZQs7LLpaqWLLTBzAsA+XrF0JFRAItQRisTIvq3X+sC7yr8VDs9012+o7E9Ko/4X5MGHIDChP3k2ePg0YjILsMz7Lbz4c+NuAA/kfzLifv66+4h4Ct5xr0qWhnUK9fnGN/O1hvQKLcgq7uL1YHt368Qtr+tCDMycg490MurKCf0Xp9byulTiync4gIzqwETml34TBgb1jEfRRND9+rgRYA/FWBkXmiAvx6vyvp4QeHS1FC5Gk9b1xc6iv8s9edizmg4REe4kOWnuvZHoHlMKSkUbiTS4+nOdjuJ9Q0su4gFWK5Ac5199GGrzGANxy6UJGHZBk4LviBU25cVABfyUusBmO1NkXOQZz5JuQfKsDDxYX+o33NjKFNJlPcZzu+20cjR0kS7IPPo33u8HRB5IqHhfotCPJ27GaG50vl8sf6iA++WYDAAA=", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f962d47c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:54 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Bf4tBfhQEZ%2FbbQwC9xLm5zmVDQ4wbcffOEXx2G71p8qwcHhQObwUANqx6hGK9VsfE0%2FwWbTZdV4Hr9VOmmd%2FdgQs8CrMQz%2FGGAgPHVue%2FD86s5LR17ixbUlu7M2e9Vu7s8ikAyh6YR2Cy2RVgg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"386fd6d14f9a8c18b4772d86d6193da8\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "667" + ], + "rate-limit-reset": [ + "6" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "667" + ], + "x-request-id": [ + "804a3f962d47c3b1-SEA", + "804a3f962d47c3b1-SEA" + ], + "x-runtime": [ + "0.310956" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-api-warn": [ + "{:allowed_parameters=>{:controller=>\"users\", :action=>\"destroy\", :unpermitted_keys=>[\"user.id\", \"user.name\", \"user\"], :invalid_values=>[]}}" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-update-single.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-update-single.json new file mode 100644 index 00000000..c83d2b8a --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_object_update-update-single.json @@ -0,0 +1,258 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:54", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": \"\", \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "40" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "POST", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + }, + "response": { + "body": { + "encoding": "utf-8", + "string": "{\"user\":{\"id\":6133233653018,\"url\":\"https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json\",\"name\":\"testUser\",\"email\":null,\"created_at\":\"2023-09-10T19:58:53Z\",\"updated_at\":\"2023-09-10T19:58:54Z\",\"time_zone\":\"America/New_York\",\"iana_time_zone\":\"America/New_York\",\"phone\":null,\"shared_phone_number\":null,\"photo\":null,\"locale_id\":1,\"locale\":\"en-US\",\"organization_id\":null,\"role\":\"end-user\",\"verified\":false,\"external_id\":null,\"tags\":[],\"alias\":null,\"active\":true,\"shared\":false,\"shared_agent\":false,\"last_login_at\":null,\"two_factor_auth_enabled\":false,\"signature\":null,\"details\":null,\"notes\":null,\"role_type\":null,\"custom_role_id\":null,\"moderator\":false,\"ticket_restriction\":\"requested\",\"only_private_comments\":false,\"restricted_agent\":true,\"suspended\":false,\"default_group_id\":null,\"report_csv\":false,\"user_fields\":{}}}" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f92ba6dc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "829" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:54 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Ux5KvFFHP6Un54mKu4EQ7IOloLpV64kA%2BRgV05L%2FXw%2By4K85CrHWpRPVbkQNgw3ayP9pHrYoxfTq01CSzMigLlb5LPlWotq8TsdZ%2B8IPadeCz%2FDSyRk9c0Z%2BnGlwacKPWdGQKENPnfWJO1e%2FBA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"98eccb648d3c8ed0d8a545c6f828dfc2\"" + ], + "location": [ + "https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "669" + ], + "rate-limit-reset": [ + "6" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "669" + ], + "x-request-id": [ + "804a3f92ba6dc3b1-SEA", + "804a3f92ba6dc3b1-SEA" + ], + "x-runtime": [ + "0.156948" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-dpp47" + ] + }, + "status": { + "code": 201, + "message": "Created" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users.json" + } + }, + { + "recorded_at": "2023-09-10T19:58:54", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 6133233653018, \"name\": \"testUserfe5b6e22eb30cdad08b2d6f62c722ba8e1f6cc15\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "91" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "PUT", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA4VSTZfTMAz8Lz63zRcN3dz4A1xgD8Dj+Sm2knrr2MGWu2z7+t9R0jZbLnC0PBrNjHQWKWIQzVkYLZq6qKqyquptlRe7lUjBikbsicbYZNmpcusXQkNoW0jD5oROYzxslB8yGE12LLOJK2Z/sWxeondiJRwMyGSEkZ4Z1eG2rbEssa1ypUHnu7bUdVeX6mNZtrDDoquVKrbciQMY1uGStSuhAgKhlkBMVuZltc6f1kX+tXhqtrtmW33nhjTqf2E+TBgyA8qTd5OmTwMGoyD7jK/ymw8H/jbgQP4HM+7nr6uuuIfAI+eadGlop1CvX1wjf39Yr8CinMIu7i+mR7d+/sKcPvTgzAnIeDeDrl3B31B6Pa9rJY4spzPIiA5sRE7pN2FwYB+6CPoomh8/VwKsgXgvgyJzZDoKCe/CF5qbD+jR0VK0EEla3xs3Z3pjf/WyYy4fJCTaS3TQ2kcm0zugFJaINBIvcpHhPN/Co0FJb+MCVimSH+Rcf3c0eI0BeOQyhYw6IMnAZ8X7mWLjnAL+SlxgMZyos29yDObIJyH5VAc2Fpf2e9+75VsqKY7Teb/b0dhBsiT74NP4uBocfSCp4nGBTiuSvByredD5crn8AU/xmfFlAwAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f948be8c3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:54 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=odvfPol01k0TVQk%2BEB1ek%2BwCVPgOXMxz9voAZChmrRty8FK72QVYf1RpNqp%2F7JUXDX9sQ6%2FdOpe6VRjguHNX40PF2S0y5%2FhcLeZfFVwB%2BU5nikNJYYcQ7ypLfzM0RE6jtODVEmkF%2Fb7GMjJGTg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "max-age=0, private, must-revalidate" + ], + "etag": [ + "W/\"867479cdee842e88c13ad4a60b259c8a\"" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "668" + ], + "rate-limit-reset": [ + "6" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "668" + ], + "x-request-id": [ + "804a3f948be8c3b1-SEA", + "804a3f948be8c3b1-SEA" + ], + "x-runtime": [ + "0.124096" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-s5skm" + ] + }, + "status": { + "code": 200, + "message": "OK" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/6133233653018.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_update_raises_recordnotfoundexception-recordnotfound-update.json b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_update_raises_recordnotfoundexception-recordnotfound-update.json new file mode 100644 index 00000000..64a9a950 --- /dev/null +++ b/tests/test_api/betamax/TestUserCreateUpdateDeleteNoID.test_single_update_raises_recordnotfoundexception-recordnotfound-update.json @@ -0,0 +1,129 @@ +{ + "http_interactions": [ + { + "recorded_at": "2023-09-10T19:58:55", + "request": { + "body": { + "encoding": "utf-8", + "string": "{\"user\": {\"id\": 9223372036854775807, \"name\": \"testUser\"}}" + }, + "headers": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Authorization": [ + "Basic " + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "57" + ], + "Content-Type": [ + "application/json" + ], + "Cookie": [ + "_zendesk_cookie=BAhJIhl7ImRldmljZV90b2tlbnMiOnt9fQY6BkVU--0bf2100788cb010d0183feca16aaf88ccaf719ca" + ], + "User-Agent": [ + "Zenpy/2.0.36" + ] + }, + "method": "PUT", + "uri": "https://d3v-zenpydev.zendesk.com/api/v2/users/9223372036854775807.json" + }, + "response": { + "body": { + "base64_string": "H4sIAAAAAAAAA6tWSi0qyi9SslIKSk3OL0rxyy9xyy/NS1HSUUpJLU4uyiwoyczPA0oDJRTSwDK1AHKmUTI0AAAA", + "encoding": "utf-8", + "string": "" + }, + "headers": { + "CF-Cache-Status": [ + "DYNAMIC" + ], + "CF-RAY": [ + "804a3f98f80bc3b1-SEA" + ], + "Connection": [ + "keep-alive" + ], + "Content-Encoding": [ + "gzip" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Date": [ + "Sun, 10 Sep 2023 19:58:55 GMT" + ], + "NEL": [ + "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}" + ], + "Report-To": [ + "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2FlAqMYgItpb2U1Xn0%2BQU56llCWt7oNOQDTM9qUkKJr03ImtiuFunlCx8iiXdvyoMwUV4ibK%2B%2BsPejgle5UREkanVGwFOJcthCr%2F1XurYYZhKu0MWTgJFWDJnhrn8zC09zSsTilk4KHcWezdLxQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" + ], + "Server": [ + "cloudflare" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Zendesk-Zorg": [ + "yes" + ], + "cache-control": [ + "no-cache" + ], + "rate-limit": [ + "700" + ], + "rate-limit-remaining": [ + "666" + ], + "rate-limit-reset": [ + "6" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubDomains" + ], + "x-frame-options": [ + "SAMEORIGIN" + ], + "x-rate-limit": [ + "700" + ], + "x-rate-limit-remaining": [ + "666" + ], + "x-request-id": [ + "804a3f98f80bc3b1-SEA", + "804a3f98f80bc3b1-SEA" + ], + "x-runtime": [ + "0.054043" + ], + "x-zendesk-api-version": [ + "v2" + ], + "x-zendesk-application-version": [ + "v18303" + ], + "x-zendesk-origin-server": [ + "classic-app-server-68d6847b4d-b9bjn" + ] + }, + "status": { + "code": 404, + "message": "Not Found" + }, + "url": "https://d3v-zenpydev.zendesk.com/api/v2/users/9223372036854775807.json" + } + } + ], + "recorded_with": "betamax/0.8.1" +} \ No newline at end of file diff --git a/tests/test_api/test_create_update_delete_zendesk.py b/tests/test_api/test_create_update_delete_zendesk.py index 21ab0e86..86f61df7 100644 --- a/tests/test_api/test_create_update_delete_zendesk.py +++ b/tests/test_api/test_create_update_delete_zendesk.py @@ -38,6 +38,11 @@ class TestUserCreateUpdateDelete(CRUDApiTestCase): object_kwargs = dict(name="testUser", id="") api_name = "users" +class TestUserCreateUpdateDeleteNoID(CRUDApiTestCase): + __test__ = True + ZenpyType = User + object_kwargs = dict(name="testUser") + api_name = "users" class TestRecipientAddressCreateUpdateDelete( SingleUpdateApiTestCase, SingleCreateApiTestCase diff --git a/zenpy/lib/api.py b/zenpy/lib/api.py index 6af2d62d..5771161a 100644 --- a/zenpy/lib/api.py +++ b/zenpy/lib/api.py @@ -22,7 +22,7 @@ from zenpy.lib.mapping import ZendeskObjectMapping, ChatObjectMapping, HelpCentreObjectMapping, TalkObjectMapping from zenpy.lib.request import * from zenpy.lib.response import * -from zenpy.lib.util import as_plural, extract_id, is_iterable_but_not_string, json_encode_for_zendesk, all_are_none, \ +from zenpy.lib.util import dict_clean, as_plural, extract_id, is_iterable_but_not_string, json_encode_for_zendesk, all_are_none, \ all_are_not_none, json_encode_for_printing try: @@ -282,7 +282,7 @@ def _serialize(self, zenpy_object): log.debug("Setting dirty object: {}".format(zenpy_object)) self._dirty_object = zenpy_object return json.loads( - json.dumps(zenpy_object, default=json_encode_for_zendesk)) + json.dumps(zenpy_object, default=json_encode_for_zendesk), object_pairs_hook=dict_clean) def _query_zendesk(self, endpoint, object_type, *endpoint_args, **endpoint_kwargs): diff --git a/zenpy/lib/util.py b/zenpy/lib/util.py index 907992b3..79f1fffc 100644 --- a/zenpy/lib/util.py +++ b/zenpy/lib/util.py @@ -114,6 +114,13 @@ def id_of(x): return outer +def dict_clean(items): + result = {} + for key, value in items: + if value is None: + value = '' + result[key] = value + return result def json_encode_for_zendesk(obj): """ Only encode those attributes of Zenpy objects that have been modified. """