blob: 05416cf75d7bffb2419c825355e33007d316a39b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package suites
import (
"testing"
"github.com/stretchr/testify/suite"
)
type TwoFactorSuite struct {
*BaseSuite
}
func NewTwoFactorSuite() *TwoFactorSuite {
return &TwoFactorSuite{
BaseSuite: &BaseSuite{
Name: twoFactorSuiteName,
},
}
}
func (s *TwoFactorSuite) TestTwoFactorOneTimePasswordScenario() {
suite.Run(s.T(), NewTwoFactorOneTimePasswordScenario())
}
func (s *TwoFactorSuite) TestTwoFactorWebAuthnScenario() {
suite.Run(s.T(), NewTwoFactorWebAuthnScenario())
}
func (s *TwoFactorSuite) TestPasskeyScenario() {
suite.Run(s.T(), NewPasskeyScenario())
}
func TestTwoFactorSuite(t *testing.T) {
if testing.Short() {
t.Skip("skipping suite test in short mode")
}
suite.Run(t, NewTwoFactorSuite())
}
|