Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsBadRequest (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top