authelia/internal/suites/suite_caddy_test.go

40 lines
692 B
Go
Raw Normal View History

2022-05-07 08:55:52 +07:00
package suites
import (
"testing"
"github.com/stretchr/testify/suite"
)
type CaddySuite struct {
*RodSuite
}
func NewCaddySuite() *CaddySuite {
return &CaddySuite{RodSuite: new(RodSuite)}
}
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())
}