Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 155 for roundTrip (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	resp, err := rt.upgrader.RoundTrip(req)
    	if err != nil {
    		return nil, err
    	}
    	return resp.Request, nil
    }
    
    // onewayRoundTripper captures the provided request - which is assumed to have
    // been modified by other round trippers - and then returns a fake response.
    type onewayRoundTripper struct{}
    
    // RoundTrip returns a simple 200 OK response that captures the provided request.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go

    				NewSANDeprecatedChecker(missingSAN),
    				NewSHA1SignatureDeprecatedChecker(sha1),
    			},
    		}
    	}
    }
    
    func (w *x509DeprecatedCertificateMetricsRTWrapper) RoundTrip(req *http.Request) (*http.Response, error) {
    	resp, err := w.rt.RoundTrip(req)
    
    	if err != nil {
    		for _, checker := range w.checkers {
    			if checker.CheckRoundTripError(err) {
    				checker.IncreaseMetricsCounter(req)
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  3. src/encoding/csv/fuzz_test.go

    				t.Logf("records = %v\n", records)
    				t.Fatal(err)
    			}
    			if tt.Comment != 0 {
    				// Writer doesn't support comments, so it can turn the quoted record "#"
    				// into a non-quoted comment line, failing the roundtrip check below.
    				continue
    			}
    			t.Logf("second input = %q", buf.Bytes())
    
    			r = NewReader(buf)
    			r.Comma = tt.Comma
    			r.Comment = tt.Comment
    			r.LazyQuotes = tt.LazyQuotes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	auth := username + ":" + password
    	return "Basic " + base64.StdEncoding.EncodeToString([]byte(auth))
    }
    
    // RoundTrip executes the Request and upgrades it. After a successful upgrade,
    // clients may call SpdyRoundTripper.Connection() to retrieve the upgraded
    // connection.
    func (s *SpdyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    	req = utilnet.CloneRequest(req)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_custom_call.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --emit-stablehlo-ops=true %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --disable-vhlo-to-stablehlo=true - -o - | FileCheck %s
    // test stablehlo roundtrip
    
    //test TF ops wrapped in stablehlo custom_call
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. pkg/apis/apps/v1beta2/conversion.go

    	if err := autoConvert_v1beta2_Deployment_To_apps_Deployment(in, out, s); err != nil {
    		return err
    	}
    
    	// Copy annotation to deprecated rollbackTo field for roundtrip
    	// TODO: remove this conversion after we delete extensions/v1beta1 and apps/v1beta1 Deployment
    	if revision := in.Annotations[appsv1beta2.DeprecatedRollbackTo]; revision != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:36:24 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  7. pkg/apis/autoscaling/v2beta2/defaults_test.go

    					},
    				},
    			},
    			test: "test empty array value for Annotations",
    		},
    	}
    
    	for _, test := range tests {
    		hpa := &test.hpa
    		hpaBeforeMuatate := *hpa.DeepCopy()
    		obj := roundTrip(t, runtime.Object(hpa))
    		final_obj, ok := obj.(*autoscalingv2.HorizontalPodAutoscaler)
    		if !ok {
    			t.Fatalf("unexpected object: %v", obj)
    		}
    		if !reflect.DeepEqual(*hpa, hpaBeforeMuatate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. pkg/kubelet/client/kubelet_client_test.go

    	}
    	if rt == nil {
    		t.Error("rt should not be nil")
    	}
    
    	req, err := http.NewRequest(http.MethodGet, testServer.URL, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	response, err := rt.RoundTrip(req)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if response.StatusCode != http.StatusOK {
    		dump, err := httputil.DumpResponse(response, true)
    		if err != nil {
    			t.Fatal(err)
    		}
    		t.Fatal(string(dump))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/net/url/url_test.go

    			t.Errorf("QueryEscape(%q) = %q, want %q", tt.in, actual, tt.out)
    		}
    
    		// for bonus points, verify that escape:unescape is an identity.
    		roundtrip, err := QueryUnescape(actual)
    		if roundtrip != tt.in || err != nil {
    			t.Errorf("QueryUnescape(%q) = %q, %s; want %q, %s", actual, roundtrip, err, tt.in, "[no error]")
    		}
    	}
    }
    
    var pathEscapeTests = []EscapeTest{
    	{
    		"",
    		"",
    		nil,
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  10. pkg/apis/autoscaling/v2/defaults_test.go

    					},
    				},
    			},
    			test: "test empty array value for Annotations",
    		},
    	}
    
    	for _, test := range tests {
    		hpa := &test.hpa
    		hpaBeforeMuatate := *hpa.DeepCopy()
    		obj := roundTrip(t, runtime.Object(hpa))
    		final_obj, ok := obj.(*autoscalingv2.HorizontalPodAutoscaler)
    		if !ok {
    			t.Fatalf("unexpected object: %v", obj)
    		}
    		if !reflect.DeepEqual(*hpa, hpaBeforeMuatate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top