Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CreateHTTPClient (0.32 sec)

  1. pkg/kubectl/cmd/convert/convert_test.go

    			t.Run(fmt.Sprintf("%s %s", tc.name, field), func(t *testing.T) {
    				tf := cmdtesting.NewTestFactory().WithNamespace("test")
    				defer tf.Cleanup()
    
    				tf.UnstructuredClient = &fake.RESTClient{
    					Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
    						t.Fatalf("unexpected request: %#v\n%#v", req.URL, req)
    						return nil, nil
    					}),
    				}
    
    				buf := bytes.NewBuffer([]byte{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    			ExpectObject: &corev1.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", ResourceVersion: "10"},
    				Spec:       V1DeepEqualSafePodSpec(),
    			},
    			Overwrite: true,
    			HTTPClient: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
    				if req.Method == "PUT" {
    					return &http.Response{StatusCode: http.StatusOK, Header: header(), Body: objBody(&metav1.Status{Status: metav1.StatusSuccess})}, nil
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  3. istioctl/pkg/util/handlers/handlers_test.go

    	factory.Client = &fake.RESTClient{
    		GroupVersion:         schema.GroupVersion{Group: "", Version: "v1"},
    		NegotiatedSerializer: ns,
    		Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
    			switch p, m := req.URL.Path, req.Method; {
    			case p == "/namespaces/istio-system/deployments/foo" && m == "GET":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

                    logger.warn("Embedded OpenSearch is running. This configuration is not recommended for production use.");
                    break;
                }
            }
            client = createHttpClient(fessConfig, httpAddress);
    
            if (StringUtil.isNotBlank(httpAddress)) {
                System.setProperty(Constants.FESS_SEARCH_ENGINE_HTTP_ADDRESS, httpAddress);
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    	return func(version schema.GroupVersion) (RESTClient, error) {
    		return &fake.RESTClient{
    			GroupVersion:         corev1GV,
    			NegotiatedSerializer: scheme.Codecs.WithoutConversion(),
    			Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
    				p := req.URL.Path
    				q := req.URL.RawQuery
    				if len(q) != 0 {
    					p = p + "?" + q
    				}
    				body, ok := data[p]
    				if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
Back to top