Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for StatusOK (0.11 sec)

  1. tests/integration/telemetry/policy/traffic_allow_any_test.go

    					Labels: map[string]string{
    						"reporter":                 "source",
    						"destination_service_name": "PassthroughCluster",
    						"response_code":            "200",
    					},
    				},
    				StatusCode: http.StatusOK,
    				Protocol:   "HTTP/1.1",
    			},
    		},
    		{
    			Name:     "HTTP H2 Traffic",
    			PortName: "http",
    			HTTP2:    true,
    			Expected: Expected{
    				Query: prometheus.Query{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 18 18:03:23 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  2. samples/jwt-server/src/main_test.go

    	if err != nil {
    		t.Fatalf(err.Error())
    	}
    	resp, err := httpClient.Do(httpReq)
    	if err != nil {
    		t.Fatalf(err.Error())
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Fatalf("Expected to get %d, got %d", http.StatusOK, resp.StatusCode)
    	}
    }
    
    func TestJwtHTTPSServer(t *testing.T) {
    	var (
    		serverKey  = "../testdata/server.key"
    		serverCert = "../testdata/server.crt"
    	)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 23 16:58:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/net/http/pprof/pprof_test.go

    		{"/debug/pprof/heap", Index, http.StatusOK, "application/octet-stream", `attachment; filename="heap"`, nil},
    		{"/debug/pprof/heap?debug=1", Index, http.StatusOK, "text/plain; charset=utf-8", "", nil},
    		{"/debug/pprof/cmdline", Cmdline, http.StatusOK, "text/plain; charset=utf-8", "", nil},
    		{"/debug/pprof/profile?seconds=1", Profile, http.StatusOK, "application/octet-stream", `attachment; filename="profile"`, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/healthServer_test.go

    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusServiceUnavailable)
    
    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    	assert.Equal(t, watchReady.Load(), true)
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. 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)
  6. pkg/webhooks/validation/server/server_test.go

    			contentType:     "application/json",
    			wantAllowed:     true,
    			wantStatusCode:  http.StatusOK,
    			allowedResponse: true,
    		},
    		{
    			name:            "valid(v1 version)",
    			body:            validReviewV1,
    			contentType:     "application/json",
    			wantAllowed:     true,
    			wantStatusCode:  http.StatusOK,
    			allowedResponse: true,
    		},
    		{
    			name:           "invalid",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/watch_termination_test.go

    		},
    		{
    			name:               "request is not a WATCH, not added into wait group",
    			requestInfo:        &apirequest.RequestInfo{Verb: "get"},
    			handlerInvoked:     1,
    			statusCodeExpected: http.StatusOK,
    		},
    		{
    			name:                    "request is a WATCH, wait group is in waiting mode",
    			requestInfo:             &apirequest.RequestInfo{Verb: "watch"},
    			wg:                      &fakeRequestWaitGroup{waiting: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:49 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. pkg/kubelet/client/kubelet_client_test.go

    		t.Error("rt should not be nil")
    	}
    }
    
    func TestMakeInsecureTransport(t *testing.T) {
    	testServer := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		w.WriteHeader(http.StatusOK)
    	}))
    	defer testServer.Close()
    
    	testURL, err := url.Parse(testServer.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, portStr, err := net.SplitHostPort(testURL.Host)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. cmd/generic-handlers_test.go

    		w.WriteHeader(http.StatusOK)
    	}
    	for i, test := range sseTLSHandlerTests {
    		globalIsTLS = test.IsTLS
    
    		w := httptest.NewRecorder()
    		r := new(http.Request)
    		r.Header = test.Header
    		r.URL = test.URL
    
    		h := setRequestValidityMiddleware(okHandler)
    		h.ServeHTTP(w, r)
    
    		switch {
    		case test.ShouldFail && w.Code == http.StatusOK:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top