fix the password in e2e

This commit is contained in:
rick
2024-06-20 01:52:10 +00:00
committed by Rick
parent 630a1fd3cd
commit 1ca9311625
2 changed files with 10 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
FROM ghcr.io/linuxsuren/api-testing:v0.0.17
FROM ghcr.io/linuxsuren/api-testing:master
#v0.0.17
WORKDIR /workspace
COPY . .

View File

@@ -11,29 +11,33 @@ items:
header:
Content-type: application/json
body: |
{"username":"admin","password":"admin"}
{"username":"admin","password":"21232f297a57a5a743894a0e4a801fc3"}
expect:
bodyFieldsExpect:
code: 200
- name: userPermission
request:
api: /orion-visor/api/infra/permission/user?s={{.login.data.token}}
api: /orion-visor/api/infra/permission/user
header:
Authorization: Bearer {{.login.data.token}}
expect:
bodyFieldsExpect:
code: 200
message: "success"
msg: "success"
- name: menu
request:
api: /orion-visor/api/infra/permission/menu
header:
Authorization: Bearer {{.login.data.token}}
expect:
bodyFieldsExpect:
code: 200
message: "success"
msg: "success"
- name: haveUnRead
request:
api: /orion-visor/api/infra/system-message/has-unread
header:
Authorization: Bearer {{.login.data.token}}
expect:
bodyFieldsExpect:
data: false