Documentation ¶
Index ¶
- Constants
- Variables
- func AddAndVerifyTestGDPFailure(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy, status string) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func AddAndVerifyTestGDPSuccess(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func AddTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func BuildAddAndVerifyAppSelectorTestGDP(t *testing.T) (*gdpalphav2.GlobalDeploymentPolicy, error)
- func BuildIngressKeyAndVerify(t *testing.T, timeoutExpected bool, op, cname, ns, name, hostname string)
- func BuildIngressObj(name, ns, svc, cname string, hostIPs map[string]string, withStatus bool, ...) *networkingv1.Ingress
- func BuildRouteKeyAndVerify(t *testing.T, timeoutExpected bool, op, cname, ns, name string)
- func BuildRouteObj(name, ns, svc, cname, host, ip string, withStatus bool) *routev1.Route
- func DeleteTestGDP(t *testing.T, ns, name string) error
- func GetTestDefaultGDPObject() *gdpalphav2.GlobalDeploymentPolicy
- func GetTestGSGraphFromName(t *testing.T, gsName string) *nodes.AviGSObjectGraph
- func VerifyGDPStatus(t *testing.T, ns, name, status string)
- func VerifyGSLBHostRuleStatus(t *testing.T, ns, name, status, errMsg string)
Constants ¶
View Source
const ( KubeBuilderAssetsEnv = "KUBEBUILDER_ASSETS" // list indices for k8s cluster, openshift cluster and config cluster (where AMKO is running) // Config cluster and K8s cluster are same here K8s = 0 ConfigCluster = 0 Oshift = 1 MaxClusters = 2 // AMKO CRD directory AmkoCRDs = "../../../../helm/amko/crds" AkoCRDs = "../../crds/ako" AviSystemNS = "avi-system" AviSecret = "avi-secret" GslbConfigName = "test-gc" GDPName = "test-gdp" K8sContext = "k8s" OshiftContext = "oshift" )
Variables ¶
View Source
var (
KubeBuilderAssetsVal string
)
Functions ¶
func AddAndVerifyTestGDPFailure ¶
func AddAndVerifyTestGDPFailure(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy, status string) (*gdpalphav2.GlobalDeploymentPolicy, error)
func AddAndVerifyTestGDPSuccess ¶
func AddAndVerifyTestGDPSuccess(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
func AddTestGDP ¶
func AddTestGDP(t *testing.T, gdp *gdpalphav2.GlobalDeploymentPolicy) (*gdpalphav2.GlobalDeploymentPolicy, error)
func BuildAddAndVerifyAppSelectorTestGDP ¶
func BuildAddAndVerifyAppSelectorTestGDP(t *testing.T) (*gdpalphav2.GlobalDeploymentPolicy, error)
func BuildIngressObj ¶
func BuildRouteKeyAndVerify ¶
func BuildRouteObj ¶
func GetTestDefaultGDPObject ¶
func GetTestDefaultGDPObject() *gdpalphav2.GlobalDeploymentPolicy
func GetTestGSGraphFromName ¶
func GetTestGSGraphFromName(t *testing.T, gsName string) *nodes.AviGSObjectGraph
func VerifyGDPStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.