mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
2e86f270cd
* Encode URL set to rd parameter. URL encoding that parameter solves PR #476. Some URL parameters set during redirection were magically disappearing after the redirection due to the authentication process. By using URL encoding, those parameters should not be stripped anymore. * Fix integration tests.
32 lines
614 B
Go
32 lines
614 B
Go
package suites
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type KubernetesSuite struct {
|
|
*SeleniumSuite
|
|
}
|
|
|
|
func NewKubernetesSuite() *KubernetesSuite {
|
|
return &KubernetesSuite{SeleniumSuite: new(SeleniumSuite)}
|
|
}
|
|
|
|
func (s *KubernetesSuite) TestOneFactorScenario() {
|
|
suite.Run(s.T(), NewOneFactorScenario())
|
|
}
|
|
|
|
func (s *KubernetesSuite) TestTwoFactorScenario() {
|
|
suite.Run(s.T(), NewTwoFactorScenario())
|
|
}
|
|
|
|
func (s *KubernetesSuite) TestRedirectionURLScenario() {
|
|
suite.Run(s.T(), NewRedirectionURLScenario())
|
|
}
|
|
|
|
func TestKubernetesSuite(t *testing.T) {
|
|
suite.Run(t, NewKubernetesSuite())
|
|
}
|