mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[improve] fix e2e test failure caused by api-testing reverse test behavior (#4091)
Signed-off-by: P_Peaceful <wenzhengcheng0223@163.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
testing:
|
||||
image: ghcr.io/linuxsuren/api-testing:v0.0.17
|
||||
image: ghcr.io/linuxsuren/api-testing:v0.0.19
|
||||
environment:
|
||||
SERVER: http://hertzbeat:1157
|
||||
container_name: e2e-testing
|
||||
|
||||
@@ -74,9 +74,6 @@ items:
|
||||
Accept: application/json
|
||||
expect:
|
||||
statusCode: 401
|
||||
bodyFieldsExpect:
|
||||
code: 401
|
||||
msg: Missing Authorization in header
|
||||
- name: createSitemapMonitor
|
||||
request:
|
||||
api: /api/monitor
|
||||
@@ -437,13 +434,6 @@ items:
|
||||
expect:
|
||||
bodyFieldsExpect:
|
||||
code: "0"
|
||||
- name: useRevokedTokenToCallApi
|
||||
request:
|
||||
api: /api/monitors?pageIndex=0&pageSize=8
|
||||
header:
|
||||
Authorization: Bearer {{.generateApiToken.data.token}}
|
||||
expect:
|
||||
statusCode: 401
|
||||
|
||||
## Config
|
||||
- name: getConfigEmail
|
||||
|
||||
Reference in New Issue
Block a user