Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/proxy/healthcheck/healthcheck_test.go

    	}
    	if hcs.services[nsn3].endpoints != 7 {
    		t.Errorf("expected 7 endpoints, got %d", hcs.services[nsn3].endpoints)
    	}
    	// test the handlers
    	testHandler(hcs, nsn1, http.StatusOK, 9, t)
    	testHandler(hcs, nsn2, http.StatusOK, 3, t)
    	testHandler(hcs, nsn3, http.StatusOK, 7, t)
    
    	// sync new services
    	hcs.SyncServices(map[types.NamespacedName]uint16{
    		//nsn1: 9376, // remove it
    		nsn2: 12909, // leave it
    		nsn3: 11114, // change it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    	for i := 0; i < b.N; i++ {
    		recorder := httptest.NewRecorder()
    		SerializeObject("application/json", encoder, recorder, req, http.StatusOK, nil /* object */)
    		result := recorder.Result()
    		if result.StatusCode != http.StatusOK {
    			b.Fatalf("incorrect status code: got %v;  want: %v", result.StatusCode, http.StatusOK)
    		}
    	}
    }
    
    func BenchmarkSerializeObject1000PodsPB(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. cmd/healthcheck-handler.go

    		if opts.Maintenance {
    			writeResponse(w, http.StatusPreconditionFailed, nil, mimeNone)
    		} else {
    			writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
    		}
    		return
    	}
    	writeResponse(w, http.StatusOK, nil, mimeNone)
    }
    
    // ClusterReadCheckHandler returns if the server is ready for requests.
    func ClusterReadCheckHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "ClusterReadCheckHandler")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. cmd/server_test.go

    	c.Assert(response.StatusCode, http.StatusOK)
    
    	request, err = newTestSignedRequest(http.MethodHead, getHeadObjectURL(s.endPoint, bucketName, "my-object-directory/"),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/server_test.go

    			config:     simpleHTTPConfig,
    			statusCode: http.StatusOK,
    		},
    		{
    			name:       "http-livez",
    			probePath:  "app-health/hello-world/livez",
    			config:     simpleHTTPConfig,
    			statusCode: http.StatusOK,
    		},
    		{
    			name:       "http-livez-localhost",
    			probePath:  "app-health/hello-world/livez",
    			config:     simpleHTTPConfig,
    			statusCode: http.StatusOK,
    			podIP:      "localhost",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    		if err := assertResponseStatusCode(resultGot, http.StatusOK); err != nil {
    			t.Errorf("%s", err.Error())
    		}
    		resultGot = doer.Do(newClient(true), shouldUseNewConnection(t), "/echo?message=request-on-a-new-tcp-connection-should-succeed", time.Second)
    		if err := assertResponseStatusCode(resultGot, http.StatusOK); err != nil {
    			t.Errorf("%s", err.Error())
    		}
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go

    			requestPath:    "/foo/bar/baz",
    			expectedStatus: http.StatusOK,
    		},
    		{
    			desc:              "allow if already proxied once",
    			requestPath:       "/api/bar/baz",
    			expectedStatus:    http.StatusOK,
    			peerproxiedHeader: "true",
    		},
    		{
    			desc:                 "allow if unsynced informers",
    			requestPath:          "/api/bar/baz",
    			expectedStatus:       http.StatusOK,
    			informerFinishedSync: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/healthServer.go

    	w.WriteHeader(http.StatusOK)
    }
    
    func readyz(installReady, watchReady *atomic.Value) http.HandlerFunc {
    	return func(w http.ResponseWriter, _ *http.Request) {
    		if !installReady.Load().(bool) || !watchReady.Load().(bool) {
    			http.Error(w, http.StatusText(http.StatusServiceUnavailable), http.StatusServiceUnavailable)
    			return
    		}
    		w.WriteHeader(http.StatusOK)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. tests/integration/security/sds_ingress/ingress_test.go

    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    						t.NewSubTest("request with client certificates").Run(func(t framework.TestContext) {
    							// Send a TLS request with client certificates.
    							ingressutil.SendRequestOrFail(t, ing, host, credName, ingressutil.Mtls, tlsContext,
    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    					})
    			}
    		})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. cmd/bucket-handlers_test.go

    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 2.
    		// Delete deleted objects with quiet flag off.
    		2: {
    			bucket:             bucketName,
    			objects:            successRequest0,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedContent:    encodedSuccessResponse0,
    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 3.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top