40 lines
692 B
Go
40 lines
692 B
Go
package suites
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type EnvoySuite struct {
|
|
*RodSuite
|
|
}
|
|
|
|
func NewEnvoySuite() *EnvoySuite {
|
|
return &EnvoySuite{RodSuite: new(RodSuite)}
|
|
}
|
|
|
|
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())
|
|
}
|