- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ErrorCase (0.12 sec)
-
pkg/apis/apps/validation/validation_test.go
} if len(errorCase.old.ObjectMeta.ResourceVersion) == 0 || len(errorCase.update.ObjectMeta.ResourceVersion) == 0 { t.Errorf("%q has incorrect test setup with no resource version set", testName) } // Run the tests if errs := ValidateDaemonSetUpdate(&errorCase.update, &errorCase.old, corevalidation.PodValidationOptions{}); len(errs) != errorCase.expectedErrNum {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
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) -
pkg/apis/core/validation/validation_test.go
}, Status: core.ReplicationControllerStatus{ Replicas: -3, }, }, }, } for testName, errorCase := range errorCases { if errs := ValidateReplicationControllerStatusUpdate(&errorCase.update, &errorCase.old); len(errs) == 0 { t.Errorf("expected failure: %s", testName) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)