feat: 实现管理后台 A3 注册群消息概览与 metrics 门禁
This commit is contained in:
@@ -214,11 +214,11 @@ func TestAPITokenAuthAndRestrictions(t *testing.T) {
|
||||
t.Fatalf("auth=%v", me["auth"])
|
||||
}
|
||||
|
||||
// 普通管理接口鉴权通过(业务 501)
|
||||
// 普通管理接口鉴权通过(A3 overview)
|
||||
res = doReq(t, tokClient, http.MethodGet, base+"/api/admin/overview", "", hdr)
|
||||
env = decodeEnv(t, res)
|
||||
if res.StatusCode != http.StatusNotImplemented {
|
||||
t.Fatalf("overview want 501 got %d %+v", res.StatusCode, env)
|
||||
if res.StatusCode != http.StatusOK || !env.OK {
|
||||
t.Fatalf("overview want 200 got %d %+v", res.StatusCode, env)
|
||||
}
|
||||
|
||||
// 禁止 password / tokens
|
||||
|
||||
Reference in New Issue
Block a user