Documentation ¶
Index ¶
- Constants
- Variables
- func GetRoutingAPIConfig(testConfig RoutingAPITestConfig) *config.Config
- func New(binPath string, args Args) *ginkgomon.Runner
- func RoutingAPISession(routingAPIBinPath string, args ...string) *gexec.Session
- func RoutingApiClientWithPort(routingAPIPort uint16, routingAPIIP string) routingAPI.Client
- func SetupOauthServer(uaaServerCert tls.Certificate) (*ghttp.Server, string)
- func StartLocket(locketPort uint16, locketBinPath string, databaseName string, caCert string) ifrit.Process
- func StopLocket(locketProcess ifrit.Process)
- func WriteConfigToTempFile(conf *config.Config) string
- type Args
- type DbAllocator
- type RoutingAPITestConfig
Constants ¶
View Source
const ( RoutingAPIIP = "127.0.0.1" Host = "localhost" Postgres = "postgres" PostgresUsername = "postgres" PostgresPassword = "" PostgresPort = 5432 MySQL = "mysql" MySQLUserName = "root" MySQLPassword = "password" MySQLPort = 3306 SystemDomain = "example.com" MetricsReportingIntervalString = "500ms" StatsdClientFlushIntervalString = "10ms" StatsdPort = 8125 )
Variables ¶
View Source
var ( Database = os.Getenv("DB") MetronConfig = config.MetronConfig{ Address: "1.2.3.4", Port: "4567", } )
Functions ¶
func GetRoutingAPIConfig ¶
func GetRoutingAPIConfig(testConfig RoutingAPITestConfig) *config.Config
func RoutingAPISession ¶
func RoutingApiClientWithPort ¶
func RoutingApiClientWithPort(routingAPIPort uint16, routingAPIIP string) routingAPI.Client
func SetupOauthServer ¶
func SetupOauthServer(uaaServerCert tls.Certificate) (*ghttp.Server, string)
func StartLocket ¶
func StopLocket ¶
func WriteConfigToTempFile ¶
Types ¶
type Args ¶
func NewRoutingAPIArgs ¶
type DbAllocator ¶
type DbAllocator interface { Create() (*config.SqlDB, error) Reset() error Delete() error // contains filtered or unexported methods }
func NewDbAllocator ¶
func NewDbAllocator() DbAllocator
func NewMySQLAllocator ¶
func NewMySQLAllocator() DbAllocator
func NewPostgresAllocator ¶
func NewPostgresAllocator() DbAllocator
type RoutingAPITestConfig ¶
type RoutingAPITestConfig struct { Port uint16 StatsdPort uint16 UAAPort uint16 AdminPort uint16 LocketConfig locket.ClientLocketConfig CACertsPath string Schema string UseSQL bool APIServerHTTPEnabled bool APIServerMTLSPort uint16 APIServerCertPath string APIServerKeyPath string APICAPath string }
func GetRoutingAPITestConfig ¶
func GetRoutingAPITestConfig( routingAPIPort uint16, routingAPIAdminPort uint16, routingAPImTLSPort uint16, oAuthServerPort uint16, uaaCACertsPath string, databaseName string, mTLSAPIServerCertPath string, mTLSAPIServerKeyPath string, apiCAPath string, locketConfig locket.ClientLocketConfig, ) RoutingAPITestConfig
Click to show internal directories.
Click to hide internal directories.