mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
23 lines
350 B
Go
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)
|
|
}
|