mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
8bab8d47ef
This change adds a new integration testing suite "CLI". The intent of this suite is to test, validate and capture coverage for Authelia's commands via the CLI.
29 lines
711 B
Go
29 lines
711 B
Go
package suites
|
|
|
|
import (
|
|
"github.com/stretchr/testify/suite"
|
|
"github.com/tebeka/selenium"
|
|
)
|
|
|
|
// SeleniumSuite is a selenium suite.
|
|
type SeleniumSuite struct {
|
|
suite.Suite
|
|
|
|
*WebDriverSession
|
|
}
|
|
|
|
// CommandSuite is a command line interface suite.
|
|
type CommandSuite struct {
|
|
suite.Suite
|
|
|
|
testArg string //nolint:structcheck // TODO: Remove when bug fixed: https://github.com/golangci/golangci-lint/issues/537.
|
|
coverageArg string //nolint:structcheck // TODO: Remove when bug fixed: https://github.com/golangci/golangci-lint/issues/537.
|
|
|
|
*DockerEnvironment
|
|
}
|
|
|
|
// WebDriver return the webdriver of the suite.
|
|
func (s *SeleniumSuite) WebDriver() selenium.WebDriver {
|
|
return s.WebDriverSession.WebDriver
|
|
}
|