Skip to content
Snippets Groups Projects
Commit 70cf1153 authored by Mark Yan's avatar Mark Yan
Browse files

Merge branch 'slb/ps/update-utility-pagination' into 'master'

test: added limit parameter tests for Utility LS endpoint pagination

See merge request !688
parents fc7c7b28 d1d87530
No related branches found
No related tags found
1 merge request!688test: added limit parameter tests for Utility LS endpoint pagination
Pipeline #178385 failed
......@@ -2,7 +2,7 @@
**/node_modules/**
dist
# python
# python
*.pyc
# Log Files
......
......@@ -13058,6 +13058,13 @@
" resArray.sort();\r",
" pm.environment.set(\"resArray\",resArray);\r",
"\r",
" pm.test(\"Verify number of datasets returned should be less than or equal to limit parameter\", function () {\r",
" // Get the value of the limit parameter from the request URL\r",
" var limit = pm.request.url.query.get(\"limit\");\r",
" // Check if number of datasets returned is less than or equal to limit parameter\r",
" pm.expect(jsonData.datasets.length).to.be.at.most(parseInt(limit));\r",
"});\r",
"\r",
" // if there is a next page token re-execute this call for retrieve the new page otherwise check the results and move to the next call\r",
" const provider = pm.environment.get('serviceCloudProvider');\r",
" const pageTerminator = provider == 'google' ? \"\" : null;\r",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment