2019-11-02 21:32:58 +07:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
)
|
|
|
|
|
2019-11-16 17:38:21 +07:00
|
|
|
type MariadbSuite struct {
|
2019-11-02 21:32:58 +07:00
|
|
|
*SeleniumSuite
|
|
|
|
}
|
|
|
|
|
2019-11-16 17:38:21 +07:00
|
|
|
func NewMariadbSuite() *MariadbSuite {
|
|
|
|
return &MariadbSuite{SeleniumSuite: new(SeleniumSuite)}
|
2019-11-02 21:32:58 +07:00
|
|
|
}
|
|
|
|
|
2019-12-06 04:35:03 +07:00
|
|
|
func (s *MariadbSuite) TestOneFactorScenario() {
|
|
|
|
suite.Run(s.T(), NewOneFactorScenario())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *MariadbSuite) TestTwoFactorScenario() {
|
|
|
|
suite.Run(s.T(), NewTwoFactorScenario())
|
|
|
|
}
|
|
|
|
|
2019-11-16 17:38:21 +07:00
|
|
|
func TestMariadbSuite(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, NewMariadbSuite())
|
2019-11-02 21:32:58 +07:00
|
|
|
}
|