Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 207 for StatusOK (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator.go

    			websocketStreams.writeStatus(codeExitToStatusError(exitErr))
    			// Returned an exit code from the container, so not an error in
    			// stream translator--add StatusOK to metrics.
    			metrics.IncStreamTranslatorRequest(req.Context(), strconv.Itoa(http.StatusOK))
    		} else {
    			websocketStreams.writeStatus(apierrors.NewInternalError(err))
    			metrics.IncStreamTranslatorRequest(req.Context(), strconv.Itoa(http.StatusInternalServerError))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tests/integration/pilot/multiplecontrolplanes/main_test.go

    				{
    					name:       "workloads within same usergroup can communicate, same namespace",
    					statusCode: http.StatusOK,
    					from:       apps.NS[0].A,
    					to:         apps.NS[0].B,
    				},
    				{
    					name:       "workloads within same usergroup can communicate, different namespaces",
    					statusCode: http.StatusOK,
    					from:       apps.NS[1].A,
    					to:         apps.NS[2].B,
    				},
    				{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline_test.go

    			statusCodeExpected:       http.StatusOK,
    		},
    		{
    			name:                     "the request is long running, no deadline is expected to be set",
    			requestURL:               "/api/v1/namespaces?timeout=10s",
    			longRunning:              true,
    			hasDeadlineExpected:      false,
    			handlerCallCountExpected: 1,
    			statusCodeExpected:       http.StatusOK,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:34 UTC 2022
    - 16.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    		assert.NoError(err)
    		data, _ := io.ReadAll(resp.Body)
    		if http.StatusOK != resp.StatusCode {
    			t.Logf("got %d", resp.StatusCode)
    			t.Log(string(data))
    			return false, nil
    		}
    		return true, nil
    	}))
    	resp, err = http.Get(server.URL + "/healthz/ping")
    	assert.NoError(err)
    	assert.Equal(http.StatusOK, resp.StatusCode)
    }
    
    func TestUpdateOpenAPISpec(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. pkg/test/fakes/imageregistry/main.go

    				http.Error(w, err.Error(), http.StatusBadRequest)
    				return
    			}
    			h.tagMap = m
    			w.WriteHeader(http.StatusOK)
    		case http.MethodGet:
    			if jsEncodedMap, err := json.Marshal(h.tagMap); err == nil {
    				w.Header().Set("Content-Type", "application/json")
    				w.WriteHeader(http.StatusOK)
    				fmt.Fprintf(w, "%s", jsEncodedMap)
    			} else {
    				http.Error(w, err.Error(), http.StatusInternalServerError)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. pkg/routes/openidmetadata.go

    			Operation("getServiceAccountIssuerOpenIDConfiguration").
    			// Just include the OK, doesn't look like we include Internal Error in our openapi-spec.
    			Returns(http.StatusOK, "OK", ""))
    	c.Add(cfg)
    
    	// JWKS WebService
    	jwks := new(restful.WebService).
    		Produces(mimeJWKS)
    
    	jwks.Path(serviceaccount.JWKSPath).Route(
    		jwks.GET("").
    			To(fromStandard(s.serveKeys)).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    	// Call the ServeHTTP to executes the registered handler.
    	apiRouter.ServeHTTP(rec, req)
    	// Assert the response code with the expected status.
    	if rec.Code != http.StatusOK {
    		t.Fatalf("%s:  Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code)
    	}
    
    	// decode the response body.
    	decoder := xml.NewDecoder(rec.Body)
    	multipartResponse := &InitiateMultipartUploadResponse{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  8. cni/pkg/plugin/cnieventclient_test.go

    	// Fake out a test HTTP server and use that instead of a real HTTP server over gRPC to validate  req/resp flows
    	testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
    		res.WriteHeader(http.StatusOK)
    		res.Write([]byte("server happy"))
    	}))
    	defer func() { testServer.Close() }()
    
    	cniC := fakeCNIEventClient(testServer.URL)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. istioctl/pkg/cli/mock_test.go

    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. src/log/slog/example_test.go

    					return slog.Attr{}
    				}
    				return a
    			},
    		}),
    	)
    	logger.Info("finished",
    		slog.Group("req",
    			slog.String("method", r.Method),
    			slog.String("url", r.URL.String())),
    		slog.Int("status", http.StatusOK),
    		slog.Duration("duration", time.Second))
    
    	// Output:
    	// level=INFO msg=finished req.method=GET req.url=localhost status=200 duration=1s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 14:56:30 UTC 2023
    - 857 bytes
    - Viewed (0)
Back to top