- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 116 for StatusCode (0.17 sec)
-
tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc
flib_.get(), &control_ret_node_names_, &control_rets_updated_), Status(absl::StatusCode::kAborted, "aborted")); verifyGraph(original_graph_def); verifyCounters(); } TEST_F(MlirGraphOptimizationPassTest, OptimizationPassFailsDisabledFallback) { Init(Status(absl::StatusCode::kAborted, "aborted"), {MlirOptimizationPassState::Disabled, MlirOptimizationPassState::FallbackEnabled});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 08:25:30 UTC 2024 - 16.1K bytes - Viewed (0) -
internal/rest/client.go
if err != nil { return } // Only display response header. var respTrace []byte // For errors we make sure to dump response body as well. if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusPartialContent && resp.StatusCode != http.StatusNoContent { respTrace, err = httputil.DumpResponse(resp, true) if err != nil { return } } else {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go
t.Fatalf("shouldError=%t, got %t: %v", e, a, err) } if testCase.shouldError { return } defer conn.Close() if resp.StatusCode != http.StatusSwitchingProtocols { t.Fatalf("expected http 101 switching protocols, got %d", resp.StatusCode) } stream, err := conn.CreateStream(http.Header{}) if err != nil { t.Fatalf("error creating client stream: %s", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 32.7K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go
err = fmt.Errorf("unable to read URL %q, server reported %s, status code=%d", u, status, statusCode) if statusCode >= 500 && statusCode < 600 { // Retry 500's continue } else { // Don't retry other StatusCodes break } } return nil, err } // httpget Defines function to retrieve a url and return the results. Exists for unit test stubbing.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 21.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
func expectHTTPGet(url string, code int) error { r, err := http.Get(url) if err != nil { return fmt.Errorf("unexpected error: %v", err) } if r.StatusCode != code { return fmt.Errorf("unexpected response: %v", r.StatusCode) } return nil } // We use POST as a sample mutating request. func expectHTTPPost(url string, code int, groups ...string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 10.2K bytes - Viewed (0) -
tests/integration/security/sds_ingress/util/util.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 25 05:12:36 UTC 2023 - 20.2K bytes - Viewed (0) -
pkg/kubelet/config/http_test.go
for _, testCase := range testCases { data, err := json.Marshal(testCase.pod) if err != nil { t.Fatalf("%s: Some weird json problem: %v", testCase.desc, err) } fakeHandler := utiltesting.FakeHandler{ StatusCode: http.StatusOK, ResponseBody: string(data), } testServer := httptest.NewServer(&fakeHandler) defer testServer.Close() ch := make(chan interface{}, 1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0) -
tests/integration/telemetry/policy/helper_test.go
if err != nil && tc.Expected.StatusCode > 0 { return fmt.Errorf("request failed: %v", err) } codeStr := strconv.Itoa(tc.Expected.StatusCode) for i, r := range result.Responses { if codeStr != r.Code { return fmt.Errorf("response[%d] received status code %s, expected %d", i, r.Code, tc.Expected.StatusCode) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc
std::string dir; if (!dirname.empty()) dir = std::string(dirname); else dir = GetDumpDirFromEnvVar(); if (dir.empty()) { return Status(absl::StatusCode::kInvalidArgument, "(TF_DUMP_GRAPH_PREFIX not specified)"); } if (dir == kCrashReproducerStdErr) { *os = std::make_unique<LogInfoRawStream>(); *filepath =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 03:03:46 UTC 2024 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config_test.go
resp, err := http.Get(server.URL + "/healthz?exclude=wrapping-health&exclude=delegate-health") if err != nil { t.Fatal(err) } data, _ := io.ReadAll(resp.Body) if http.StatusOK != resp.StatusCode { t.Logf("got %d", resp.StatusCode) t.Log(string(data)) return false, nil } return true, nil }); err != nil { t.Fatal(err) } checkPath(server.URL+"/healthz", http.StatusInternalServerError, `[+]ping ok
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 13.1K bytes - Viewed (0)