2022-10-01 11:47:09 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
)
|
|
|
|
|
|
|
|
type EnvoySuite struct {
|
|
|
|
*RodSuite
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewEnvoySuite() *EnvoySuite {
|
2023-01-25 04:11:05 +00:00
|
|
|
return &EnvoySuite{
|
|
|
|
RodSuite: NewRodSuite(envoySuiteName),
|
|
|
|
}
|
2022-10-01 11:47:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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())
|
|
|
|
}
|