Compare commits

...

2 Commits

Author SHA1 Message Date
991e82cfda .gitignore 2024-10-30 18:27:09 +08:00
e559ca80ae test 2024-10-30 18:26:33 +08:00
2 changed files with 19 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,7 +2,9 @@
log log
vendor vendor
cert
/config.yml /config.yml
config.bak.yml
acme-mana.exe acme-mana.exe
acme-mana.pid acme-mana.pid
acme-mana.sock acme-mana.sock

16
test/task_test.go Normal file
View File

@ -0,0 +1,16 @@
package test
import (
"acme-mana/src"
"log"
"path"
"testing"
)
func TestA(t *testing.T) {
domain := src.GetAppConfig().Domains[0]
name := domain.Name
dir := src.GetAppConfig().CertDir
certDir := path.Join(dir, name)
log.Println(src.ValidExist(certDir, domain))
}