Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 116 for StatusCode (0.24 sec)

  1. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      // because there is no `_quantization_method` attribute.
      const absl::StatusOr<Method> method =
          GetQuantizationMethod(*xla_call_module_ops.begin());
      EXPECT_THAT(
          method,
          StatusIs(absl::StatusCode::kInvalidArgument,
                   HasSubstr("Attribute _quantization_method is not found")));
    }
    
    TEST_F(LiftAsFunctionCallTest,
           GetQuantizationMethodFailsWhenMalformedQuantizationMethodAttr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. cmd/utils.go

    		return BackendDown{Err: err.Error()}
    	}
    
    	minioErr, ok := err.(minio.ErrorResponse)
    	if !ok {
    		// We don't interpret non MinIO errors. As minio errors will
    		// have StatusCode to help to convert to object errors.
    		return err
    	}
    
    	switch minioErr.Code {
    	case "SlowDownWrite":
    		err = InsufficientWriteQuorum{Bucket: bucket, Object: object}
    	case "SlowDownRead":
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/builder/extauthz.go

    	if _, found := envoytypev3.StatusCode_name[int32(code)]; !found {
    		return nil, fmt.Errorf("unsupported statusOnError %s, supported values: %v", status, supportedStatus)
    	}
    	return &envoytypev3.HttpStatus{Code: envoytypev3.StatusCode(code)}, nil
    }
    
    func generateHTTPConfig(hostname, cluster string, status *envoytypev3.HttpStatus,
    	config *meshconfig.MeshConfig_ExtensionProvider_EnvoyExternalAuthorizationHttpProvider,
    ) *builtExtAuthz {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/client/tests/remotecommand_test.go

    // on the core Kube client config behavior.
    func TestDial(t *testing.T) {
    	upgrader := &fakeUpgrader{
    		t:             t,
    		checkResponse: true,
    		conn:          &fakeConnection{},
    		resp: &http.Response{
    			StatusCode: http.StatusSwitchingProtocols,
    			Body:       ioutil.NopCloser(&bytes.Buffer{}),
    		},
    	}
    	dialer := spdy.NewDialer(upgrader, &http.Client{Transport: upgrader}, "POST", &url.URL{Host: "something.com", Scheme: "https"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. src/net/http/request_test.go

    	r, err := cst.c.Get(cst.ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	r.Body.Close()
    	url := r.Request.URL.String()
    	if r.StatusCode != 200 || !end.MatchString(url) {
    		t.Fatalf("Get got status %d at %q, want 200 matching /foo/$", r.StatusCode, url)
    	}
    }
    
    func TestSetBasicAuth(t *testing.T) {
    	r, _ := NewRequest("GET", "http://example.com/", nil)
    	r.SetBasicAuth("Aladdin", "open sesame")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  6. pkg/kube/inject/webhook_test.go

    			w := httptest.NewRecorder()
    			wh.serveInject(w, req)
    			res := w.Result()
    
    			if res.StatusCode != c.wantStatusCode {
    				t.Fatalf("wrong status code: \ngot %v \nwant %v", res.StatusCode, c.wantStatusCode)
    			}
    
    			if res.StatusCode != http.StatusOK {
    				return
    			}
    
    			gotBody, err := io.ReadAll(res.Body)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  7. src/cmd/vendor/github.com/google/pprof/internal/symbolizer/symbolizer.go

    	}
    	resp, err := client.Post(source, "application/octet-stream", strings.NewReader(post))
    	if err != nil {
    		return nil, fmt.Errorf("http post %s: %v", source, err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("http post %s: %v", source, statusCodeError(resp))
    	}
    	return io.ReadAll(resp.Body)
    }
    
    func statusCodeError(resp *http.Response) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go

    			}
    
    			req.Header.Set("User-Agent", userAgent)
    
    			response, err := client.Do(req)
    			if err != nil {
    				t.Errorf("[%s] error: %v", test.desc, err)
    			}
    
    			if response.StatusCode != test.code {
    				t.Errorf("[%s] expected http code %d, got %#v", test.desc, test.code, response)
    			}
    
    			// close body because the handler might block in Flush, unable to send the remaining event.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:34 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/security/first-steps.md

    Wenn es keinen `Authorization`-Header sieht, oder der Wert keinen `Bearer`-Token hat, antwortet es direkt mit einem 401-Statuscode-Error (`UNAUTHORIZED`).
    
    Sie müssen nicht einmal prüfen, ob der Token existiert, um einen Fehler zurückzugeben. Seien Sie sicher, dass Ihre Funktion, wenn sie ausgeführt wird, ein `str` in diesem Token enthält.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:07:08 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. cmd/perf-tests.go

    				t := time.Now()
    
    				r, _, _, err := c.GetObject(downloadsCtx, opts.bucketName, tmpObjName, gopts)
    				if err != nil {
    					errResp, ok := err.(minio.ErrorResponse)
    					if ok && errResp.StatusCode == http.StatusNotFound {
    						continue
    					}
    					if !contextCanceled(downloadsCtx) && !errors.Is(err, context.Canceled) {
    						errOnce.Do(func() {
    							retError = err.Error()
    						})
    					}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top