2019-11-02 21:32:58 +07:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2019-11-25 03:27:59 +07:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/suite"
|
2019-11-02 21:32:58 +07:00
|
|
|
)
|
|
|
|
|
|
|
|
type ShortTimeoutsSuite struct {
|
2021-11-05 20:14:42 +07:00
|
|
|
*RodSuite
|
2019-11-02 21:32:58 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewShortTimeoutsSuite() *ShortTimeoutsSuite {
|
2021-11-05 20:14:42 +07:00
|
|
|
return &ShortTimeoutsSuite{RodSuite: new(RodSuite)}
|
2019-11-02 21:32:58 +07:00
|
|
|
}
|
|
|
|
|
2020-02-01 19:54:50 +07:00
|
|
|
func (s *ShortTimeoutsSuite) TestDefaultRedirectionURLScenario() {
|
|
|
|
suite.Run(s.T(), NewDefaultRedirectionURLScenario())
|
|
|
|
}
|
|
|
|
|
2019-12-06 04:35:03 +07:00
|
|
|
func (s *ShortTimeoutsSuite) TestInactivityScenario() {
|
|
|
|
suite.Run(s.T(), NewInactivityScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ShortTimeoutsSuite) TestRegulationScenario() {
|
|
|
|
suite.Run(s.T(), NewRegulationScenario())
|
|
|
|
}
|
|
|
|
|
2019-11-02 21:32:58 +07:00
|
|
|
func TestShortTimeoutsSuite(t *testing.T) {
|
2021-03-14 14:08:26 +07:00
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping suite test in short mode")
|
|
|
|
}
|
|
|
|
|
2019-12-06 04:35:03 +07:00
|
|
|
suite.Run(t, NewShortTimeoutsSuite())
|
2019-11-02 21:32:58 +07:00
|
|
|
}
|