Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for StatusOK (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    		if err != nil {
    			t.Fatalf("Expected request: %q to get a response, but got error: %#v", secondRequestPathShouldWork, err)
    		}
    		if response.StatusCode != http.StatusOK {
    			t.Errorf("Expected HTTP status code: %d for request: %q, but got: %#v", http.StatusOK, secondRequestPathShouldWork, response)
    		}
    		select {
    		case <-secondHandlerDoneCh:
    		case <-time.After(wait.ForeverTestTimeout):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    	// http.StatusServiceUnavailable
    	// and api error codes
    	// Note that if we specify a versioned Status object here, we may need to
    	// create one for the tests, also
    	// Success:
    	// http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent
    	//
    	// test/integration/auth_test.go is currently the most comprehensive status code test
    
    	for _, s := range a.group.Serializer.SupportedMediaTypes() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. internal/s3select/select_test.go

    			if err = s3Select.Open(newStringRSC(in)); err != nil {
    				t.Fatal(err)
    			}
    
    			w := &testResponseWriter{}
    			s3Select.Evaluate(w)
    			s3Select.Close()
    			resp := http.Response{
    				StatusCode:    http.StatusOK,
    				Body:          io.NopCloser(bytes.NewReader(w.response)),
    				ContentLength: int64(len(w.response)),
    			}
    			res, err := minio.NewSelectResults(&resp, "testbucket")
    			if err != nil {
    				t.Error(err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    					t.Fatalf("%s: unexpected request: %s (%s)\n%#v", testName, p, req.URL, req)
    				}
    				header := http.Header{}
    				header.Set("Content-Type", runtime.ContentTypeJSON)
    				return &http.Response{
    					StatusCode: http.StatusOK,
    					Header:     header,
    					Body:       stringBody(body),
    				}, nil
    			}),
    		}, nil
    	}
    }
    
    func testData() (*v1.PodList, *v1.ServiceList) {
    	pods := &v1.PodList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  5. src/net/http/fs_test.go

    	testFileLen = 11
    )
    
    type wantRange struct {
    	start, end int64 // range [start,end)
    }
    
    var ServeFileRangeTests = []struct {
    	r      string
    	code   int
    	ranges []wantRange
    }{
    	{r: "", code: StatusOK},
    	{r: "bytes=0-4", code: StatusPartialContent, ranges: []wantRange{{0, 5}}},
    	{r: "bytes=2-", code: StatusPartialContent, ranges: []wantRange{{2, testFileLen}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  6. tests/integration/security/authz_test.go

    					}
    
    					for _, c := range cases {
    						c := c
    						testName := fmt.Sprintf("%s(%s)/http", c.host, c.allow)
    						t.NewSubTest(testName).Run(func(t framework.TestContext) {
    							wantCode := http.StatusOK
    							if !c.allow {
    								wantCode = http.StatusForbidden
    							}
    
    							opts := echo.CallOptions{
    								Port: echo.Port{
    									Protocol: protocol.HTTP,
    								},
    								HTTP: echo.HTTP{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  7. src/net/http/httputil/reverseproxy_test.go

    			// closenotify case should be instantaneous.
    			t.Error("Handler never saw CloseNotify")
    			return
    		case <-w.(http.CloseNotifier).CloseNotify():
    		}
    
    		w.WriteHeader(http.StatusOK)
    		w.Write([]byte(backendResponse))
    	}))
    
    	defer backend.Close()
    
    	backend.Config.ErrorLog = log.New(io.Discard, "", 0)
    
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server_test.go

    	resp, err := http.Get(httpURL)
    	if err != nil {
    		t.Fatalf("Got error GETing: %v", err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("expected status code %d, got %d", http.StatusOK, resp.StatusCode)
    	}
    	body, readErr := io.ReadAll(resp.Body)
    	if readErr != nil {
    		// copying the response body did not work
    		t.Fatalf("Cannot copy resp: %#v", readErr)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    		if err != nil {
    			t.Fatalf("Unexpected err: %#v", err)
    		}
    		rec := httptest.NewRecorder()
    		apiRouter.ServeHTTP(rec, req)
    		checkRespErr(rec, http.StatusOK)
    	} else {
    		// Multipart upload - each part is a new DummyDataGen
    		// (so the part lengths are required to verify the
    		// object when reading).
    
    		// Initiate mp upload
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    					APIName:   "PostPolicyBucket",
    					Bucket:    eventArgsList[i].Object.Bucket,
    					Object:    eventArgsList[i].Object.Name,
    					VersionID: eventArgsList[i].Object.VersionID,
    					Status:    http.StatusText(http.StatusOK),
    				})
    			}
    		}
    
    		return
    	}
    
    	if formValues.Get(postPolicyBucketTagging) != "" {
    		tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging)))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top