- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for IsBadRequest (0.29 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go
} if IsNotFound(err) { t.Errorf("expected to not be %s", metav1.StatusReasonNotFound) } if IsInvalid(err) { t.Errorf("expected to not be %s", metav1.StatusReasonInvalid) } if IsBadRequest(err) { t.Errorf("expected to not be %s", metav1.StatusReasonBadRequest) } if IsForbidden(err) { t.Errorf("expected to not be %s", metav1.StatusReasonForbidden) } if IsServerTimeout(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 19.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go
w, err := shirtClient.Watch(ctx, metav1.ListOptions{FieldSelector: tc.fieldSelector}) if err == nil { w.Stop() t.Fatal("Expected error but got none") } if !apierrors.IsBadRequest(err) { t.Errorf("Expected BadRequest but got %v", err) } }) } }) for _, instance := range []string{shirtInstance1, shirtInstance2, shirtInstance3} {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 15:53:03 UTC 2024 - 27K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
actual := &testPatchType{} err := strategicPatchObject(context.TODO(), defaulter, original, []byte(patch), actual, &testPatchType{}, "") if !apierrors.IsBadRequest(err) { t.Errorf("expected HTTP status: BadRequest, got: %#v", apierrors.ReasonForError(err)) } if !strings.Contains(err.Error(), expectedError) { t.Errorf("expected %#v, got %#v", expectedError, err.Error()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go
t.Fatalf("unexpected non-error, expected invalid labels to be rejected: %v", err) } if status, ok := err.(errors.APIStatus); !ok { t.Fatalf("expected APIStatus error, but got: %#v", err) } else if !errors.IsBadRequest(err) { t.Fatalf("expected BadRequst error, but got: %v", errors.ReasonForError(err)) } else if !strings.Contains(status.Status().Message, "cannot be handled") {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go
// Case when typeless Unstructured object is passed typelessInstance := &unstructured.Unstructured{} if _, err := noxuResourceClient.Create(context.TODO(), typelessInstance, metav1.CreateOptions{}); !errors.IsBadRequest(err) { t.Errorf("expected badrequest for submitting empty object, got %#v", err) } // Case when apiVersion and Kind would be set up from GVK, but no other objects are present
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 11:35:33 UTC 2024 - 33.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
if got != nil || created { t.Errorf("expected nil object and no creation for object: %v", toUpdate) } if !errors.IsInvalid(err) && !errors.IsBadRequest(err) { t.Errorf("expected invalid or bad request error, got %v", err) } } } func (t *Tester) testUpdateWithWrongUID(obj runtime.Object, createFn CreateFunc, getFn GetFunc, opts metav1.UpdateOptions) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 55.8K bytes - Viewed (0)