Documentation
¶
Overview ¶
Package unit contains logic to run the unit tests against istio configuration. It intends to replicates istio logic when it comes to matching requests and defining its destinations. Once the destinations are found for a given test case, it will try to assert with the expected results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRoute ¶ added in v0.1.1
func GetRoute(input parser.Input, virtualServices []*v1alpha3.VirtualService) (*networkingv1alpha3.HTTPRoute, error)
GetRoute returns the route that matched a given input.
Types ¶
type ExtendedStringMatch ¶
type ExtendedStringMatch struct {
*v1alpha3.StringMatch
}
ExtendedStringMatch copies istio ExtendedStringMatch definition and extends it to add helper methods.
func (ExtendedStringMatch) IsEmpty ¶
func (sm ExtendedStringMatch) IsEmpty() bool
IsEmpty returns true if struct is empty
Click to show internal directories.
Click to hide internal directories.