补充初始化DNS错误脱敏断言
This commit is contained in:
parent
bdf62d46ad
commit
ca10d65c7f
@ -355,7 +355,7 @@ func TestSetupApplyRejectsUnverifiedDNSConfiguration(t *testing.T) {
|
|||||||
request.Header.Set("Content-Type", "application/json")
|
request.Header.Set("Content-Type", "application/json")
|
||||||
response := httptest.NewRecorder()
|
response := httptest.NewRecorder()
|
||||||
server.Handler().ServeHTTP(response, request)
|
server.Handler().ServeHTTP(response, request)
|
||||||
if response.Code != http.StatusBadRequest || !strings.Contains(response.Body.String(), "DNS 验证令牌") {
|
if response.Code != http.StatusBadRequest || !strings.Contains(response.Body.String(), "DNS 验证状态无效") {
|
||||||
t.Fatalf("未验证 DNS 配置应被拒绝:%d %s", response.Code, response.Body.String())
|
t.Fatalf("未验证 DNS 配置应被拒绝:%d %s", response.Code, response.Body.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user