Documentation ¶
Index ¶
- type VirtualServiceTester
- func (t *VirtualServiceTester) AddRouteTo(host string, dest string)
- func (t *VirtualServiceTester) AddRouteToIfHeaderIs(host string, dest, header, value string)
- func (t *VirtualServiceTester) AddRouteToWithAbortFault(host string, dest, header, value string)
- func (t *VirtualServiceTester) AddRouteToWithDelayFault(host, dest string, header, value string, timeout float32)
- func (t *VirtualServiceTester) AddRouteToWithMirror(host, dest string, mirrorDest, mirrorSubset string)
- func (t *VirtualServiceTester) AddRouteToWithTimeout(host string, dest string, timeout float32)
- func (t *VirtualServiceTester) AddWeightedRoutes(host string, dests []string)
- func (t *VirtualServiceTester) ApplyRoute()
- func (t *VirtualServiceTester) ClearRoute(host string)
- func (t *VirtualServiceTester) Create()
- func (t *VirtualServiceTester) DoAccess(code int, has, hasNo []string, args ...string) string
- func (t *VirtualServiceTester) ValidateAccessible(has string, args ...string)
- func (t *VirtualServiceTester) ValidateInaccessible(code int, hasNo string, args ...string)
- func (t *VirtualServiceTester) ValidateSingleVersionAccess(has, hasNo []string, args ...string)
- func (t *VirtualServiceTester) ValidateTimeout(longerThan, shorterThan time.Duration, f func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtualServiceTester ¶
type VirtualServiceTester struct { // Host -> config Configs map[string]*framework.VirtualServiceConfig // Valid versions is: v1, v2, v3 Versions []string // contains filtered or unexported fields }
func NewVirtualServiceTester ¶
func NewVirtualServiceTester(f *framework.Framework, versions []string, opts ...bool) *VirtualServiceTester
opts: needNginx
func (*VirtualServiceTester) AddRouteTo ¶
func (t *VirtualServiceTester) AddRouteTo(host string, dest string)
func (*VirtualServiceTester) AddRouteToIfHeaderIs ¶
func (t *VirtualServiceTester) AddRouteToIfHeaderIs(host string, dest, header, value string)
func (*VirtualServiceTester) AddRouteToWithAbortFault ¶
func (t *VirtualServiceTester) AddRouteToWithAbortFault(host string, dest, header, value string)
func (*VirtualServiceTester) AddRouteToWithDelayFault ¶
func (t *VirtualServiceTester) AddRouteToWithDelayFault(host, dest string, header, value string, timeout float32)
func (*VirtualServiceTester) AddRouteToWithMirror ¶
func (t *VirtualServiceTester) AddRouteToWithMirror(host, dest string, mirrorDest, mirrorSubset string)
func (*VirtualServiceTester) AddRouteToWithTimeout ¶
func (t *VirtualServiceTester) AddRouteToWithTimeout(host string, dest string, timeout float32)
func (*VirtualServiceTester) AddWeightedRoutes ¶
func (t *VirtualServiceTester) AddWeightedRoutes(host string, dests []string)
func (*VirtualServiceTester) ApplyRoute ¶
func (t *VirtualServiceTester) ApplyRoute()
func (*VirtualServiceTester) ClearRoute ¶
func (t *VirtualServiceTester) ClearRoute(host string)
func (*VirtualServiceTester) Create ¶
func (t *VirtualServiceTester) Create()
func (*VirtualServiceTester) DoAccess ¶
func (t *VirtualServiceTester) DoAccess(code int, has, hasNo []string, args ...string) string
func (*VirtualServiceTester) ValidateAccessible ¶
func (t *VirtualServiceTester) ValidateAccessible(has string, args ...string)
func (*VirtualServiceTester) ValidateInaccessible ¶
func (t *VirtualServiceTester) ValidateInaccessible(code int, hasNo string, args ...string)
func (*VirtualServiceTester) ValidateSingleVersionAccess ¶
func (t *VirtualServiceTester) ValidateSingleVersionAccess(has, hasNo []string, args ...string)
func (*VirtualServiceTester) ValidateTimeout ¶
func (t *VirtualServiceTester) ValidateTimeout(longerThan, shorterThan time.Duration, f func())
Click to show internal directories.
Click to hide internal directories.