36 lines
649 B
Go
36 lines
649 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) {
|
|
if testing.Short() {
|
|
t.Skip("skipping suite test in short mode")
|
|
}
|
|
|
|
suite.Run(t, NewHAProxySuite())
|
|
}
|