Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 169 for StatusCode (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/proxy/metrics/metrics.go

    */
    
    package metrics
    
    import (
    	"context"
    	"sync"
    
    	"k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    const (
    	subsystem  = "apiserver"
    	statuscode = "code"
    )
    
    var registerMetricsOnce sync.Once
    
    var (
    	// streamTranslatorRequestsTotal counts the number of requests that were handled by
    	// the StreamTranslatorProxy.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. tests/integration/security/sds_ingress/ingress_test.go

    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    						t.NewSubTest("request with client certificates").Run(func(t framework.TestContext) {
    							// Send a TLS request with client certificates.
    							ingressutil.SendRequestOrFail(t, ing, host, credName, ingressutil.Mtls, tlsContext,
    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    					})
    			}
    		})
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    		return false
    	}
    	// hope for a 200, remove file on a 4xx, otherwise it will be retried by another process
    	if resp.StatusCode != 200 {
    		u.logger.Printf("Failed to upload %s to %s: %s", filepath.Base(fname), endpoint, resp.Status)
    		if resp.StatusCode >= 400 && resp.StatusCode < 500 {
    			err := os.Remove(fname)
    			if err == nil {
    				u.logger.Printf("Removed local/%s", filepath.Base(fname))
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

              break;
            default:
              return tensorflow::Status(absl::StatusCode::kInvalidArgument,
                                        "Unsupported type");
          }
        }
      } else {
        return tensorflow::Status(absl::StatusCode::kInvalidArgument,
                                  "Unsupported type");
      }
    }
    
    // Returns a Constant op with a splat vector value.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. pkg/ctrlz/ctrlz_test.go

    	resp, err := http.DefaultClient.Post(reloadURL, "text/plain", nil)
    	if err != nil {
    		t.Fatalf("Run: %v", err)
    	}
    	if resp.StatusCode != http.StatusAccepted {
    		t.Fatalf("Got unexpected status code: %v", resp.StatusCode)
    	}
    	select {
    	case <-c:
    	case <-time.After(5 * time.Second):
    		t.Fatal("Timed out waiting for SIGUSR1")
    	}
    }
    
    func startAndWaitForServer(t *testing.T) *Server {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 15 18:23:41 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. tensorflow/cc/training/queue_runner.cc

      size_t op_names_size = enqueue_op_names_.size();
      if (op_names_size > kint32max) {
        return Status(absl::StatusCode::kInvalidArgument,
                      "Enqueue ops to run cannot exceed kint32max");
      }
      runs_ = static_cast<int>(op_names_size);
      if (runs_ == 0) {
        return Status(absl::StatusCode::kInvalidArgument,
                      "Empty enqueue ops to run.");
      }
      close_op_name_ = queue_runner_def.close_op_name();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. tests/integration/security/egress_sidecar_tls_origination_test.go

    					credentialToUse:  credNameGeneric,
    					from:             apps.Ns1.A,
    					drSelector:       "a",
    					authorizeSidecar: true,
    					expectedResponse: ingressutil.ExpectedResponse{
    						StatusCode: http.StatusOK,
    					},
    				},
    				// Mutual TLS origination from an unauthorized sidecar to https endpoint
    				// This will result in a 503 with the UH flag because the cluster will
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/healthServer_test.go

    	t.Helper()
    	res, err := http.Get(url + endpoint)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != expectedStatusCode {
    		t.Fatalf("expected status code from %s: %d, got: %d", endpoint, expectedStatusCode, res.StatusCode)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ConnectionFailureRepositoryDisablerTest.groovy

            createHttpErrorStatusCodeException(401)
        }
    
        static RuntimeException createHttpErrorStatusCodeException(int statusCode) {
            createNestedException(new HttpErrorStatusCodeException('GET', 'test.file', statusCode, ''))
        }
    
        static RuntimeException createTimeoutException() {
            createNestedException(new InterruptedIOException('Read time out'))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:29:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc

          /*saved_model_tags=*/{}, config,
          /*quantization_py_function_lib=*/nullptr, /*module_op=*/{});
      EXPECT_THAT(
          quantized_module_op,
          StatusIs(absl::StatusCode::kInvalidArgument,
                   HasSubstr("`saved_model_bundle` should not be nullptr")));
    }
    
    TEST(RunQuantizationTest,
         WhenPyFunctionLibIsNullptrReturnsInvalidArgumentError) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top