oshiftroutetests

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OshiftClient *oshiftfake.Clientset
)

Functions

func AddLabelToNamespace

func AddLabelToNamespace(key, value, namespace, modelName string, t *testing.T)

func SetUpTestForRoute

func SetUpTestForRoute(t *testing.T, modelName string, models ...string)

func TearDownTestForRoute

func TearDownTestForRoute(t *testing.T, modelName string)

func ValidateModelCommon

func ValidateModelCommon(t *testing.T, g *gomega.GomegaWithT) interface{}

func ValidateSniModel

func ValidateSniModel(t *testing.T, g *gomega.GomegaWithT, modelName string, redirect ...bool) interface{}

func VerifyRouteDeletion

func VerifyRouteDeletion(t *testing.T, g *gomega.WithT, aviModel interface{}, poolCount int, nsname ...string)

func VerifySecureRouteDeletion

func VerifySecureRouteDeletion(t *testing.T, g *gomega.WithT, modelName string, poolCount, snicount int, nsname ...string)

func VerifySniNode

func VerifySniNode(g *gomega.WithT, sniVS *avinodes.AviVsNode)

func VerifySniNodeNoCA

func VerifySniNodeNoCA(g *gomega.WithT, sniVS *avinodes.AviVsNode)

Types

type FakeRoute

type FakeRoute struct {
	Name        string
	Namespace   string
	Hostname    string
	Path        string
	ServiceName string
	Backend2    string
}

Candidate to move to lib

func (FakeRoute) ABRoute

func (rt FakeRoute) ABRoute(ratio ...int) *routev1.Route

func (FakeRoute) Route

func (rt FakeRoute) Route() *routev1.Route

func (FakeRoute) SecureABRoute

func (rt FakeRoute) SecureABRoute(ratio ...int) *routev1.Route

func (FakeRoute) SecureABRouteNoCertKey

func (rt FakeRoute) SecureABRouteNoCertKey(ratio ...int) *routev1.Route

func (FakeRoute) SecureRoute

func (rt FakeRoute) SecureRoute() *routev1.Route

func (FakeRoute) SecureRouteNoCertKey

func (rt FakeRoute) SecureRouteNoCertKey() *routev1.Route

Jump to

Keyboard shortcuts

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