authelia/internal/suites/suite_short_timeouts_test.go

38 lines
744 B
Go
Raw Normal View History

package suites
import (
"testing"
"github.com/stretchr/testify/suite"
)
type ShortTimeoutsSuite struct {
*RodSuite
}
func NewShortTimeoutsSuite() *ShortTimeoutsSuite {
return &ShortTimeoutsSuite{
RodSuite: NewRodSuite(shortTimeoutsSuiteName),
}
}
func (s *ShortTimeoutsSuite) TestDefaultRedirectionURLScenario() {
suite.Run(s.T(), NewDefaultRedirectionURLScenario())
}
func (s *ShortTimeoutsSuite) TestInactivityScenario() {
suite.Run(s.T(), NewInactivityScenario())
}
func (s *ShortTimeoutsSuite) TestRegulationScenario() {
suite.Run(s.T(), NewRegulationScenario())
}
func TestShortTimeoutsSuite(t *testing.T) {
if testing.Short() {
t.Skip("skipping suite test in short mode")
}
suite.Run(t, NewShortTimeoutsSuite())
}