authelia/internal/suites/suite_caddy_test.go

42 lines
712 B
Go
Raw Permalink Normal View History

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