mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-19 20:45:37 +08:00
修改插件部署、新增多吉云cdn部署
This commit is contained in:
21
backend/internal/cert/deploy/doge/doge_test.go
Normal file
21
backend/internal/cert/deploy/doge/doge_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package doge
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPlugin(t *testing.T) {
|
||||
err := DeployCdn(map[string]interface{}{
|
||||
"access_key": "xxxxxx",
|
||||
"secret_key": "xxxxx",
|
||||
"key": "xxxxx",
|
||||
"cert": "xxxxx",
|
||||
"domain": "xx.com",
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "调用插件失败: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user