2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 00:39:32 +08:00
Files
panel/pkg/acme/ssl_test.go
2023-11-01 01:41:57 +08:00

23 lines
350 B
Go

package acme
import (
"testing"
"github.com/stretchr/testify/suite"
)
type SSLTestSuite struct {
suite.Suite
}
func TestSSLTestSuite(t *testing.T) {
suite.Run(t, &SSLTestSuite{})
}
func (s *SSLTestSuite) TestGenerateSelfSignedSSL() {
pem, key, err := GenerateSelfSignedSSL([]string{"haozi.dev"})
s.Nil(err)
s.NotNil(pem)
s.NotNil(key)
}