Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for badRequest (0.22 sec)

  1. cmd/handler-utils.go

    			Code:           "XMinioAdminVersionMismatch",
    			Description:    desc,
    			HTTPStatusCode: http.StatusUpgradeRequired,
    		}, r.URL)
    	default:
    		writeErrorResponse(r.Context(), w, APIError{
    			Code: "BadRequest",
    			Description: fmt.Sprintf("An error occurred when parsing the HTTP request %s at '%s'",
    				r.Method, r.URL.Path),
    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. 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())
    	}
    }
    
    func TestJSONPatch(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/storage/eviction_test.go

    			eviction:     &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "t7", Namespace: "default"}, DeleteOptions: metav1.NewDeleteOptions(0)},
    			expectError:  "name in URL does not match name in Eviction object: BadRequest",
    			podName:      "t7",
    		},
    		{
    			name: "matching pdbs with no disruptions allowed, pod running, empty selector",
    			pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top