- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for StatusOK (0.16 sec)
-
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation_test.go
}{ { name: "not-impersonating", user: &user.DefaultInfo{ Name: "tester", }, expectedUser: &user.DefaultInfo{ Name: "tester", }, expectedCode: http.StatusOK, }, { name: "impersonating-error", user: &user.DefaultInfo{ Name: "tester", }, impersonationUser: "anyone", expectedUser: &user.DefaultInfo{ Name: "tester", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 06 17:13:16 UTC 2021 - 17.2K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
go func() { if err := expectHTTPGet(server.URL+"/api/v1/namespaces/default/wait?watch=true", http.StatusOK); err != nil { t.Error(err) } responses.Done() }() } // Check that sever is not saturated by not-accounted calls if err := expectHTTPGet(server.URL+"/dontwait", http.StatusOK); err != nil { t.Error(err) } // These should hang and be accounted, i.e. saturate the server
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 10.2K bytes - Viewed (0) -
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go
// get sent again second, _, _ := fetchPath(manager, "application/json", discoveryPath, "wrongetag") assert.Equal(t, http.StatusOK, initial.StatusCode, "response should be 200 OK") assert.Equal(t, http.StatusOK, second.StatusCode, "response should be 200 OK") assert.Equal(t, initial.Header.Get("ETag"), second.Header.Get("ETag"), "ETag of both requests should be equal") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 28.6K bytes - Viewed (0)