Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for badRequest (0.2 sec)

  1. src/main/config/openapi/openapi-user.yaml

            '400':
              $ref: '#/components/responses/BadRequest'
            '401':
              $ref: '#/components/responses/Unauthorized'
            '404':
              $ref: '#/components/responses/NotFound'
            '500':
              $ref: '#/components/responses/InternalServerError'
    
    components:
      responses:
        BadRequest:
          description: Bad request
          content:
            application/json:
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 09 06:31:27 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    				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} {
    		shirt := &unstructured.Unstructured{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    		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
    		typedNoBodyInstance := &unstructured.Unstructured{
    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