Skip to content

Commit

Permalink
#24738 archive file postman test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Jun 27, 2023
1 parent d8befa3 commit 9fc4330
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions dotCMS/src/curl-test/WebAssets.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "b929423c-87c7-4fa0-a725-852e8b439dd4",
"_postman_id": "d1e460bd-5b8f-40b6-9bfd-20a784629378",
"name": "WebAssets",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "10041132"
Expand Down Expand Up @@ -829,14 +829,14 @@
"response": []
},
{
"name": "WebAsset :: Delete File in a Different Lang Expect 404",
"name": "WebAsset :: Delete File Expect Success",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code should be 404\", function () {",
" pm.response.to.have.status(404);",
"pm.test(\"Status code should be 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
Expand All @@ -863,7 +863,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"assetPath\":\"//default/newFolder/make-my-day.jpeg\",\n \"language\":\"es_CAN\",\n \"live\":true\n}",
"raw": "{\n \"assetPath\":\"//default/newFolder/make-my-day.jpeg\"\n}",
"options": {
"raw": {
"language": "json"
Expand All @@ -881,12 +881,12 @@
"assets"
]
},
"description": "Delete using a valid path but a different lang should also give you .404"
"description": "Simple delete file test"
},
"response": []
},
{
"name": "WebAsset :: Delete File Expect Success",
"name": "WebAsset :: Delete Folder Expect Success",
"event": [
{
"listen": "test",
Expand Down Expand Up @@ -920,30 +920,31 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"assetPath\":\"//default/newFolder/make-my-day.jpeg\",\n \"language\":\"en_US\",\n \"live\":true\n}",
"raw": "{\n \"assetPath\":\"//default/newFolder/\" \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{serverURL}}/api/v1/assets",
"raw": "{{serverURL}}/api/v1/assets/folder",
"host": [
"{{serverURL}}"
],
"path": [
"api",
"v1",
"assets"
"assets",
"folder"
]
},
"description": "Simple delete file test"
"description": "Delete folder"
},
"response": []
},
{
"name": "WebAsset :: Delete Folder Expect Success",
"name": "WebAsset :: Archive File Expect Success",
"event": [
{
"listen": "test",
Expand Down Expand Up @@ -977,26 +978,25 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"assetPath\":\"//default/newFolder/\" \n}",
"raw": "{\n \"assetPath\":\"//default/odisea.pdf\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{serverURL}}/api/v1/assets/folder",
"raw": "{{serverURL}}/api/v1/assets",
"host": [
"{{serverURL}}"
],
"path": [
"api",
"v1",
"assets",
"folder"
"assets"
]
},
"description": "Delete folder"
"description": "Simple delete file test"
},
"response": []
}
Expand Down

0 comments on commit 9fc4330

Please sign in to comment.