【新增】增加API接口测试功能接口 为部分供应商API增加测试功能

This commit is contained in:
wantoper
2025-05-20 17:27:42 +08:00
parent 4a2f500006
commit 77d82ad8a0
18 changed files with 284 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
package deploy
import "testing"
import (
"testing"
)
func TestBTSite(t *testing.T) {
cfg := map[string]any{
@@ -43,3 +45,12 @@ func TestBTDockerSite(t *testing.T) {
err := DeployBtDockerSite(cfg)
println(err)
}
func TestBtPanelAPITest(t *testing.T) {
result := BtPanelAPITest("4")
if result != nil {
t.Fatalf("SSHAPITest failed: %v", result)
} else {
t.Log("SSHAPITest success")
}
}