diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index cbd7d06fe..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"taxonomiesCreate!","codename":"taxonomies_codename_create","external_id":"taxonomies_codename_external_id__create","terms":[{"name":"name","codename":"taxonomies_term_codename","external_id":"taxonomies_term_external_id","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index cbae6e371..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["471"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/66571b03-66fa-509c-9ae8-bdccb3086d21"]},{"Key":"X-Request-ID","Value":["b770f3142c4d294a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:22 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6356-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207162.016699,VS0,VE111"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["243"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index 70e67ea5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:22.0991448Z", - "id": "66571b03-66fa-509c-9ae8-bdccb3086d21", - "name": "taxonomiesCreate!", - "codename": "taxonomies_codename_create", - "external_id": "taxonomies_codename_external_id__create", - "terms": [ - { - "id": "86993383-9bb9-51c9-8808-e22c0bfc2796", - "name": "name", - "codename": "taxonomies_term_codename", - "external_id": "taxonomies_term_external_id", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/request.json deleted file mode 100644 index a706bd7cc..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/taxonomies_codename_create","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/response.json deleted file mode 100644 index be529cf4d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["967cab2a801eb64d"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:22 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6356-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207162.152836,VS0,VE44"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/taxonomies_codename_create","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/CreateTaxonomyGroup_CreatesTaxonomyGroup/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request.json deleted file mode 100644 index 6da117c4e..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request_content.json deleted file mode 100644 index 71a246989..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"webhookTestName","url":"http://url","secret":"secret","enabled":true,"triggers":{"delivery_api_content_changes":[{"type":"content_item_variant","operations":["publish","unpublish"]},{"type":"taxonomy","operations":["archive","restore","upsert"]}]}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response.json deleted file mode 100644 index c097095af..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["684"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/e13f8123-036d-49ea-b289-a008ff48bdba"]},{"Key":"X-Request-ID","Value":["b5b2a67ef461f044"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:42 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6375-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207183.913409,VS0,VE79"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["257"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response_content.json deleted file mode 100644 index 9a65e2418..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/0_POST/response_content.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:42.9319256Z", - "id": "e13f8123-036d-49ea-b289-a008ff48bdba", - "name": "webhookTestName", - "url": "http://url", - "secret": "secret", - "enabled": true, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/request.json deleted file mode 100644 index 71af984fe..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/e13f8123-036d-49ea-b289-a008ff48bdba","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/response.json deleted file mode 100644 index 90c7e8183..000000000 --- a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["5496534fb29acb4e"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6375-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207183.013279,VS0,VE63"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/e13f8123-036d-49ea-b289-a008ff48bdba","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/CreateWebhookGroup_CreatesWebhookGroup/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index 6822b7218..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"deletetaxonomygroup_bycodename_deletesta_xonomygro","codename":"c_deletetaxonomygroup_bycodename_deletesta_xonomygro","external_id":"eid_deletetaxonomygroup_bycodename_deletesta_xonomygro","terms":[{"name":"name1_deletetaxonomygroup_bycodename_deletesta_xonomygro","codename":"t_c_1deletetaxonomygroup_bycodename_deletesta_xonomygro","external_id":"eid1_deletetaxonomygroup_bycodename_deletesta_xonomygro","terms":[]},{"name":"name2_deletetaxonomygroup_bycodename_deletesta_xonomygro","codename":"t_c_2deletetaxonomygroup_bycodename_deletesta_xonomygro","external_id":"eid2_deletetaxonomygroup_bycodename_deletesta_xonomygro","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index 7d4fcc795..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["977"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/94d0dc02-fa14-535f-bdab-ac9dedb3dfb3"]},{"Key":"X-Request-ID","Value":["855b5019d0a9a645"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6371-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.415439,VS0,VE40"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["648"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index cd22a1b12..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:21.4271855Z", - "id": "94d0dc02-fa14-535f-bdab-ac9dedb3dfb3", - "name": "deletetaxonomygroup_bycodename_deletesta_xonomygro", - "codename": "c_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "external_id": "eid_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "terms": [ - { - "id": "9cfded76-319f-5a51-8c6c-4a3b95e87db3", - "name": "name1_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "codename": "t_c_1deletetaxonomygroup_bycodename_deletesta_xonomygro", - "external_id": "eid1_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "terms": [] - }, - { - "id": "cee1ac5e-7baa-55c5-9934-65bd219776b4", - "name": "name2_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "codename": "t_c_2deletetaxonomygroup_bycodename_deletesta_xonomygro", - "external_id": "eid2_deletetaxonomygroup_bycodename_deletesta_xonomygro", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/request.json deleted file mode 100644 index ec4ddbaea..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_deletetaxonomygroup_bycodename_deletesta_xonomygro","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/response.json deleted file mode 100644 index 308e10664..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["d064ae6dd898db44"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6371-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.479753,VS0,VE42"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_deletetaxonomygroup_bycodename_deletesta_xonomygro","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index d3a677b16..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"deletetaxonomygroup_byexternalid_deletes_taxonomyg","codename":"c_deletetaxonomygroup_byexternalid_deletes_taxonomyg","external_id":"eid_deletetaxonomygroup_byexternalid_deletes_taxonomyg","terms":[{"name":"name1_deletetaxonomygroup_byexternalid_deletes_taxonomyg","codename":"t_c_1deletetaxonomygroup_byexternalid_deletes_taxonomyg","external_id":"eid1_deletetaxonomygroup_byexternalid_deletes_taxonomyg","terms":[]},{"name":"name2_deletetaxonomygroup_byexternalid_deletes_taxonomyg","codename":"t_c_2deletetaxonomygroup_byexternalid_deletes_taxonomyg","external_id":"eid2_deletetaxonomygroup_byexternalid_deletes_taxonomyg","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index c75e0e0cb..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["977"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/77afd5ce-19fa-52a7-a13d-16c51807554b"]},{"Key":"X-Request-ID","Value":["880e630ff749ee4a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.306953,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["648"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index b8aa980ba..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:20.3177448Z", - "id": "77afd5ce-19fa-52a7-a13d-16c51807554b", - "name": "deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "codename": "c_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "external_id": "eid_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "terms": [ - { - "id": "459c7170-140f-5873-90b6-2695008878f9", - "name": "name1_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "codename": "t_c_1deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "external_id": "eid1_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "terms": [] - }, - { - "id": "4e4a162d-087a-52ad-a6c5-ea8c2ce31f8d", - "name": "name2_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "codename": "t_c_2deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "external_id": "eid2_deletetaxonomygroup_byexternalid_deletes_taxonomyg", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/request.json deleted file mode 100644 index 79017e47d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/external-id/eid_deletetaxonomygroup_byexternalid_deletes_taxonomyg","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/response.json deleted file mode 100644 index 478ca27e0..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["05bbe00302d6114b"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.372729,VS0,VE43"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/external-id/eid_deletetaxonomygroup_byexternalid_deletes_taxonomyg","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index d9f4ae373..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"deletetaxonomygroup_byid_deletestaxonomy_group","codename":"c_deletetaxonomygroup_byid_deletestaxonomy_group","external_id":"eid_deletetaxonomygroup_byid_deletestaxonomy_group","terms":[{"name":"name1_deletetaxonomygroup_byid_deletestaxonomy_group","codename":"t_c_1deletetaxonomygroup_byid_deletestaxonomy_group","external_id":"eid1_deletetaxonomygroup_byid_deletestaxonomy_group","terms":[]},{"name":"name2_deletetaxonomygroup_byid_deletestaxonomy_group","codename":"t_c_2deletetaxonomygroup_byid_deletestaxonomy_group","external_id":"eid2_deletetaxonomygroup_byid_deletestaxonomy_group","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index f8e5a89aa..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["941"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/7032da72-02d5-5393-99ff-ace8f919e80d"]},{"Key":"X-Request-ID","Value":["55d42a1cfb12c243"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6349-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.012702,VS0,VE43"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["612"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index b0c057b79..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:20.0208869Z", - "id": "7032da72-02d5-5393-99ff-ace8f919e80d", - "name": "deletetaxonomygroup_byid_deletestaxonomy_group", - "codename": "c_deletetaxonomygroup_byid_deletestaxonomy_group", - "external_id": "eid_deletetaxonomygroup_byid_deletestaxonomy_group", - "terms": [ - { - "id": "0fadfbfd-d2d7-52de-babd-e550d99ac4e7", - "name": "name1_deletetaxonomygroup_byid_deletestaxonomy_group", - "codename": "t_c_1deletetaxonomygroup_byid_deletestaxonomy_group", - "external_id": "eid1_deletetaxonomygroup_byid_deletestaxonomy_group", - "terms": [] - }, - { - "id": "3eb1b714-b0aa-5f64-81cc-9f1d36dd5de8", - "name": "name2_deletetaxonomygroup_byid_deletestaxonomy_group", - "codename": "t_c_2deletetaxonomygroup_byid_deletestaxonomy_group", - "external_id": "eid2_deletetaxonomygroup_byid_deletestaxonomy_group", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/request.json deleted file mode 100644 index 615169e5f..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/7032da72-02d5-5393-99ff-ace8f919e80d","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/response.json deleted file mode 100644 index 11ece1430..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["aa498686f6260642"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6349-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.080261,VS0,VE43"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/7032da72-02d5-5393-99ff-ace8f919e80d","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request.json deleted file mode 100644 index 6da117c4e..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request_content.json deleted file mode 100644 index 71a246989..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"webhookTestName","url":"http://url","secret":"secret","enabled":true,"triggers":{"delivery_api_content_changes":[{"type":"content_item_variant","operations":["publish","unpublish"]},{"type":"taxonomy","operations":["archive","restore","upsert"]}]}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response.json deleted file mode 100644 index 61860e6ad..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["684"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/b1bad529-e9e2-44ae-be16-3989156d6525"]},{"Key":"X-Request-ID","Value":["efcd0a53072eb04c"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6321-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207183.307044,VS0,VE54"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["257"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response_content.json deleted file mode 100644 index 15bee544c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/0_POST/response_content.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:43.3225724Z", - "id": "b1bad529-e9e2-44ae-be16-3989156d6525", - "name": "webhookTestName", - "url": "http://url", - "secret": "secret", - "enabled": true, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/request.json deleted file mode 100644 index 0424fc459..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/b1bad529-e9e2-44ae-be16-3989156d6525","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/response.json deleted file mode 100644 index daf9934b8..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["dbba65ba8f21084b"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6321-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207183.386578,VS0,VE59"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/b1bad529-e9e2-44ae-be16-3989156d6525","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/DeleteWebhook_ById_DeletesWebhook/1_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request.json deleted file mode 100644 index 6da117c4e..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request_content.json deleted file mode 100644 index 9201fc33c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"enabledWebhook","url":"http://url","secret":"secret","enabled":true,"triggers":{"delivery_api_content_changes":[{"type":"content_item_variant","operations":["publish","unpublish"]}]}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response.json deleted file mode 100644 index 5fe4da010..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["535"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835"]},{"Key":"X-Request-ID","Value":["8243733376d63045"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6322-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.106750,VS0,VE121"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["192"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response_content.json deleted file mode 100644 index c47d2881f..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/0_POST/response_content.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:44.1820125Z", - "id": "f3424b93-f4ff-4305-8c08-f62d806af835", - "name": "enabledWebhook", - "url": "http://url", - "secret": "secret", - "enabled": true, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/request.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/request.json deleted file mode 100644 index c299e818c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"PUT"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835/disable","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/request_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/response.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/response.json deleted file mode 100644 index a8935987a..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["8ab88eac705ccf4a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6322-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.255345,VS0,VE47"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"PUT"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835/disable","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/response_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/1_PUT/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/request.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/request.json deleted file mode 100644 index d422906a7..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response.json deleted file mode 100644 index 7659deb71..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["536"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["f28aad23a0dfda41"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6322-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.328665,VS0,VE42"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response_content.json deleted file mode 100644 index d751d05bf..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/2_GET/response_content.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:44.1820125Z", - "id": "f3424b93-f4ff-4305-8c08-f62d806af835", - "name": "enabledWebhook", - "url": "http://url", - "secret": "secret", - "enabled": false, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/request.json deleted file mode 100644 index dbf1d9166..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/response.json deleted file mode 100644 index fead4c5db..000000000 --- a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["0b77c3ff093ea241"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6322-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.391720,VS0,VE44"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/f3424b93-f4ff-4305-8c08-f62d806af835","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/DisableWebhook_ById_DisablesWebhook/3_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request.json deleted file mode 100644 index 6da117c4e..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request_content.json deleted file mode 100644 index a99221701..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"disabledWebhook","url":"http://url","secret":"secret","enabled":false,"triggers":{"delivery_api_content_changes":[{"type":"taxonomy","operations":["archive","restore","upsert"]}]}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response.json deleted file mode 100644 index 0483e6c4a..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a"]},{"Key":"X-Request-ID","Value":["7a7c73d65edecf41"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6334-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.581783,VS0,VE53"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["189"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response_content.json deleted file mode 100644 index 6741baaa4..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:43.5882102Z", - "id": "caffe717-127b-4a0d-a046-dd7dcd32134a", - "name": "disabledWebhook", - "url": "http://url", - "secret": "secret", - "enabled": false, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/request.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/request.json deleted file mode 100644 index 02e4076b4..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"PUT"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a/enable","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/request_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/response.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/response.json deleted file mode 100644 index 18c4d63a9..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["06830749855f834f"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6334-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.658842,VS0,VE46"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"PUT"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a/enable","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/response_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/1_PUT/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/request.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/request.json deleted file mode 100644 index 57a3ce794..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response.json deleted file mode 100644 index 0a0ce6264..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["543"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["2fdb389ec45aa945"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6334-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.719175,VS0,VE42"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response_content.json deleted file mode 100644 index b72a8bac4..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/2_GET/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:43.5882102Z", - "id": "caffe717-127b-4a0d-a046-dd7dcd32134a", - "name": "disabledWebhook", - "url": "http://url", - "secret": "secret", - "enabled": true, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [], - "workflow_step_changes": [], - "management_api_content_changes": [] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/request.json deleted file mode 100644 index 85132ef53..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/response.json deleted file mode 100644 index b32808758..000000000 --- a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["609adf31ff64944c"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6334-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.013725,VS0,VE43"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/caffe717-127b-4a0d-a046-dd7dcd32134a","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/EnableWebhook_ById_EnablesWebhook/3_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/request.json deleted file mode 100644 index 654d3acbd..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/manufacturer","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response.json deleted file mode 100644 index c8a4c46b3..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1049"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["21dc7961dd4e3b4b"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:22 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6379-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207162.247459,VS0,VE37"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/manufacturer","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response_content.json deleted file mode 100644 index fb990d321..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup/0_GET/response_content.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "last_modified": "2021-06-02T11:08:26.2089083Z", - "id": "f6851a6e-a342-5253-8bc6-e8abc8f56b15", - "name": "Manufacturer", - "codename": "manufacturer", - "external_id": "4ce421e9-c403-eee8-fdc2-74f09392a749", - "terms": [ - { - "id": "d052a5a6-b8a5-52b2-b8e6-f0e073e5a943", - "name": "Aerobie", - "codename": "aerobie", - "external_id": "f04c8552-1b97-a49b-3944-79275622f471", - "terms": [] - }, - { - "id": "09060657-7288-5e14-806a-e3fd5548d2e5", - "name": "Chemex", - "codename": "chemex", - "external_id": "16d27bf1-e0f4-8646-0e54-1b71efc6947f", - "terms": [] - }, - { - "id": "33a832cf-ce27-54eb-8d84-e435a930fad3", - "name": "Espro", - "codename": "espro", - "external_id": "b378225f-6dfc-e261-3848-dd030a6d7883", - "terms": [] - }, - { - "id": "6b6aac7a-1528-58d5-9e5b-c49f6f217a84", - "name": "Hario", - "codename": "hario", - "external_id": "6fde9724-5b72-8bc9-6da0-4f0573a54532", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/request.json deleted file mode 100644 index 4ab989521..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/external-id/4ce421e9-c403-eee8-fdc2-74f09392a749","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response.json deleted file mode 100644 index 04fae58c3..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1049"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["e0eea8504d0d644d"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6357-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207162.924970,VS0,VE32"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/external-id/4ce421e9-c403-eee8-fdc2-74f09392a749","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response_content.json deleted file mode 100644 index fb990d321..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup/0_GET/response_content.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "last_modified": "2021-06-02T11:08:26.2089083Z", - "id": "f6851a6e-a342-5253-8bc6-e8abc8f56b15", - "name": "Manufacturer", - "codename": "manufacturer", - "external_id": "4ce421e9-c403-eee8-fdc2-74f09392a749", - "terms": [ - { - "id": "d052a5a6-b8a5-52b2-b8e6-f0e073e5a943", - "name": "Aerobie", - "codename": "aerobie", - "external_id": "f04c8552-1b97-a49b-3944-79275622f471", - "terms": [] - }, - { - "id": "09060657-7288-5e14-806a-e3fd5548d2e5", - "name": "Chemex", - "codename": "chemex", - "external_id": "16d27bf1-e0f4-8646-0e54-1b71efc6947f", - "terms": [] - }, - { - "id": "33a832cf-ce27-54eb-8d84-e435a930fad3", - "name": "Espro", - "codename": "espro", - "external_id": "b378225f-6dfc-e261-3848-dd030a6d7883", - "terms": [] - }, - { - "id": "6b6aac7a-1528-58d5-9e5b-c49f6f217a84", - "name": "Hario", - "codename": "hario", - "external_id": "6fde9724-5b72-8bc9-6da0-4f0573a54532", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/request.json deleted file mode 100644 index 6fa6c343d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/f6851a6e-a342-5253-8bc6-e8abc8f56b15","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response.json deleted file mode 100644 index 65f630693..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1049"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["3b064d9406bb2240"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6339-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.032935,VS0,VE34"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/f6851a6e-a342-5253-8bc6-e8abc8f56b15","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response_content.json deleted file mode 100644 index fb990d321..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetTaxonomyGroup_ById_GetsTaxonomyGroup/0_GET/response_content.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "last_modified": "2021-06-02T11:08:26.2089083Z", - "id": "f6851a6e-a342-5253-8bc6-e8abc8f56b15", - "name": "Manufacturer", - "codename": "manufacturer", - "external_id": "4ce421e9-c403-eee8-fdc2-74f09392a749", - "terms": [ - { - "id": "d052a5a6-b8a5-52b2-b8e6-f0e073e5a943", - "name": "Aerobie", - "codename": "aerobie", - "external_id": "f04c8552-1b97-a49b-3944-79275622f471", - "terms": [] - }, - { - "id": "09060657-7288-5e14-806a-e3fd5548d2e5", - "name": "Chemex", - "codename": "chemex", - "external_id": "16d27bf1-e0f4-8646-0e54-1b71efc6947f", - "terms": [] - }, - { - "id": "33a832cf-ce27-54eb-8d84-e435a930fad3", - "name": "Espro", - "codename": "espro", - "external_id": "b378225f-6dfc-e261-3848-dd030a6d7883", - "terms": [] - }, - { - "id": "6b6aac7a-1528-58d5-9e5b-c49f6f217a84", - "name": "Hario", - "codename": "hario", - "external_id": "6fde9724-5b72-8bc9-6da0-4f0573a54532", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/request.json deleted file mode 100644 index 87b9b1f12..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/ef6eb5e6-24f6-4a3a-a291-1cff8d4eecc5","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response.json deleted file mode 100644 index f6f5b5159..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1629"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["d82e8b0dc872a54a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:44 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6353-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207184.491237,VS0,VE41"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks/ef6eb5e6-24f6-4a3a-a291-1cff8d4eecc5","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response_content.json deleted file mode 100644 index b294a0912..000000000 --- a/Kentico.Kontent.Management.Tests/Data/GetWebhook_ById_GetsWebhook/0_GET/response_content.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "last_modified": "2021-08-06T06:39:19.2776995Z", - "id": "ef6eb5e6-24f6-4a3a-a291-1cff8d4eecc5", - "name": "Webhook_all_triggers", - "url": "http://test", - "secret": "5OD07VVZ7ZD7Kq0ozmA0SQSn4qWbF2HrXmXh9zb1/Ig=", - "enabled": false, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "upsert", - "archive" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "workflow_step_changes": [ - { - "type": "content_item_variant", - "transitions_to": [ - { - "id": "eee6db3b-545a-4785-8e86-e3772c8756f9" - }, - { - "id": "9d2b0228-4d0d-4c23-8b49-01a698857709" - }, - { - "id": "c199950d-99f0-4983-b711-6c4c91624b22" - }, - { - "id": "7a535a69-ad34-47f8-806a-def1fdf4d391" - } - ] - } - ], - "management_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "create", - "archive", - "restore" - ] - } - ] - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/request.json deleted file mode 100644 index cd08bc355..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response.json deleted file mode 100644 index 065a54690..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["7614968ecc09c940"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6333-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.207644,VS0,VE35"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response_content.json deleted file mode 100644 index 5fce5aff4..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListCollections_ListsCollections/0_GET/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.0848311Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/request.json deleted file mode 100644 index f24f61f6b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response.json deleted file mode 100644 index afa4bf25c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["4923"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["8c7127cf2f27c44d"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"x-continuation","Value":[""]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6333-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.219783,VS0,VE29"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response_content.json deleted file mode 100644 index c71cb7682..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListTaxonomyGroups_ListsTaxonomyGroups/0_GET/response_content.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "taxonomies": [ - { - "last_modified": "2021-06-02T11:08:26.4276693Z", - "id": "7fad4cb0-c96c-5bce-a6c4-ec02a0280632", - "name": "Personas", - "codename": "personas", - "external_id": "f30c7f72-e9ab-8832-2a57-62944a038809", - "terms": [ - { - "id": "0681c1ab-9b46-5a9d-bad0-5b2255cbaa3e", - "name": "Coffee expert", - "codename": "coffee_expert", - "external_id": "6693ca6e-79e0-57e4-000d-d23d5ce8f656", - "terms": [ - { - "id": "6e8b18d5-c5e3-5fc1-9014-44c18ef5f5d8", - "name": "Barista", - "codename": "barista", - "external_id": "6a372f43-ccd7-e524-6308-c2094e7b6596", - "terms": [] - }, - { - "id": "f36cb6b1-a77a-5c85-83a1-e380458552e1", - "name": "Cafe owner", - "codename": "cafe_owner", - "external_id": "cdf2f3c6-89e3-5df1-f7de-7179460bd6b4", - "terms": [] - } - ] - }, - { - "id": "63e3086d-be0f-534f-ab7a-02c6eb9e766a", - "name": "Coffee enthusiast", - "codename": "coffee_enthusiast", - "external_id": "ab2b73a3-473d-4232-0652-495598f5d670", - "terms": [ - { - "id": "f3189a2d-82b4-5a91-bdc8-c1971ed0c10e", - "name": "Coffee lover", - "codename": "coffee_lover", - "external_id": "208a9095-1b92-10da-7627-75ae311935cf", - "terms": [] - }, - { - "id": "36a4819d-e7f4-5f20-a3f0-ccd09cc0dc48", - "name": "Coffee blogger", - "codename": "coffee_blogger", - "external_id": "4fa27320-c363-3ebe-5ab5-b531300f053f", - "terms": [] - } - ] - } - ] - }, - { - "last_modified": "2021-06-02T11:08:26.2089083Z", - "id": "f6851a6e-a342-5253-8bc6-e8abc8f56b15", - "name": "Manufacturer", - "codename": "manufacturer", - "external_id": "4ce421e9-c403-eee8-fdc2-74f09392a749", - "terms": [ - { - "id": "d052a5a6-b8a5-52b2-b8e6-f0e073e5a943", - "name": "Aerobie", - "codename": "aerobie", - "external_id": "f04c8552-1b97-a49b-3944-79275622f471", - "terms": [] - }, - { - "id": "09060657-7288-5e14-806a-e3fd5548d2e5", - "name": "Chemex", - "codename": "chemex", - "external_id": "16d27bf1-e0f4-8646-0e54-1b71efc6947f", - "terms": [] - }, - { - "id": "33a832cf-ce27-54eb-8d84-e435a930fad3", - "name": "Espro", - "codename": "espro", - "external_id": "b378225f-6dfc-e261-3848-dd030a6d7883", - "terms": [] - }, - { - "id": "6b6aac7a-1528-58d5-9e5b-c49f6f217a84", - "name": "Hario", - "codename": "hario", - "external_id": "6fde9724-5b72-8bc9-6da0-4f0573a54532", - "terms": [] - } - ] - }, - { - "last_modified": "2021-06-02T11:08:26.3338701Z", - "id": "d30f7c3e-e4f6-55be-869c-39c3bb6d5330", - "name": "Processing", - "codename": "processing", - "external_id": "d351400e-0290-87b2-1413-6c411d8ae5a4", - "terms": [ - { - "id": "f9dad738-dcec-50a6-bec5-f3be7fe9d861", - "name": "Wet (Washed)", - "codename": "wet__washed_", - "external_id": "a831d60b-ff0e-7df1-61d2-73e851a5deab", - "terms": [] - }, - { - "id": "6e012e50-c144-5133-9cc8-8c5376c06666", - "name": "Dry (Natural)", - "codename": "dry__natural_", - "external_id": "ac34eaa7-8463-62b9-825e-66aff9e6b216", - "terms": [] - }, - { - "id": "f60a04dd-8165-51ef-95df-3a6bf424a28b", - "name": "Semi-dry", - "codename": "semi_dry", - "external_id": "908321fa-776d-d441-6a72-76fba3959c1d", - "terms": [] - } - ] - }, - { - "last_modified": "2021-06-02T11:08:26.5370276Z", - "id": "ce444e2a-4194-5878-81b9-4447b0b2357b", - "name": "Product status", - "codename": "product_status", - "external_id": "79b1c5b6-30bc-d076-a236-d9ec9f1ff01b", - "terms": [ - { - "id": "b38b6df3-316a-541f-ba2a-7d4490f447d9", - "name": "On sale", - "codename": "on_sale", - "external_id": "6352c8bf-8024-9986-8373-35445e1f0d59", - "terms": [] - }, - { - "id": "a4dd49df-5866-59bf-acf9-188815990bf4", - "name": "Bestseller", - "codename": "bestseller", - "external_id": "8d808da3-29de-e608-5699-8565687dd474", - "terms": [] - } - ] - } - ], - "pagination": { - "continuation_token": null, - "next_page": null - } -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/request.json b/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/request.json deleted file mode 100644 index 1fe77c3c1..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/request_content.json b/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response.json b/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response.json deleted file mode 100644 index 5da6d3f8e..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1781"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["16710750aca57645"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:43 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6331-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207183.135697,VS0,VE113"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"GET"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/webhooks","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response_content.json b/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response_content.json deleted file mode 100644 index 410747ff6..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ListWebhooks_ListsWebhooks/0_GET/response_content.json +++ /dev/null @@ -1,75 +0,0 @@ -[ - { - "last_modified": "2021-08-06T06:39:19.2776995Z", - "id": "ef6eb5e6-24f6-4a3a-a291-1cff8d4eecc5", - "name": "Webhook_all_triggers", - "url": "http://test", - "secret": "5OD07VVZ7ZD7Kq0ozmA0SQSn4qWbF2HrXmXh9zb1/Ig=", - "enabled": false, - "triggers": { - "delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "publish", - "unpublish" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "preview_delivery_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "upsert", - "archive" - ] - }, - { - "type": "taxonomy", - "operations": [ - "archive", - "restore", - "upsert" - ] - } - ], - "workflow_step_changes": [ - { - "type": "content_item_variant", - "transitions_to": [ - { - "id": "eee6db3b-545a-4785-8e86-e3772c8756f9" - }, - { - "id": "9d2b0228-4d0d-4c23-8b49-01a698857709" - }, - { - "id": "c199950d-99f0-4983-b711-6c4c91624b22" - }, - { - "id": "7a535a69-ad34-47f8-806a-def1fdf4d391" - } - ] - } - ], - "management_api_content_changes": [ - { - "type": "content_item_variant", - "operations": [ - "create", - "archive", - "restore" - ] - } - ] - } - } -] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request_content.json deleted file mode 100644 index 5542acbfa..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"new_collection_name","codename":"new_collection","external_id":"new_collection_external_id"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response.json deleted file mode 100644 index 73cd9c8dc..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["738"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["d25c2c88baae5041"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:54 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6349-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.797195,VS0,VE46"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["128"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response_content.json deleted file mode 100644 index 8fd8fe0c0..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:54.8035483Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - }, - { - "id": "7e11eded-e1fc-507e-ad01-2641e49f83db", - "external_id": "new_collection_external_id", - "name": "new_collection_name", - "codename": "new_collection" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request_content.json deleted file mode 100644 index bfcb565c7..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"external_id":"new_collection_external_id"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response.json deleted file mode 100644 index 7ac08498b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["f570684260a02d49"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:54 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6349-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.867710,VS0,VE67"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["74"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response_content.json deleted file mode 100644 index ef4ea2733..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_AddInto_MovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:54.9129245Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request_content.json deleted file mode 100644 index 461151e50..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_move_after_movescollect_ion","codename":"c_modifycollection_move_after_movescollect_ion","external_id":"eid_modifycollection_move_after_movescollect_ion"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response.json deleted file mode 100644 index 955642616..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["816"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["e5526f7ae0765548"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.008985,VS0,VE40"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["245"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response_content.json deleted file mode 100644 index b72373b39..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.022278Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "c25fc63e-02bb-5514-beec-c90a93990976", - "external_id": "eid_modifycollection_move_after_movescollect_ion", - "name": "modifycollection_move_after_movescollect_ion", - "codename": "c_modifycollection_move_after_movescollect_ion" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request_content.json deleted file mode 100644 index d9028f5d6..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"move","reference":{"external_id":"eid_modifycollection_move_after_movescollect_ion"},"after":{"id":"00000000-0000-0000-0000-000000000000"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response.json deleted file mode 100644 index 6e2e69e43..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["817"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["56c784cf5b475f4e"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.076232,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["148"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response_content.json deleted file mode 100644 index 20f5a46f1..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.0848066Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "c25fc63e-02bb-5514-beec-c90a93990976", - "external_id": "eid_modifycollection_move_after_movescollect_ion", - "name": "modifycollection_move_after_movescollect_ion", - "codename": "c_modifycollection_move_after_movescollect_ion" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request_content.json deleted file mode 100644 index 817114b21..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"external_id":"eid_modifycollection_move_after_movescollect_ion"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response.json deleted file mode 100644 index 69c56609c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["3af772d409062e44"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.138461,VS0,VE60"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["96"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response_content.json deleted file mode 100644 index d55b17a8d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_After_MovesCollection/2_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.1629118Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request_content.json deleted file mode 100644 index f7c14a8f9..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_move_before_movescollec_tion","codename":"c_modifycollection_move_before_movescollec_tion","external_id":"eid_modifycollection_move_before_movescollec_tion"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response.json deleted file mode 100644 index 9341ff543..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["820"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["ba20ab5414b70146"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6373-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.297079,VS0,VE41"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["248"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response_content.json deleted file mode 100644 index c732da4f2..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.3036269Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "19119157-2e29-58e5-8af4-108fde8690d0", - "external_id": "eid_modifycollection_move_before_movescollec_tion", - "name": "modifycollection_move_before_movescollec_tion", - "codename": "c_modifycollection_move_before_movescollec_tion" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request_content.json deleted file mode 100644 index 7e6957e60..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"move","reference":{"external_id":"eid_modifycollection_move_before_movescollec_tion"},"before":{"id":"00000000-0000-0000-0000-000000000000"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response.json deleted file mode 100644 index 3fcaebfe6..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["820"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["8afaf667a5c5554a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6373-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.362845,VS0,VE38"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["150"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response_content.json deleted file mode 100644 index b45eee294..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.3661364Z", - "collections": [ - { - "id": "19119157-2e29-58e5-8af4-108fde8690d0", - "external_id": "eid_modifycollection_move_before_movescollec_tion", - "name": "modifycollection_move_before_movescollec_tion", - "codename": "c_modifycollection_move_before_movescollec_tion" - }, - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request_content.json deleted file mode 100644 index 7edc99178..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"external_id":"eid_modifycollection_move_before_movescollec_tion"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response.json deleted file mode 100644 index 2c51e5498..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["bd7429acc3840347"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6373-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.419001,VS0,VE59"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["97"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response_content.json deleted file mode 100644 index 84e89bac2..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Move_Before_MovesCollection/2_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.4442236Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request_content.json deleted file mode 100644 index 683cc3df1..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_remove_bycodename_remov_escollect","codename":"c_modifycollection_remove_bycodename_remov_escollect","external_id":"eid_modifycollection_remove_bycodename_remov_escollect"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response.json deleted file mode 100644 index d60b0216d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["835"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["4b23b61501eb6344"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6355-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207197.540943,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["263"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response_content.json deleted file mode 100644 index 1bf5c07c9..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.5536282Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "145b1f3d-7183-5fe2-984d-93829a26b9a7", - "external_id": "eid_modifycollection_remove_bycodename_remov_escollect", - "name": "modifycollection_remove_bycodename_remov_escollect", - "codename": "c_modifycollection_remove_bycodename_remov_escollect" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request_content.json deleted file mode 100644 index ddb6f58df..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"codename":"c_modifycollection_remove_bycodename_remov_escollect"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response.json deleted file mode 100644 index 8f63fa618..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["c75c05a06aade84e"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6355-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207197.608909,VS0,VE60"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["97"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response_content.json deleted file mode 100644 index be1a2d8a1..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByCodename_RemovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.6473632Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request_content.json deleted file mode 100644 index dd6ecd392..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_remove_byexternalid_rem_ovescolle","codename":"c_modifycollection_remove_byexternalid_rem_ovescolle","external_id":"eid_modifycollection_remove_byexternalid_rem_ovescolle"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response.json deleted file mode 100644 index 4ec7b9ce9..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["835"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["e617b7d3673c8245"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6358-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.510060,VS0,VE42"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["263"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response_content.json deleted file mode 100644 index 18e50432b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.5223573Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "3fd91da8-27df-57be-8836-cff29b7d65f4", - "external_id": "eid_modifycollection_remove_byexternalid_rem_ovescolle", - "name": "modifycollection_remove_byexternalid_rem_ovescolle", - "codename": "c_modifycollection_remove_byexternalid_rem_ovescolle" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request_content.json deleted file mode 100644 index 995ef8b2b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"external_id":"eid_modifycollection_remove_byexternalid_rem_ovescolle"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response.json deleted file mode 100644 index ff72636a2..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["543"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["f214ba16e5ce884a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6358-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.588833,VS0,VE67"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["102"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response_content.json deleted file mode 100644 index 6e869350b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ByExternalId_RemovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.631687Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request_content.json deleted file mode 100644 index ca061b137..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_remove_byid_removescoll_ection","codename":"c_modifycollection_remove_byid_removescoll_ection","external_id":"eid_modifycollection_remove_byid_removescoll_ection"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response.json deleted file mode 100644 index 1a1a9ab1c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["826"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["8cb71c9a2bb88a48"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6366-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.987883,VS0,VE38"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["254"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response_content.json deleted file mode 100644 index 396692545..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.9911227Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "966caac6-7ab8-5a8f-87a7-ff2e126f9099", - "external_id": "eid_modifycollection_remove_byid_removescoll_ection", - "name": "modifycollection_remove_byid_removescoll_ection", - "codename": "c_modifycollection_remove_byid_removescoll_ection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request_content.json deleted file mode 100644 index 1df12a3c1..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"id":"966caac6-7ab8-5a8f-87a7-ff2e126f9099"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response.json deleted file mode 100644 index 610b4407b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["524e0122510c6748"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:56 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6366-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207196.046947,VS0,VE62"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["75"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response_content.json deleted file mode 100644 index 5fce5aff4..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Remove_ById_RemovesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:56.0848311Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request_content.json deleted file mode 100644 index 44c71fea0..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"modifycollection_replace_replacescollect_ion","codename":"c_modifycollection_replace_replacescollect_ion","external_id":"eid_modifycollection_replace_replacescollect_ion"},"after":{"codename":"testcollection"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response.json deleted file mode 100644 index 47fa67e7a..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["817"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["f9ad360ed975ed47"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6346-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.265871,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["245"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response_content.json deleted file mode 100644 index 480f6505d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/0_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.2723183Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "3d96589e-1820-5406-89f7-c6ff5bac7bd8", - "external_id": "eid_modifycollection_replace_replacescollect_ion", - "name": "modifycollection_replace_replacescollect_ion", - "codename": "c_modifycollection_replace_replacescollect_ion" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request_content.json deleted file mode 100644 index 0ff3bec64..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"replace","reference":{"external_id":"eid_modifycollection_replace_replacescollect_ion"},"value":"newName","property_name":"name"}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response.json deleted file mode 100644 index bdda2ae0b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["780"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["8f48d46f97e4b940"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6346-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.324561,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["138"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response_content.json deleted file mode 100644 index 115d09d0c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/1_PATCH/response_content.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.3348192Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "3d96589e-1820-5406-89f7-c6ff5bac7bd8", - "external_id": "eid_modifycollection_replace_replacescollect_ion", - "name": "newName", - "codename": "c_modifycollection_replace_replacescollect_ion" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request.json deleted file mode 100644 index 4daef9452..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request_content.json deleted file mode 100644 index 3c129f3fd..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"external_id":"eid_modifycollection_replace_replacescollect_ion"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response.json deleted file mode 100644 index 8c8159332..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["544"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["6f7ddebe42594848"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:55 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6346-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207195.379916,VS0,VE62"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["96"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/collections","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response_content.json deleted file mode 100644 index 1887198ce..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyCollection_Replace_ReplacesCollection/2_PATCH/response_content.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:55.4129475Z", - "collections": [ - { - "id": "00000000-0000-0000-0000-000000000000", - "name": "Default", - "codename": "default" - }, - { - "id": "53aeb1a8-f834-430a-beff-87b8352ab595", - "name": "TestCollection", - "codename": "testcollection" - }, - { - "id": "351f9184-8fa0-5882-824b-024ebadd3626", - "external_id": "coffee_collection_tests", - "name": "coffee_collection_tests", - "codename": "coffee_collection_tests" - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index fa29f33af..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"modifytaxonomygroup_addinto_modifiestaxo_nomygroup","codename":"c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","external_id":"eid_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","terms":[{"name":"name1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","codename":"t_c_1modifytaxonomygroup_addinto_modifiestaxo_nomygroup","external_id":"eid1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","terms":[]},{"name":"name2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","codename":"t_c_2modifytaxonomygroup_addinto_modifiestaxo_nomygroup","external_id":"eid2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index aee1aecdd..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["977"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/7f000495-5377-51b4-889f-74261804d8c2"]},{"Key":"X-Request-ID","Value":["083eb2d0a3ed7241"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:19 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.776780,VS0,VE44"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["648"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index 1f7325939..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:19.7864871Z", - "id": "7f000495-5377-51b4-889f-74261804d8c2", - "name": "modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [ - { - "id": "d9df805e-f247-598d-a96c-e9a44806fd15", - "name": "name1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "t_c_1modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [] - }, - { - "id": "2630d3d5-543a-5bd7-95b3-e42f75fa3080", - "name": "name2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "t_c_2modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request.json deleted file mode 100644 index c181d0442..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request_content.json deleted file mode 100644 index bedd01265..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"addInto","value":{"name":"New taxonomy term","external_id":"my_new_term_addinto","terms":[]}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response.json deleted file mode 100644 index 551d6b589..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["1184"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["d36487d976bdc64f"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:19 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.850677,VS0,VE47"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["102"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response_content.json deleted file mode 100644 index 2ff930a6a..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/1_PATCH/response_content.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:19.864627Z", - "id": "7f000495-5377-51b4-889f-74261804d8c2", - "name": "modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [ - { - "id": "d9df805e-f247-598d-a96c-e9a44806fd15", - "name": "name1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "t_c_1modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid1_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [] - }, - { - "id": "2630d3d5-543a-5bd7-95b3-e42f75fa3080", - "name": "name2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "codename": "t_c_2modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "external_id": "eid2_modifytaxonomygroup_addinto_modifiestaxo_nomygroup", - "terms": [] - }, - { - "id": "9fe9d8ac-e2d7-51cd-9be6-438a163626fc", - "name": "New taxonomy term", - "codename": "new_taxonomy_term", - "external_id": "my_new_term_addinto", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/request.json deleted file mode 100644 index acb8d34d8..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/response.json deleted file mode 100644 index 57e2fc15c..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["a924068edd50c44f"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:19 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6367-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207160.917656,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_addinto_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup/2_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index 39292bfdf..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"modifytaxonomygroup_remove_modifiestaxon_omygroup","codename":"c_modifytaxonomygroup_remove_modifiestaxon_omygroup","external_id":"eid_modifytaxonomygroup_remove_modifiestaxon_omygroup","terms":[{"name":"name1_modifytaxonomygroup_remove_modifiestaxon_omygroup","codename":"t_c_1modifytaxonomygroup_remove_modifiestaxon_omygroup","external_id":"eid1_modifytaxonomygroup_remove_modifiestaxon_omygroup","terms":[]},{"name":"name2_modifytaxonomygroup_remove_modifiestaxon_omygroup","codename":"t_c_2modifytaxonomygroup_remove_modifiestaxon_omygroup","external_id":"eid2_modifytaxonomygroup_remove_modifiestaxon_omygroup","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index 4bc82d179..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["968"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/8abb2ade-7a16-574e-8a3d-c99925b38cd0"]},{"Key":"X-Request-ID","Value":["06fe7a2bbe390748"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6348-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.805570,VS0,VE42"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["639"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index ab4d66802..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:20.8177998Z", - "id": "8abb2ade-7a16-574e-8a3d-c99925b38cd0", - "name": "modifytaxonomygroup_remove_modifiestaxon_omygroup", - "codename": "c_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "external_id": "eid_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "terms": [ - { - "id": "3be90ef4-d244-5185-a916-2d552c01d456", - "name": "name1_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "codename": "t_c_1modifytaxonomygroup_remove_modifiestaxon_omygroup", - "external_id": "eid1_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "terms": [] - }, - { - "id": "5895a663-6d14-54ea-83a4-a0849140b674", - "name": "name2_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "codename": "t_c_2modifytaxonomygroup_remove_modifiestaxon_omygroup", - "external_id": "eid2_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request.json deleted file mode 100644 index b70564182..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_remove_modifiestaxon_omygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request_content.json deleted file mode 100644 index 36cc82b5b..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"remove","reference":{"codename":"t_c_1modifytaxonomygroup_remove_modifiestaxon_omygroup"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response.json deleted file mode 100644 index 217277478..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["650"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["6478d0565a9aeb44"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6348-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.873336,VS0,VE47"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["99"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_remove_modifiestaxon_omygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response_content.json deleted file mode 100644 index fe42a8f77..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/1_PATCH/response_content.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:20.8959336Z", - "id": "8abb2ade-7a16-574e-8a3d-c99925b38cd0", - "name": "modifytaxonomygroup_remove_modifiestaxon_omygroup", - "codename": "c_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "external_id": "eid_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "terms": [ - { - "id": "5895a663-6d14-54ea-83a4-a0849140b674", - "name": "name2_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "codename": "t_c_2modifytaxonomygroup_remove_modifiestaxon_omygroup", - "external_id": "eid2_modifytaxonomygroup_remove_modifiestaxon_omygroup", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/request.json deleted file mode 100644 index 24f3b0b6d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_remove_modifiestaxon_omygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/response.json deleted file mode 100644 index 84d676fc6..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["a578400d0b16ab4a"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:20 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6348-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.946889,VS0,VE39"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_remove_modifiestaxon_omygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup/2_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request.json deleted file mode 100644 index a22954e5d..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request_content.json deleted file mode 100644 index e95ed37f3..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/request_content.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"modifytaxonomygroup_replace_modifiestaxo_nomygroup","codename":"c_modifytaxonomygroup_replace_modifiestaxo_nomygroup","external_id":"eid_modifytaxonomygroup_replace_modifiestaxo_nomygroup","terms":[{"name":"name1_modifytaxonomygroup_replace_modifiestaxo_nomygroup","codename":"t_c_1modifytaxonomygroup_replace_modifiestaxo_nomygroup","external_id":"eid1_modifytaxonomygroup_replace_modifiestaxo_nomygroup","terms":[]},{"name":"name2_modifytaxonomygroup_replace_modifiestaxo_nomygroup","codename":"t_c_2modifytaxonomygroup_replace_modifiestaxo_nomygroup","external_id":"eid2_modifytaxonomygroup_replace_modifiestaxo_nomygroup","terms":[]}]} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response.json deleted file mode 100644 index 73e11a323..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["977"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":201,"ReasonPhrase":"Created","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"Location","Value":["https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/d8c45b35-39c8-5377-8a20-bade992e8f2b"]},{"Key":"X-Request-ID","Value":["f62e4e1c39006b4b"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6354-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.120278,VS0,VE105"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["648"]}]},"Method":{"Method":"POST"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response_content.json deleted file mode 100644 index 9862ad2c2..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/0_POST/response_content.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:21.1928195Z", - "id": "d8c45b35-39c8-5377-8a20-bade992e8f2b", - "name": "modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "codename": "c_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "external_id": "eid_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "terms": [ - { - "id": "82914a13-aa4c-5397-977c-b3b786a77667", - "name": "name1_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "codename": "t_c_1modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "external_id": "eid1_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "terms": [] - }, - { - "id": "1d1c9ad9-b75c-5e36-9332-2c29f01d884a", - "name": "name2_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "codename": "t_c_2modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "external_id": "eid2_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request.json deleted file mode 100644 index e330b978f..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_replace_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request_content.json deleted file mode 100644 index f63c1c2af..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/request_content.json +++ /dev/null @@ -1 +0,0 @@ -[{"op":"replace","property_name":"terms","value":[{"name":"New taxonomy term name","terms":[]}],"reference":{"codename":"c_modifytaxonomygroup_replace_modifiestaxo_nomygroup"}}] \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response.json deleted file mode 100644 index 75f3521ab..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[{"Key":"Content-Length","Value":["508"]},{"Key":"Content-Type","Value":["application/json; charset=utf-8"]}]},"StatusCode":200,"ReasonPhrase":"OK","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["11bcb2efb4167643"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6354-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.258162,VS0,VE49"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":{"Headers":[{"Key":"Content-Type","Value":["application/json; charset=utf-8"]},{"Key":"Content-Length","Value":["177"]}]},"Method":{"Method":"PATCH"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_replace_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response_content.json deleted file mode 100644 index 040da1821..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/1_PATCH/response_content.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "last_modified": "2021-11-06T13:59:21.2709202Z", - "id": "d8c45b35-39c8-5377-8a20-bade992e8f2b", - "name": "modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "codename": "c_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "external_id": "eid_modifytaxonomygroup_replace_modifiestaxo_nomygroup", - "terms": [ - { - "id": "4e60019a-c299-482b-a58a-32f60c02c12c", - "name": "New taxonomy term name", - "codename": "new_taxonomy_term_name", - "terms": [] - } - ] -} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/request.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/request.json deleted file mode 100644 index 62cc3eaf0..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/request.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_replace_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/request_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/request_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/response.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/response.json deleted file mode 100644 index 248277526..000000000 --- a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/response.json +++ /dev/null @@ -1 +0,0 @@ -{"Version":"1.1","Content":{"Headers":[]},"StatusCode":204,"ReasonPhrase":"No Content","Headers":[{"Key":"Connection","Value":["keep-alive"]},{"Key":"X-Request-ID","Value":["f78524336f21384c"]},{"Key":"X-KC-Backend-Name","Value":["eu-01"]},{"Key":"Request-Context","Value":["appId=cid-v1:74c4cbc5-b55a-433a-8fa9-c5909b7039d7"]},{"Key":"Access-Control-Expose-Headers","Value":["Request-Context"]},{"Key":"Accept-Ranges","Value":["bytes"]},{"Key":"Date","Value":["Sat, 06 Nov 2021 13:59:21 GMT"]},{"Key":"Via","Value":["1.1 varnish"]},{"Key":"X-Served-By","Value":["cache-vie6354-VIE"]},{"Key":"X-Cache","Value":["MISS"]},{"Key":"X-Cache-Hits","Value":["0"]},{"Key":"X-Timer","Value":["S1636207161.331922,VS0,VE41"]}],"TrailingHeaders":[],"RequestMessage":{"Version":"1.1","VersionPolicy":0,"Content":null,"Method":{"Method":"DELETE"},"RequestUri":"https://manage.kontent.ai/v2/projects/{PROJECT_ID}/taxonomies/codename/c_modifytaxonomygroup_replace_modifiestaxo_nomygroup","Headers":[{"Key":"Authorization","Value":["{API_KEY}"]},{"Key":"X-KC-SDKID","Value":["{SDK_ID}"]}],"Properties":{},"Options":{}},"IsSuccessStatusCode":true} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/response_content.json b/Kentico.Kontent.Management.Tests/Data/ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup/2_DELETE/response_content.json deleted file mode 100644 index e69de29bb..000000000 diff --git a/Kentico.Kontent.Management.Tests/ManagementClientTests/CollectionTests.cs b/Kentico.Kontent.Management.Tests/ManagementClientTests/CollectionTests.cs deleted file mode 100644 index c48489004..000000000 --- a/Kentico.Kontent.Management.Tests/ManagementClientTests/CollectionTests.cs +++ /dev/null @@ -1,235 +0,0 @@ -using Kentico.Kontent.Management.Exceptions; -using Kentico.Kontent.Management.Models.Collections; -using Kentico.Kontent.Management.Models.Collections.Patch; -using Kentico.Kontent.Management.Models.Shared; -using System; -using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; -using static Kentico.Kontent.Management.Tests.ManagementClientTests.Scenario; - -namespace Kentico.Kontent.Management.Tests.ManagementClientTests -{ - [Trait("ManagementClient", "Collections")] - public class ClollectionTests - { - private readonly IManagementClient _client; - private readonly Scenario _scenario; - - public ClollectionTests(ITestOutputHelper output) - { - //this magic can be replace once new xunit is delivered - //https://github.com/xunit/xunit/issues/621 - var type = output.GetType(); - var testMember = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic); - var test = (ITest)testMember.GetValue(output); - - _scenario = new Scenario(test.TestCase.TestMethod.Method.Name); - _client = _scenario.Client; - } - [Fact] - - public async Task ListCollections_ListsCollections() - { - var response = await _client.ListCollectionsAsync(); - - Assert.NotNull(response); - Assert.NotNull(response.Collections.Where(x => x.Codename == EXISTING_COLLECTION_CODENAME)); - } - - [Fact] - public async void ModifyCollection_Remove_ById_RemovesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ById(newCollection.Id); - - var changes = new[] { new CollectionRemovePatchModel - { - CollectionIdentifier = identifier - }}; - - var exception = await Record.ExceptionAsync(async () => await _client.ModifyCollectionAsync(changes)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.ModifyCollectionAsync(changes)); - } - - Assert.Null(exception); - } - - [Fact] - public async void ModifyCollection_Remove_ByCodename_RemovesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ByCodename(newCollection.Codename); - - var changes = new[] { new CollectionRemovePatchModel - { - CollectionIdentifier = identifier - }}; - - var exception = await Record.ExceptionAsync(async () => await _client.ModifyCollectionAsync(changes)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.ModifyCollectionAsync(changes)); - } - - Assert.Null(exception); - } - - [Fact] - public async void ModifyCollection_Remove_ByExternalId_RemovesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ByExternalId(newCollection.ExternalId); - - var changes = new[] { new CollectionRemovePatchModel - { - CollectionIdentifier = identifier - }}; - - var exception = await Record.ExceptionAsync(async () => await _client.ModifyCollectionAsync(changes)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.ModifyCollectionAsync(changes)); - } - - Assert.Null(exception); - } - - [Fact] - public async void ModifyCollection_Move_After_MovesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ByExternalId(newCollection.ExternalId); - - var changes = new[] { new CollectionMovePatchModel - { - Reference = identifier, - After = Reference.ById(Guid.Empty) - }}; - - var collections = await _client.ModifyCollectionAsync(changes); - - //check that new collection is second it the list - index 1 - Assert.Equal(newCollection.Codename, collections.Collections.ToList()[1].Codename); - - //clean up - await RemoveCollection(newCollection.ExternalId); - } - - [Fact] - public async void ModifyCollection_Move_Before_MovesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ByExternalId(newCollection.ExternalId); - - var changes = new[] { new CollectionMovePatchModel - { - Reference = identifier, - Before = Reference.ById(Guid.Empty) - }}; - - var collections = await _client.ModifyCollectionAsync(changes); - - //check that new collection is second it the list - index 0 - Assert.Equal(newCollection.Codename, collections.Collections.ToList()[0].Codename); - - //clean up - await RemoveCollection(newCollection.ExternalId); - } - - [Fact] - public async void ModifyCollection_AddInto_MovesCollection() - { - var codename = "new_collection"; - - var expected = new CollectionCreateModel - { - Codename = codename, - ExternalId = "new_collection_external_id", - Name = "new_collection_name" - }; - - var change = new CollectionAddIntoPatchModel { Value = expected }; - - var collections = await _client.ModifyCollectionAsync(new[] { change }); - - var newCollection = collections.Collections.FirstOrDefault(x => x.Codename == codename); - - Assert.Equal(expected.Codename, newCollection.Codename); - Assert.Equal(expected.ExternalId, newCollection.ExternalId); - Assert.Equal(expected.Name, newCollection.Name); - - //clean up - await RemoveCollection(newCollection.ExternalId); - } - - [Fact] - public async void ModifyCollection_Replace_ReplacesCollection() - { - var newCollection = await CreateCollection(); - - var identifier = Reference.ByExternalId(newCollection.ExternalId); - - var changes = new[] { new CollectionReplacePatchModel - { - Reference = identifier, - PropertyName = PropertyName.Name, - Value = "newName" - }}; - - var collections = await _client.ModifyCollectionAsync(changes); - - var modifiedCollection = collections.Collections.FirstOrDefault(x => x.ExternalId == newCollection.ExternalId); - - Assert.Equal("newName", modifiedCollection.Name); - - //clean up - await RemoveCollection(newCollection.ExternalId); - } - - private async Task CreateCollection([CallerMemberName] string memberName = "") - { - var suffix = $"{memberName.ToLower().Substring(0, 40)}_{memberName.ToLower().Substring(40, Math.Min(memberName.Length - 40, 9))}"; - - var externalId = $"eid_{suffix}"; - - var change = new CollectionAddIntoPatchModel - { - Value = new CollectionCreateModel - { - Codename = $"c_{suffix}", - ExternalId = externalId, - Name = suffix - }, - After = Reference.ByCodename(EXISTING_COLLECTION_CODENAME) - }; - - return (await _client.ModifyCollectionAsync(new[] { change })).Collections.FirstOrDefault(x => x.ExternalId == externalId); - } - - private async Task RemoveCollection(string externalId) - { - var identifier = Reference.ByExternalId(externalId); - - var changes = new[] { new CollectionRemovePatchModel - { - CollectionIdentifier = identifier - }}; - - await _client.ModifyCollectionAsync(changes); - } - } -} diff --git a/Kentico.Kontent.Management.Tests/ManagementClientTests/TaxonomyGroupTests.cs b/Kentico.Kontent.Management.Tests/ManagementClientTests/TaxonomyGroupTests.cs deleted file mode 100644 index 053c96794..000000000 --- a/Kentico.Kontent.Management.Tests/ManagementClientTests/TaxonomyGroupTests.cs +++ /dev/null @@ -1,272 +0,0 @@ -using Kentico.Kontent.Management.Exceptions; -using Kentico.Kontent.Management.Models.Shared; -using Kentico.Kontent.Management.Models.TaxonomyGroups; -using Kentico.Kontent.Management.Models.TaxonomyGroups.Patch; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; -using static Kentico.Kontent.Management.Tests.ManagementClientTests.Scenario; - -namespace Kentico.Kontent.Management.Tests.ManagementClientTests -{ - [Trait("ManagementClient", "TaxonomyGroups")] - public class TaxonomyGroupTests - { - private readonly IManagementClient _client; - private readonly Scenario _scenario; - - public TaxonomyGroupTests(ITestOutputHelper output) - { - //this magic can be replace once new xunit is delivered - //https://github.com/xunit/xunit/issues/621 - var type = output.GetType(); - var testMember = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic); - var test = (ITest)testMember.GetValue(output); - - _scenario = new Scenario(test.TestCase.TestMethod.Method.Name); - _client = _scenario.Client; - } - - [Fact] - public async void ListTaxonomyGroups_ListsTaxonomyGroups() - { - var response = await _client.ListTaxonomyGroupsAsync(); - - Assert.NotNull(response); - Assert.NotNull(response.FirstOrDefault(x => x.Codename == EXISTING_TAXONOMY_GROUP_CODENAME)); - } - - [Fact] - public async void GetTaxonomyGroup_ById_GetsTaxonomyGroup() - { - var identifier = Reference.ById(EXISTING_TAXONOMY_GROUP_ID); - - var response = await _client.GetTaxonomyGroupAsync(identifier); - Assert.Equal(EXISTING_TAXONOMY_GROUP_ID, response.Id); - } - - [Fact] - public async void GetTaxonomyGroup_ByCodename_GetsTaxonomyGroup() - { - var identifier = Reference.ByCodename(EXISTING_TAXONOMY_GROUP_CODENAME); - - var response = await _client.GetTaxonomyGroupAsync(identifier); - Assert.Equal(EXISTING_TAXONOMY_GROUP_CODENAME, response.Codename); - } - - [Fact] - public async void GetTaxonomyGroup_ByExternalId_GetsTaxonomyGroup() - { - var externalid = "4ce421e9-c403-eee8-fdc2-74f09392a749"; - - - var identifier = Reference.ByExternalId(externalid); - - var response = await _client.GetTaxonomyGroupAsync(identifier); - Assert.Equal(externalid, response.ExternalId); - } - - [Fact] - public async void CreateTaxonomyGroup_CreatesTaxonomyGroup() - { - var group = new TaxonomyGroupCreateModel - { - Name = "taxonomiesCreate!", - Codename = "taxonomies_codename_create", - ExternalId = "taxonomies_codename_external_id__create", - Terms = new List - { - new TaxonomyTermCreateModel - { - Codename = "taxonomies_term_codename", - Name = "name", - ExternalId = "taxonomies_term_external_id", - Terms = Array.Empty() - } - } - }; - - var responseGroup = await _client.CreateTaxonomyGroupAsync(group); - - Assert.Equal(group.Name, responseGroup.Name); - Assert.Equal(group.Codename, responseGroup.Codename); - Assert.Equal(group.ExternalId, responseGroup.ExternalId); - Assert.Single(responseGroup.Terms); - - // Cleanup - var groupToClean = Reference.ByCodename(group.Codename); - await _client.DeleteTaxonomyGroupAsync(groupToClean); - } - - [Fact] - public async void DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup() - { - var responseGroup = await CreateTaxonomyGroup(); - - var identifier = Reference.ByCodename(responseGroup.Codename); - - - var exception = await Record.ExceptionAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - } - - Assert.Null(exception); - } - - [Fact] - public async void DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup() - { - var responseGroup = await CreateTaxonomyGroup(); - - var identifier = Reference.ById(responseGroup.Id); - - - var exception = await Record.ExceptionAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - } - - Assert.Null(exception); - } - - [Fact] - public async void DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup() - { - var responseGroup = await CreateTaxonomyGroup(); - - var identifier = Reference.ByExternalId(responseGroup.ExternalId); - - var exception = await Record.ExceptionAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.DeleteTaxonomyGroupAsync(identifier)); - } - - Assert.Null(exception); - } - - [Fact] - public async void ModifyTaxonomyGroup_AddInto_ModifiesTaxonomyGroup() - { - //Arrange - var group = await CreateTaxonomyGroup(); - - var termName = "New taxonomy term"; - var changes = new TaxonomyGroupAddIntoPatchModel - { - Value = new TaxonomyTermCreateModel - { - Name = termName, - ExternalId = "my_new_term_addinto", - Terms = Array.Empty() - } - }; - - //act - var modifiedType = await _client.ModifyTaxonomyGroupAsync(Reference.ByCodename(group.Codename), new List { changes }); - - //assert - Assert.Equal(3, modifiedType.Terms.Count()); - Assert.Single(modifiedType.Terms.Where(x => x.Name == termName)); - - // Cleanup - var groupClean = Reference.ByCodename(group.Codename); - await _client.DeleteTaxonomyGroupAsync(groupClean); - } - - [Fact] - public async void ModifyTaxonomyGroup_Replace_ModifiesTaxonomyGroup() - { - //Arrange - var group = await CreateTaxonomyGroup(); - - var termName = "New taxonomy term name"; - var changes = new TaxonomyGroupReplacePatchModel - { - PropertyName = PropertyName.Terms, - Reference = Reference.ByCodename(group.Codename), - Value = new List { - new TaxonomyGroupCreateModel - { - Name = termName, - Terms = Array.Empty() - } - } - }; - - //act - var modifiedType = await _client.ModifyTaxonomyGroupAsync(Reference.ByCodename(group.Codename), new List { changes }); - - //assert - Assert.Single(modifiedType.Terms.Where(x => x.Name == termName)); - - // Cleanup - var groupClean = Reference.ByCodename(group.Codename); - await _client.DeleteTaxonomyGroupAsync(groupClean); - } - - [Fact] - public async void ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup() - { - //Arrange - var group = await CreateTaxonomyGroup(); - - var changes = new TaxonomyGroupRemovePatchModel - { - Reference = Reference.ByCodename(group.Terms.First().Codename), - }; - - //act - var modifiedType = await _client.ModifyTaxonomyGroupAsync(Reference.ByCodename(group.Codename), new List { changes }); - - //assert - Assert.Single(modifiedType.Terms); - - // Cleanup - var groupClean = Reference.ByCodename(group.Codename); - await _client.DeleteTaxonomyGroupAsync(groupClean); - } - - private async Task CreateTaxonomyGroup([CallerMemberName] string memberName = "") - { - var suffix = $"{memberName.ToLower().Substring(0, 40)}_{memberName.ToLower().Substring(40, Math.Min(memberName.Length - 40, 9))}"; - - var group = new TaxonomyGroupCreateModel - { - Name = $"{suffix}", - Codename = $"c_{suffix}", - ExternalId = $"eid_{suffix}", - Terms = new List - { - new TaxonomyTermCreateModel - { - Codename = $"t_c_1{suffix}", - Name = $"name1_{suffix}", - ExternalId = $"eid1_{suffix}", - Terms = Array.Empty() - }, - new TaxonomyTermCreateModel - { - Codename = $"t_c_2{suffix}", - Name = $"name2_{suffix}", - ExternalId = $"eid2_{suffix}", - Terms = Array.Empty() - } - } - }; - - return await _client.CreateTaxonomyGroupAsync(group); - } - } -} diff --git a/Kentico.Kontent.Management.Tests/ManagementClientTests/WebhookTests.cs b/Kentico.Kontent.Management.Tests/ManagementClientTests/WebhookTests.cs deleted file mode 100644 index d6bb573d2..000000000 --- a/Kentico.Kontent.Management.Tests/ManagementClientTests/WebhookTests.cs +++ /dev/null @@ -1,199 +0,0 @@ -using Kentico.Kontent.Management.Exceptions; -using Kentico.Kontent.Management.Models.Shared; -using Kentico.Kontent.Management.Models.Webhooks; -using Kentico.Kontent.Management.Models.Webhooks.Triggers; -using System.Linq; -using System.Reflection; -using Xunit; -using Xunit.Abstractions; -using static Kentico.Kontent.Management.Tests.ManagementClientTests.Scenario; - -namespace Kentico.Kontent.Management.Tests.ManagementClientTests -{ - [Trait("ManagementClient", "Webhooks")] - public class WebhookTests - { - private readonly IManagementClient _client; - private readonly Scenario _scenario; - - public WebhookTests(ITestOutputHelper output) - { - //this magic can be replace once new xunit is delivered - //https://github.com/xunit/xunit/issues/621 - var type = output.GetType(); - var testMember = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic); - var test = (ITest)testMember.GetValue(output); - - _scenario = new Scenario(test.TestCase.TestMethod.Method.Name); - _client = _scenario.Client; - } - - [Fact] - public async void ListWebhooks_ListsWebhooks() - { - var response = await _client.ListWebhooksAsync(); - - Assert.NotNull(response); - Assert.NotNull(response.FirstOrDefault(x => x.Name == EXISTING_WEBHOOK_NAME)); - } - - [Fact] - public async void GetWebhook_ById_GetsWebhook() - { - var identifier = Reference.ById(EXISTING_WEBHOOK_ID); - - var response = await _client.GetWebhookAsync(identifier); - Assert.Equal(EXISTING_WEBHOOK_ID, response.Id); - } - - [Fact] - public async void CreateWebhookGroup_CreatesWebhookGroup() - { - var webhook = new WebhookCreateModel - { - Name = "webhookTestName", - Url = "http://url", - Enabled = true, - Secret = "secret", - Triggers = new WebhookTriggersModel - { - DeliveryApiContentChanges = new[] - { - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.LanguageVariant, - Operations = new [] { "publish", "unpublish" } - }, - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.Taxonomy, - Operations = new [] { "archive", "restore", "upsert" } - }, - } - } - }; - - var createdWebhook = await _client.CreateWebhookAsync(webhook); - - Assert.Equal(webhook.Name, createdWebhook.Name); - Assert.Equal(webhook.Url, createdWebhook.Url); - Assert.Equal(webhook.Secret, createdWebhook.Secret); - Assert.Equal(webhook.Enabled, createdWebhook.Enabled); - Assert.Equal(webhook.Triggers.DeliveryApiContentChanges.Count(), createdWebhook.Triggers.DeliveryApiContentChanges.Count()); - - // Cleanup - var webhookToClean = Reference.ById(createdWebhook.Id); - await _client.DeleteWebhookAsync(webhookToClean); - } - - [Fact] - public async void DeleteWebhook_ById_DeletesWebhook() - { - var webhook = new WebhookCreateModel - { - Name = "webhookTestName", - Url = "http://url", - Enabled = true, - Secret = "secret", - Triggers = new WebhookTriggersModel - { - DeliveryApiContentChanges = new[] - { - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.LanguageVariant, - Operations = new [] { "publish", "unpublish" } - }, - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.Taxonomy, - Operations = new [] { "archive", "restore", "upsert" } - }, - } - } - }; - - var createdWebhook = await _client.CreateWebhookAsync(webhook); - - - var exception = await Record.ExceptionAsync(async () => await _client.DeleteWebhookAsync(Reference.ById(createdWebhook.Id))); - - if (RunType != TestUtils.TestRunType.MockFromFileSystem) - { - await Assert.ThrowsAsync(async () => await _client.DeleteWebhookAsync(Reference.ById(createdWebhook.Id))); - } - - Assert.Null(exception); - } - - [Fact] - public async void EnableWebhook_ById_EnablesWebhook() - { - var webhook = new WebhookCreateModel - { - Name = "disabledWebhook", - Url = "http://url", - Enabled = false, - Secret = "secret", - Triggers = new WebhookTriggersModel - { - DeliveryApiContentChanges = new[] - { - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.Taxonomy, - Operations = new [] { "archive", "restore", "upsert" } - }, - } - } - }; - - var createdWebhook = await _client.CreateWebhookAsync(webhook); - - await _client.EnableWebhookAsync(Reference.ById(createdWebhook.Id)); - - var enabledWebhook = await _client.GetWebhookAsync(Reference.ById(createdWebhook.Id)); - - Assert.True(enabledWebhook.Enabled); - - // Cleanup - var webhookToClean = Reference.ById(createdWebhook.Id); - await _client.DeleteWebhookAsync(webhookToClean); - } - - [Fact] - public async void DisableWebhook_ById_DisablesWebhook() - { - var webhook = new WebhookCreateModel - { - Name = "enabledWebhook", - Url = "http://url", - Enabled = true, - Secret = "secret", - Triggers = new WebhookTriggersModel - { - DeliveryApiContentChanges = new[] - { - new DeliveryApiTriggerModel - { - Type = TriggerChangeType.LanguageVariant, - Operations = new [] { "publish", "unpublish" } - } - } - } - }; - - var createdWebhook = await _client.CreateWebhookAsync(webhook); - - await _client.DisableWebhookAsync(Reference.ById(createdWebhook.Id)); - - var enabledWebhook = await _client.GetWebhookAsync(Reference.ById(createdWebhook.Id)); - - Assert.False(enabledWebhook.Enabled); - - // Cleanup - var webhookToClean = Reference.ById(createdWebhook.Id); - await _client.DeleteWebhookAsync(webhookToClean); - } - } -} diff --git a/Kentico.Kontent.Management.Tests/Unit/Base/FileSystemFixture.cs b/Kentico.Kontent.Management.Tests/Unit/Base/FileSystemFixture.cs index 8c3f5e709..37e2036b4 100644 --- a/Kentico.Kontent.Management.Tests/Unit/Base/FileSystemFixture.cs +++ b/Kentico.Kontent.Management.Tests/Unit/Base/FileSystemFixture.cs @@ -69,7 +69,7 @@ public IManagementClient CreateMockClientWithResponse(string responseFileName) return CreateMockClient(mockedHttpClient); } - public IManagementClient CreateMockClientWithoutResposne() + public IManagementClient CreateMockClientWithoutResponse() { var mockedHttpClient = Substitute.For(); mockedHttpClient.SendAsync(Arg.Any(), Arg.Any(), Arg.Any(), Arg.Any(), Arg.Any>()) diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/CmApiV2.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/CmApiV2.cs index a9e447d43..d2c9e7449 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/CmApiV2.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/CmApiV2.cs @@ -59,6 +59,7 @@ public class CmApiV2 : IClassFixture public CmApiV2(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: cm_api_v2_delete_asset diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingAssets.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingAssets.cs index 6033cd668..fd0a300c5 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingAssets.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingAssets.cs @@ -22,6 +22,7 @@ public class ImportingAssets : IClassFixture public ImportingAssets(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: importing_assets_create_asset diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingContentModel.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingContentModel.cs index 5740de6e9..9ffc150de 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingContentModel.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingContentModel.cs @@ -21,6 +21,7 @@ public class ImportingContentModel : IClassFixture public ImportingContentModel(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: import_model_create_snippet diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingLinkedContent.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingLinkedContent.cs index 370bbf2ab..d2f81af05 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingLinkedContent.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingLinkedContent.cs @@ -20,6 +20,7 @@ public class ImportingLinkedContent : IClassFixture public ImportingLinkedContent(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: import_linked_create_item diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingRichText.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingRichText.cs index b38d7cb82..e4057c64a 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingRichText.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingRichText.cs @@ -23,6 +23,7 @@ public class ImportingRichText : IClassFixture public ImportingRichText(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: import_rich_create_button_type diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingToKenticoKontent.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingToKenticoKontent.cs index 1a8c1cfe0..ff3c5cdfa 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingToKenticoKontent.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/ImportingToKenticoKontent.cs @@ -22,6 +22,7 @@ public class ImportingToKenticoKontent : IClassFixture public ImportingToKenticoKontent(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } // DocSection: importing_create_item diff --git a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/Readme.cs b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/Readme.cs index 37509a659..1ae7cf29c 100644 --- a/Kentico.Kontent.Management.Tests/Unit/CodeSamples/Readme.cs +++ b/Kentico.Kontent.Management.Tests/Unit/CodeSamples/Readme.cs @@ -51,6 +51,7 @@ public class Readme : IClassFixture public Readme(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("CodeSamples"); } [Fact] diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Asset.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Asset.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Asset.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Asset.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/AssetFolders.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/AssetFolders.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/AssetFolders.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/AssetFolders.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Assets.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Assets.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Assets.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Assets.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Collections.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Collections.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Collections.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Collections.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ContentItem.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItem.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ContentItem.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItem.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ContentItems.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItems.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ContentItems.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItems.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ContentItemsWithComponents.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItemsWithComponents.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ContentItemsWithComponents.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentItemsWithComponents.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ContentType.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentType.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ContentType.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentType.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ContentTypes.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentTypes.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ContentTypes.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ContentTypes.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Empty.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Empty.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Empty.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Empty.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Language.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Language.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Language.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Language.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariant.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariant.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariant.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariant.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariants.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariants.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariants.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariants.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariantsOfType.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariantsOfType.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/LanguageVariantsOfType.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/LanguageVariantsOfType.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Languages.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Languages.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Languages.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Languages.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PatchAssetsFolderResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchAssetsFolderResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PatchAssetsFolderResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchAssetsFolderResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PatchContentTypeResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchContentTypeResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PatchContentTypeResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchContentTypeResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PatchLanguageResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchLanguageResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PatchLanguageResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchLanguageResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PatchSnippetResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchSnippetResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PatchSnippetResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchSnippetResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PatchTaxonomyGroupResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchTaxonomyGroupResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PatchTaxonomyGroupResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PatchTaxonomyGroupResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostAssetFoldersResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostAssetFoldersResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostAssetFoldersResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostAssetFoldersResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostAssetResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostAssetResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostAssetResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostAssetResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostFileResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostFileResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostFileResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostFileResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostItemResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostItemResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostItemResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostItemResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostLanguageResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostLanguageResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostLanguageResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostLanguageResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostSnippetResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostSnippetResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostSnippetResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostSnippetResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostTaxonomyGroupResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostTaxonomyGroupResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostTaxonomyGroupResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostTaxonomyGroupResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostTypeResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostTypeResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostTypeResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostTypeResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostValidateResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostValidateResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostValidateResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostValidateResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PostWebhookResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostWebhookResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PostWebhookResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PostWebhookResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Project.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Project.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Project.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Project.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PutAssetResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutAssetResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PutAssetResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutAssetResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PutItemResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutItemResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PutItemResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutItemResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/PutLanguageVariantResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutLanguageVariantResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/PutLanguageVariantResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/PutLanguageVariantResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleContentItem.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleContentItem.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleContentItem.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleContentItem.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleLanguageVariant.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleLanguageVariant.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleLanguageVariant.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleLanguageVariant.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleLanguageVariantUpdated.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleLanguageVariantUpdated.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ReadmeArticleLanguageVariantUpdated.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/ReadmeArticleLanguageVariantUpdated.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Snippet.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Snippet.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Snippet.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Snippet.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Snippets.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Snippets.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Snippets.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Snippets.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/TaxonomyGroup.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/TaxonomyGroup.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/TaxonomyGroup.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/TaxonomyGroup.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/TaxonomyGroups.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/TaxonomyGroups.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/TaxonomyGroups.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/TaxonomyGroups.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Webhook.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Webhook.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Webhook.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Webhook.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Webhooks.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Webhooks.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/Webhooks.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/Webhooks.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/WorkflowSteps.json b/Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/WorkflowSteps.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/WorkflowSteps.json rename to Kentico.Kontent.Management.Tests/Unit/Data/CodeSamples/WorkflowSteps.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/Collection/Collections.json b/Kentico.Kontent.Management.Tests/Unit/Data/Collection/Collections.json new file mode 100644 index 000000000..8561d1041 --- /dev/null +++ b/Kentico.Kontent.Management.Tests/Unit/Data/Collection/Collections.json @@ -0,0 +1,22 @@ +{ + "collections": [ + { + "id": "00000000-0000-0000-0000-000000000000", + "name": "Default", + "codename": "default" + }, + { + "id": "56ddd0f8-d3a3-5e36-9ccb-80dbe77aed23", + "external_id": "second_external_id", + "name": "Second collection", + "codename": "second_collection" + }, + { + "id": "a4c47429-505b-4917-a852-f03ac49bc304", + "external_id": "third_external_id", + "name": "third collection", + "codename": "third_collection" + } + ], + "last_modified": "2021-03-04T08:16:24.3620957Z" +} \ No newline at end of file diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/CreateLanguage_CreatesLanguage.json b/Kentico.Kontent.Management.Tests/Unit/Data/Language/CreateLanguage_CreatesLanguage.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/CreateLanguage_CreatesLanguage.json rename to Kentico.Kontent.Management.Tests/Unit/Data/Language/CreateLanguage_CreatesLanguage.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ListLanguages_ListsLanguages.json b/Kentico.Kontent.Management.Tests/Unit/Data/Language/ListLanguages_ListsLanguages.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ListLanguages_ListsLanguages.json rename to Kentico.Kontent.Management.Tests/Unit/Data/Language/ListLanguages_ListsLanguages.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/ModifyLanguages_Replace_ModifiesLanguages.json b/Kentico.Kontent.Management.Tests/Unit/Data/Language/ModifyLanguages_Replace_ModifiesLanguages.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/ModifyLanguages_Replace_ModifiesLanguages.json rename to Kentico.Kontent.Management.Tests/Unit/Data/Language/ModifyLanguages_Replace_ModifiesLanguages.json diff --git a/Kentico.Kontent.Management.Tests/Unit/Data/SingleLanguageResponse.json b/Kentico.Kontent.Management.Tests/Unit/Data/Language/SingleLanguageResponse.json similarity index 100% rename from Kentico.Kontent.Management.Tests/Unit/Data/SingleLanguageResponse.json rename to Kentico.Kontent.Management.Tests/Unit/Data/Language/SingleLanguageResponse.json diff --git a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/CollectionTests.cs b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/CollectionTests.cs new file mode 100644 index 000000000..8bb81f13e --- /dev/null +++ b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/CollectionTests.cs @@ -0,0 +1,165 @@ +using FluentAssertions; +using Kentico.Kontent.Management.Models.Collections; +using Kentico.Kontent.Management.Models.Collections.Patch; +using Kentico.Kontent.Management.Models.Shared; +using Kentico.Kontent.Management.Tests.Unit.Base; +using System; +using System.Threading.Tasks; +using Xunit; + +namespace Kentico.Kontent.Management.Tests.Unit.ManagementClientTests +{ + public class CollectionTests : IClassFixture + { + private FileSystemFixture _fileSystemFixture; + + public CollectionTests(FileSystemFixture fileSystemFixture) + { + _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("Collection"); + } + + [Fact] + public async Task ListCollections_ListsCollections() + { + var client = _fileSystemFixture.CreateMockClientWithResponse("Collections.json"); + + var expectedItems = _fileSystemFixture.GetExpectedResponse("Collections.json"); + + var response = await client.ListCollectionsAsync(); + + response.Should().BeEquivalentTo(expectedItems); + } + + + [Fact] + public async void ModifyCollection_Remove_ById_RemovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); + + var identifier = Reference.ById(Guid.NewGuid()); + + var changes = new[] { new CollectionRemovePatchModel + { + CollectionIdentifier = identifier + }}; + + Func deleteCollection = async () => await client.ModifyCollectionAsync(changes); + + await deleteCollection.Should().NotThrowAsync(); + } + + + [Fact] + public async void ModifyCollection_Remove_ByCodename_RemovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); + + var identifier = Reference.ByCodename("codename"); + + var changes = new[] { new CollectionRemovePatchModel + { + CollectionIdentifier = identifier + }}; + + Func deleteCollection = async () => await client.ModifyCollectionAsync(changes); + + await deleteCollection.Should().NotThrowAsync(); + } + + [Fact] + public async void ModifyCollection_Remove_ByExternalId_RemovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); + + var identifier = Reference.ByExternalId("externalId"); + + var changes = new[] { new CollectionRemovePatchModel + { + CollectionIdentifier = identifier + }}; + + Func deleteCollection = async () => await client.ModifyCollectionAsync(changes); + + await deleteCollection.Should().NotThrowAsync(); + } + + [Fact] + public async void ModifyCollection_Move_After_MovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithResponse("Collections.json"); + + var expectedItems = _fileSystemFixture.GetExpectedResponse("Collections.json"); + + var identifier = Reference.ByExternalId("second_external_id"); + + var changes = new[] { new CollectionMovePatchModel + { + Reference = identifier, + After = Reference.ById(Guid.Empty) + }}; + + var response = await client.ModifyCollectionAsync(changes); + + response.Should().BeEquivalentTo(expectedItems, options => options.WithStrictOrderingFor(x => x.Collections)); + } + + [Fact] + public async void ModifyCollection_Move_Before_MovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithResponse("Collections.json"); + + var expectedItems = _fileSystemFixture.GetExpectedResponse("Collections.json"); + + var identifier = Reference.ByExternalId("second_external_id"); + + var changes = new[] { new CollectionMovePatchModel + { + Reference = identifier, + Before = Reference.ByExternalId("third_external_id") + }}; + + var response = await client.ModifyCollectionAsync(changes); + + response.Should().BeEquivalentTo(expectedItems, options => options.WithStrictOrderingFor(x => x.Collections)); + } + + [Fact] + public async void ModifyCollection_AddInto_MovesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithResponse("Collections.json"); + + var expected = new CollectionCreateModel + { + Codename = "second_collection", + ExternalId = "second_external_id", + Name = "Second collection" + }; + + var change = new CollectionAddIntoPatchModel { Value = expected , After = Reference.ById(Guid.Empty) }; + + var response = await client.ModifyCollectionAsync(new[] { change }); + + response.Collections.Should().ContainEquivalentOf(expected); + } + + [Fact] + public async void ModifyCollection_Replace_ReplacesCollection() + { + var client = _fileSystemFixture.CreateMockClientWithResponse("Collections.json"); + + var identifier = Reference.ByExternalId("second_external_id"); + + var changes = new[] { new CollectionReplacePatchModel + { + Reference = identifier, + PropertyName = PropertyName.Name, + Value = "Second collection" + }}; + + var response = await client.ModifyCollectionAsync(changes); + + response.Collections.Should().ContainSingle(x => x.Name == "Second collection"); + } + } +} diff --git a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/LanguagesTests.cs b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/LanguagesTests.cs index 542e9a0f5..4cdfbf2af 100644 --- a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/LanguagesTests.cs +++ b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/LanguagesTests.cs @@ -16,6 +16,7 @@ public class LanguagesTests : IClassFixture public LanguagesTests(FileSystemFixture fileSystemFixture) { _fileSystemFixture = fileSystemFixture; + _fileSystemFixture.SetSubFolder("Language"); } [Fact] diff --git a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/TaxonomyGroupTests.cs b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/TaxonomyGroupTests.cs index dfb616ebc..d54bba8f7 100644 --- a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/TaxonomyGroupTests.cs +++ b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/TaxonomyGroupTests.cs @@ -88,7 +88,7 @@ public async void CreateTaxonomyGroup_CreatesTaxonomyGroup() [Fact] public async void DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); var identifier = Reference.ByCodename("codename"); @@ -100,7 +100,7 @@ public async void DeleteTaxonomyGroup_ByCodename_DeletesTaxonomyGroup() [Fact] public async void DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); var identifier = Reference.ById(Guid.NewGuid()); @@ -112,7 +112,7 @@ public async void DeleteTaxonomyGroup_ById_DeletesTaxonomyGroup() [Fact] public async void DeleteTaxonomyGroup_ByExternalId_DeletesTaxonomyGroup() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); var identifier = Reference.ByExternalId("externalId"); @@ -187,7 +187,7 @@ public async void ModifyTaxonomyGroup_Remove_ModifiesTaxonomyGroup() var response = await client.ModifyTaxonomyGroupAsync(Reference.ByCodename(taxonomy.Codename), new List { changes }); - response.Terms.Should().NotContain(term => term.Codename == "toBeRemvoed"); + response.Terms.Should().NotContain(term => term.Codename == "toBeRemoved"); } private TaxonomyGroupCreateModel ToCreateModel(TaxonomyGroupModel source) diff --git a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/WebhookTests.cs b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/WebhookTests.cs index 5642f1c5f..3278ebe2f 100644 --- a/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/WebhookTests.cs +++ b/Kentico.Kontent.Management.Tests/Unit/ManagementClientTests/WebhookTests.cs @@ -59,7 +59,7 @@ public async void CreateWebhookGroup_CreatesWebhookGroup() [Fact] public async void DeleteWebhook_ById_DeletesWebhook() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); var identifier = Reference.ById(Guid.NewGuid()); @@ -71,7 +71,7 @@ public async void DeleteWebhook_ById_DeletesWebhook() [Fact] public async void EnableWebhook_ById_EnablesWebhook() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); Func enableWebhook = async () => await client.EnableWebhookAsync(Reference.ById(Guid.NewGuid())); @@ -81,7 +81,7 @@ public async void EnableWebhook_ById_EnablesWebhook() [Fact] public async void DisableWebhook_ById_DisablesWebhook() { - var client = _fileSystemFixture.CreateMockClientWithoutResposne(); + var client = _fileSystemFixture.CreateMockClientWithoutResponse(); Func disableWebhook = async () => await client.DisableWebhookAsync(Reference.ById(Guid.NewGuid()));