2022-05-07 01:55:52 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
)
|
|
|
|
|
|
|
|
type CaddySuite struct {
|
|
|
|
*RodSuite
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCaddySuite() *CaddySuite {
|
2023-01-25 04:11:05 +00:00
|
|
|
return &CaddySuite{
|
|
|
|
RodSuite: NewRodSuite(caddySuiteName),
|
|
|
|
}
|
2022-05-07 01:55:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CaddySuite) Test1FAScenario() {
|
|
|
|
suite.Run(s.T(), New1FAScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CaddySuite) Test2FAScenario() {
|
|
|
|
suite.Run(s.T(), New2FAScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CaddySuite) TestCustomHeaders() {
|
|
|
|
suite.Run(s.T(), NewCustomHeadersScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CaddySuite) TestResetPasswordScenario() {
|
|
|
|
suite.Run(s.T(), NewResetPasswordScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestCaddySuite(t *testing.T) {
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping suite test in short mode")
|
|
|
|
}
|
|
|
|
|
|
|
|
suite.Run(t, NewCaddySuite())
|
|
|
|
}
|