Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErrorCase (0.12 sec)

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

    					Ingress:     []networking.NetworkPolicyIngressRule{},
    				},
    			},
    		},
    	}
    
    	for testName, errorCase := range errorCases {
    		errorCase.old.ObjectMeta.ResourceVersion = "1"
    		errorCase.update.ObjectMeta.ResourceVersion = "1"
    		if errs := ValidateNetworkPolicyUpdate(&errorCase.update, &errorCase.old, NetworkPolicyValidationOptions{false}); len(errs) == 0 {
    			t.Errorf("expected failure: %s", testName)
    		}
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  2. pkg/apis/autoscaling/validation/validation_test.go

    	zeroMinReplicasCases := prepareMinReplicasCases(t, 0)
    	errorMsg := "must be greater than or equal to 1"
    
    	for _, errorCase := range zeroMinReplicasCases {
    		errs := ValidateHorizontalPodAutoscaler(&errorCase)
    		if len(errs) == 0 {
    			t.Errorf("expected failure for %q", errorMsg)
    		} else if !strings.Contains(errs[0].Error(), errorMsg) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
Back to top