Hurl checks update Friday November 21st 2025 (#36366)
* Hurl checks update Friday November 21st 2025 * Looks like someone changed how to handle the multi entity tests that I used earlier * updating warehouse check * same update for users api * and for group api * fix GUI admin/mails_template.php checks --------- Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
This commit is contained in:
parent
b57495f745
commit
54134eb0fa
6 changed files with 24 additions and 11 deletions
|
|
@ -100,11 +100,12 @@ HTTP 200
|
|||
# GET contracts DOLAPIENTITY: 2
|
||||
GET http://{{hostnport}}/api/index.php/contracts
|
||||
DOLAPIENTITY: 2
|
||||
HTTP 403
|
||||
HTTP 401
|
||||
[Asserts]
|
||||
jsonpath "$.error" exists
|
||||
jsonpath "$.error.code" == 403
|
||||
jsonpath "$.error.message" == "Forbidden"
|
||||
jsonpath "$.error.code" == 401
|
||||
jsonpath "$.error.message" contains "Unauthorized"
|
||||
jsonpath "$.error.message" contains "Token not valid (may be a typo or a wrong entity)"
|
||||
|
||||
# http://localhost:8080/api/index.php/contracts?sortfield=t.rowid&sortorder=ASC&limit=1
|
||||
|
||||
|
|
|
|||
|
|
@ -100,11 +100,12 @@ HTTP 200
|
|||
# GET emailtemplates DOLAPIENTITY: 2
|
||||
GET http://{{hostnport}}/api/index.php/emailtemplates
|
||||
DOLAPIENTITY: 2
|
||||
HTTP 403
|
||||
HTTP 401
|
||||
[Asserts]
|
||||
jsonpath "$.error" exists
|
||||
jsonpath "$.error.code" == 403
|
||||
jsonpath "$.error.message" == "Forbidden: denied access to email templates"
|
||||
jsonpath "$.error.code" == 401
|
||||
jsonpath "$.error.message" contains "Unauthorized"
|
||||
jsonpath "$.error.message" contains "Token not valid (may be a typo or a wrong entity)"
|
||||
|
||||
# GET id of first element
|
||||
GET http://{{hostnport}}/api/index.php/emailtemplates?limit=1&page=0
|
||||
|
|
|
|||
|
|
@ -67,4 +67,8 @@ HTTP 200
|
|||
GET http://{{hostnport}}/api/index.php/users/groups
|
||||
DOLAPIENTITY: 2
|
||||
HTTP 401
|
||||
{"error":{"code":401,"message":"Unauthorized: Error user not valid (not found with api key or bad status or bad validity dates) (conf->entity=2)"}}
|
||||
[Asserts]
|
||||
jsonpath "$.error" exists
|
||||
jsonpath "$.error.code" == 401
|
||||
jsonpath "$.error.message" contains "Unauthorized"
|
||||
jsonpath "$.error.message" contains "Token not valid (may be a typo or a wrong entity)"
|
||||
|
|
|
|||
|
|
@ -76,4 +76,8 @@ HTTP 200
|
|||
GET http://{{hostnport}}/api/index.php/users
|
||||
DOLAPIENTITY: 2
|
||||
HTTP 401
|
||||
{"error":{"code":401,"message":"Unauthorized: Error user not valid (not found with api key or bad status or bad validity dates) (conf->entity=2)"}}
|
||||
[Asserts]
|
||||
jsonpath "$.error" exists
|
||||
jsonpath "$.error.code" == 401
|
||||
jsonpath "$.error.message" contains "Unauthorized"
|
||||
jsonpath "$.error.message" contains "Token not valid (may be a typo or a wrong entity)"
|
||||
|
|
@ -106,8 +106,12 @@ HTTP 200
|
|||
# GET warehouses DOLAPIENTITY: 2
|
||||
GET http://{{hostnport}}/api/index.php/warehouses
|
||||
DOLAPIENTITY: 2
|
||||
HTTP 403
|
||||
{"error":{"code":403,"message":"Forbidden"}}
|
||||
HTTP 401
|
||||
[Asserts]
|
||||
jsonpath "$.error" exists
|
||||
jsonpath "$.error.code" == 401
|
||||
jsonpath "$.error.message" contains "Unauthorized"
|
||||
jsonpath "$.error.message" contains "Token not valid (may be a typo or a wrong entity)"
|
||||
|
||||
# http://localhost:8080/api/index.php/warehouses?sortfield=t.rowid&sortorder=ASC&limit=1
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ body contains "Language"
|
|||
body contains "Module/Application"
|
||||
body contains "Owner"
|
||||
body contains "Position"
|
||||
body contains "Private"
|
||||
body contains "Status"
|
||||
body contains "Subject"
|
||||
body contains "Type of template"
|
||||
|
|
|
|||
Loading…
Reference in a new issue