testhelpers

package
v0.0.0-...-d879545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerConfig = `
logger:
  nocoloredoutput: true
  withtrace: false
  level: debug
`
	IntrospectorHost   = `localhost:8001`
	IntrospectorDSN    = `http://` + IntrospectorHost
	IntropsectorConfig = `
introspector:
  dsn: ` + IntrospectorDSN + `
  endpoint: /oauth2/introspect
  contenttype: application/x-www-form-urlencoded
  method: POST
  validmarker: '"active":true'
  bodytemplate: "token_type_hint=access_token&token={{.Token}}"
  cookiename: ["access-token"]
  queryparamname: ["access_token"]
  poolsize: 50
  pooltimeout: 10s
`

	ProxyConfig = `` /* 1725-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func LoadTestConfig

func LoadTestConfig() (*cfg.Config, error)

func LoadTestConfigIntrospector

func LoadTestConfigIntrospector() (*introspection.Config, error)

func LoadTestConfigLogger

func LoadTestConfigLogger() (*logger.Config, error)

func LoadTestConfigProxy

func LoadTestConfigProxy() (*httpproxy.Config, error)

func LoadTestYAML

func LoadTestYAML() error

Types

This section is empty.

Directories

Path Synopsis
Package resilience provides helpers for dealing with resilience.
Package resilience provides helpers for dealing with resilience.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL