mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
af5754bcab
* Fix dev workflow. * Fix dev workflow. * Cover Remote-User and Remote-Groups using Traefik. * Cover Remote-User and Remote-Groups using HAProxy. * Fix redirection after unauthorized response when using HAProxy. Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
32 lines
577 B
Go
32 lines
577 B
Go
package suites
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type HAProxySuite struct {
|
|
*SeleniumSuite
|
|
}
|
|
|
|
func NewHAProxySuite() *HAProxySuite {
|
|
return &HAProxySuite{SeleniumSuite: new(SeleniumSuite)}
|
|
}
|
|
|
|
func (s *HAProxySuite) TestOneFactorScenario() {
|
|
suite.Run(s.T(), NewOneFactorScenario())
|
|
}
|
|
|
|
func (s *HAProxySuite) TestTwoFactorScenario() {
|
|
suite.Run(s.T(), NewTwoFactorScenario())
|
|
}
|
|
|
|
func (s *HAProxySuite) TestCustomHeaders() {
|
|
suite.Run(s.T(), NewCustomHeadersScenario())
|
|
}
|
|
|
|
func TestHAProxySuite(t *testing.T) {
|
|
suite.Run(t, NewHAProxySuite())
|
|
}
|