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