authelia/internal/suites/suite_multi_cookie_domain_t...

40 lines
950 B
Go

package suites
import (
"testing"
"github.com/stretchr/testify/suite"
)
func NewMultiCookieDomainSuite() *MultiCookieDomainSuite {
return &MultiCookieDomainSuite{
BaseSuite: &BaseSuite{
Name: multiCookieDomainSuiteName,
},
}
}
type MultiCookieDomainSuite struct {
*BaseSuite
}
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())
}