mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 10:22:02 +08:00
【新增】增加API接口测试功能接口 为部分供应商API增加测试功能
This commit is contained in:
@@ -45,3 +45,12 @@ func TestGetSafeLineWAFSiteList(t *testing.T) {
|
||||
siteId := matchSafeLineSiteByColumn(res, "comment", "测得3")
|
||||
fmt.Println(siteId)
|
||||
}
|
||||
|
||||
func TestSafeLineAPITest(t *testing.T) {
|
||||
result := SafeLineAPITest("5")
|
||||
if result != nil {
|
||||
t.Fatalf("SafeLineAPITest failed: %v", result)
|
||||
} else {
|
||||
t.Log("SafeLineAPITest success")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user