Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for roundTrip (0.23 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    // They don't roundtrip and thus can be excluded in any custom/downstream roundtrip tests
    //
    //	kinds := scheme.AllKnownTypes()
    //	for gvk := range kinds {
    //	    if roundtrip.GlobalNonRoundTrippableTypes().Has(gvk.Kind) {
    //	        continue
    //	    }
    //	    t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) {
    //	        // roundtrip test
    //	    })
    //	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  2. pkg/apis/extensions/v1beta1/defaults_test.go

    					},
    					RevisionHistoryLimit: utilpointer.Int32(10),
    				},
    			},
    		},
    	}
    
    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*extensionsv1beta1.DaemonSet)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    			t.Errorf("want %q, got %q", testPayload, string(resp))
    		}
    		t.Log("Roundtrip:", time.Since(start))
    	})
    
    	t.Run("localToRemoteErr", func(t *testing.T) {
    		const testPayload = "Hello Grid World!"
    		start := time.Now()
    		resp, err := remoteConn.Request(context.Background(), handlerTest2, []byte(testPayload))
    		t.Log("Roundtrip:", time.Since(start))
    		if len(resp) != 0 {
    			t.Errorf("want nil, got %q", string(resp))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. pkg/apis/networking/v1/defaults_test.go

    					PolicyTypes: []networkingv1.PolicyType{networkingv1.PolicyTypeEgress},
    				},
    			},
    		},
    	}
    
    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*networkingv1.NetworkPolicy)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. pkg/apis/apps/v1beta2/defaults_test.go

    				Spec: s,
    			},
    		},
    	}
    	output := roundTrip(t, runtime.Object(rs))
    	rs2 := output.(*appsv1beta2.ReplicaSet)
    	defaultRequest := rs2.Spec.Template.Spec.Containers[0].Resources.Requests
    	requestValue := defaultRequest[v1.ResourceCPU]
    	if requestValue.String() != "0" {
    		t.Errorf("Expected 0 request value, got: %s", requestValue.String())
    	}
    }
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/apis/apps/v1/defaults_test.go

    				Spec: s,
    			},
    		},
    	}
    	output := roundTrip(t, runtime.Object(rs))
    	rs2 := output.(*appsv1.ReplicaSet)
    	defaultRequest := rs2.Spec.Template.Spec.Containers[0].Resources.Requests
    	requestValue := defaultRequest[v1.ResourceCPU]
    	if requestValue.String() != "0" {
    		t.Errorf("Expected 0 request value, got: %s", requestValue.String())
    	}
    }
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/bootstraptoken/v1/utils_test.go

    		t.Run(rt.input, func(t *testing.T) {
    			if err := roundtrip(rt.input, rt.bts); err != nil {
    				t.Errorf("failed BootstrapTokenString JSON roundtrip with error: %v", err)
    			}
    		})
    	}
    }
    
    func roundtrip(input string, bts *BootstrapTokenString) error {
    	var b []byte
    	var err error
    	newbts := &BootstrapTokenString{}
    	// If string input was specified, roundtrip like this: string -> (unmarshal) -> object -> (marshal) -> string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations_test.go

    				checkers: tt.checkers,
    			}
    			got, err := w.RoundTrip(&http.Request{})
    			if err != tt.err {
    				t.Errorf("x509DeprecatedCertificateMetricsRTWrapper.RoundTrip() should not mutate the error. Got %v, want %v", err, tt.err)
    				return
    			}
    			if !reflect.DeepEqual(got, tt.resp) {
    				t.Errorf("x509DeprecatedCertificateMetricsRTWrapper.RoundTrip() = should not mutate the response. Got %v, want %v", got, tt.resp)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  9. src/net/http/roundtrip_js.go

    	strings.HasPrefix(js.Global().Get("process").Get("argv0").String(), "node")
    
    // RoundTrip implements the [RoundTripper] interface using the WHATWG Fetch API.
    func (t *Transport) RoundTrip(req *Request) (*Response, error) {
    	// The Transport has a documented contract that states that if the DialContext or
    	// DialTLSContext functions are set, they will be used to set up the connections.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/apis/apps/v1beta1/defaults_test.go

    					Template:                defaultTemplate,
    				},
    			},
    		},
    	}
    
    	for _, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1beta1.Deployment)
    		if !ok {
    			t.Errorf("unexpected object: %v", got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top