authelia/internal/suites/suite_envoy_test.go

42 lines
712 B
Go
Raw Permalink Normal View History

package suites
import (
"testing"
"github.com/stretchr/testify/suite"
)
type EnvoySuite struct {
*RodSuite
}
func NewEnvoySuite() *EnvoySuite {
return &EnvoySuite{
RodSuite: NewRodSuite(envoySuiteName),
}
}
func (s *EnvoySuite) Test1FAScenario() {
suite.Run(s.T(), New1FAScenario())
}
func (s *EnvoySuite) Test2FAScenario() {
suite.Run(s.T(), New2FAScenario())
}
func (s *EnvoySuite) TestCustomHeaders() {
suite.Run(s.T(), NewCustomHeadersScenario())
}
func (s *EnvoySuite) TestResetPasswordScenario() {
suite.Run(s.T(), NewResetPasswordScenario())
}
func TestEnvoySuite(t *testing.T) {
if testing.Short() {
t.Skip("skipping suite test in short mode")
}
suite.Run(t, NewEnvoySuite())
}