mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 05:31:44 +08:00
23 lines
348 B
Go
23 lines
348 B
Go
package cert
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type CertTestSuite struct {
|
|
suite.Suite
|
|
}
|
|
|
|
func TestCertTestSuite(t *testing.T) {
|
|
suite.Run(t, &CertTestSuite{})
|
|
}
|
|
|
|
func (s *CertTestSuite) TestGenerateSelfSigned() {
|
|
pem, key, err := GenerateSelfSigned([]string{"haozi.dev"})
|
|
s.Nil(err)
|
|
s.NotNil(pem)
|
|
s.NotNil(key)
|
|
}
|