- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 207 for StatusOK (0.15 sec)
-
pkg/bootstrap/platform/aws_test.go
writer.WriteHeader(http.StatusOK) writer.Write([]byte("us-west-2")) } func zoneHandler(writer http.ResponseWriter, _ *http.Request) { writer.WriteHeader(http.StatusOK) writer.Write([]byte("us-west-2b")) } func iamInfoHandler(writer http.ResponseWriter, _ *http.Request) { writer.WriteHeader(http.StatusOK) // nolint: lll
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 18 13:10:06 UTC 2022 - 3.2K bytes - Viewed (0) -
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go
// TODO: JTL: "GET root item": {"GET", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/simpleroots/bar", http.StatusOK}, "GET namespaced": {"GET", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/namespaces/ns/simples", http.StatusOK},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:15:22 UTC 2023 - 158.7K bytes - Viewed (0) -
pkg/serviceaccount/openidmetadata_test.go
if err != nil { t.Fatalf("Get(%s) = %v, %v want: <response>, <nil>", reqURL, resp, err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { t.Errorf("Get(%s) = %v, _ want: %v, _", reqURL, resp.StatusCode, http.StatusOK) } if got, want := resp.Header.Get("Content-Type"), "application/json"; got != want { t.Errorf("Get(%s) Content-Type = %q, _ want: %q, _", reqURL, got, want) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 02 01:53:17 UTC 2023 - 14.8K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/spiffe/spiffe_test.go
in: input1, extraCerts: serverCerts, statusCode: http.StatusOK, body: validSpiffeX509Bundle, wantNumCerts: 1, }, { name: "Success with multiple trust domains", in: input2, extraCerts: serverCerts, statusCode: http.StatusOK, body: validSpiffeX509Bundle, wantNumCerts: 1, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0)