Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 182 for StatusOK (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top