2023-01-12 10:57:44 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewMultiCookieDomainSuite() *MultiCookieDomainSuite {
|
2023-01-25 04:11:05 +00:00
|
|
|
return &MultiCookieDomainSuite{
|
|
|
|
BaseSuite: &BaseSuite{
|
|
|
|
Name: multiCookieDomainSuiteName,
|
|
|
|
},
|
|
|
|
}
|
2023-01-12 10:57:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type MultiCookieDomainSuite struct {
|
2023-01-25 04:11:05 +00:00
|
|
|
*BaseSuite
|
2023-01-12 10:57:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *MultiCookieDomainSuite) TestMultiCookieDomainFirstDomainScenario() {
|
|
|
|
suite.Run(s.T(), NewMultiCookieDomainScenario(BaseDomain, Example2DotCom, true))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *MultiCookieDomainSuite) TestMultiCookieDomainSecondDomainScenario() {
|
|
|
|
suite.Run(s.T(), NewMultiCookieDomainScenario(Example2DotCom, BaseDomain, false))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *MultiCookieDomainSuite) TestMultiCookieDomainThirdDomainScenario() {
|
|
|
|
suite.Run(s.T(), NewMultiCookieDomainScenario(Example3DotCom, BaseDomain, true))
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestMultiCookieDomainSuite(t *testing.T) {
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping suite test in short mode")
|
|
|
|
}
|
|
|
|
|
|
|
|
suite.Run(t, NewMultiCookieDomainSuite())
|
|
|
|
}
|