kubernetes/pkg/apis/networking/validation/validation_test.go

func makeValidNetworkPolicy() *networking.NetworkPolicy {}

type netpolTweak

func makeNetworkPolicyCustom(tweaks ...netpolTweak) *networking.NetworkPolicy {}

func makePort(proto *api.Protocol, port intstr.IntOrString, endPort int32) networking.NetworkPolicyPort {}

func TestValidateNetworkPolicy(t *testing.T) {}

func TestValidateNetworkPolicyUpdate(t *testing.T) {}

func TestValidateIngress(t *testing.T) {}

func TestValidateIngressRuleValue(t *testing.T) {}

func TestValidateIngressCreate(t *testing.T) {}

func TestValidateIngressUpdate(t *testing.T) {}

type netIngressTweak

func makeValidIngressClass(name, controller string, tweaks ...netIngressTweak) *networking.IngressClass {}

func makeIngressClassParams(apiGroup *string, kind, name string, scope, namespace *string) *networking.IngressClassParametersReference {}

func TestValidateIngressClass(t *testing.T) {}

func TestValidateIngressClassUpdate(t *testing.T) {}

func TestValidateIngressTLS(t *testing.T) {}

// TestValidateEmptyIngressTLS verifies that an empty TLS configuration can be
// specified, which ingress controllers may interpret to mean that TLS should be
// used with a default certificate that the ingress controller furnishes.
func TestValidateEmptyIngressTLS(t *testing.T) {}

func TestValidateIngressStatusUpdate(t *testing.T) {}

func TestValidateIPAddress(t *testing.T) {}

func TestValidateIPAddressUpdate(t *testing.T) {}

func TestValidateServiceCIDR(t *testing.T) {}

func TestValidateServiceCIDRUpdate(t *testing.T) {}