Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for StatusOK (0.13 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. 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)
  4. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go

    		addBadCheck      bool
    	}{
    		{"?verbose", fmt.Sprintf("[+]ping ok\n%s check passed\n", name), http.StatusOK, false},
    		{"?exclude=dontexist", "ok", http.StatusOK, false},
    		{"?exclude=bad", "ok", http.StatusOK, true},
    		{"?verbose=true&exclude=bad", fmt.Sprintf("[+]ping ok\n[+]bad excluded: ok\n%s check passed\n", name), http.StatusOK, true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 20:43:16 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    				if req.Method == "PUT" {
    					return &http.Response{StatusCode: http.StatusOK, Header: header(), Body: objBody(&metav1.Status{Status: metav1.StatusSuccess})}, nil
    				}
    				return &http.Response{StatusCode: http.StatusOK, Header: header(), Body: objBody(&corev1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo", ResourceVersion: "10"}})}, nil
    			}),
    			Req: expectPut,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
Back to top