Skip to content

Commit

Permalink
Reapply "add search api test"
Browse files Browse the repository at this point in the history
This reverts commit c163806.
  • Loading branch information
alxgomz committed Oct 2, 2024
1 parent 08553c2 commit 3e50c1d
Showing 1 changed file with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,82 @@
},
"response": []
},
{
"name": "search-api-validation",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.globals.get(\"url\");",
"",
"pm.test(\"canUseSearchAPITest\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.environment.set(\"totalItems\", pm.response.json().list.pagination.totalItems);",
"",
"console.log(\"Total Items:\"+pm.environment.get(\"totalItems\"));",
"",
"pm.test(\"totalItems\", function () {",
" pm.expect(pm.environment.get(\"totalItems\")).not.eql(0)",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "admin",
"type": "string"
},
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"query\": {\r\n \"query\": \"name:alfresco\"\r\n }\r\n}"
},
"url": {
"raw": "{{protocol}}://{{url}}/alfresco/api/-default-/public/search/versions/1/search",
"protocol": "{{protocol}}",
"host": [
"{{url}}"
],
"path": [
"alfresco",
"api",
"-default-",
"public",
"search",
"versions",
"1",
"search"
]
}
},
"response": []
},
{
"name": "search-cmis-validation",
"event": [
Expand Down

0 comments on commit 3e50c1d

Please sign in to comment.