- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for StatusOK (1.16 sec)
-
cmd/kms-handlers_test.go
query: map[string]string{"key-id": "abc-test-key"}, asRoot: true, wantStatusCode: http.StatusOK, }, { name: "key status as root want success", method: http.MethodGet, path: kmsKeyStatusPath, query: map[string]string{"key-id": "abc-test-key"}, asRoot: true, wantStatusCode: http.StatusOK, wantResp: []string{"abc-test-key"}, }, {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 22.3K bytes - Viewed (0) -
cmd/healthcheck-handler.go
if opts.Maintenance { writeResponse(w, http.StatusPreconditionFailed, nil, mimeNone) } else { writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone) } return } writeResponse(w, http.StatusOK, nil, mimeNone) } // ClusterReadCheckHandler returns if the server is ready for requests. func ClusterReadCheckHandler(w http.ResponseWriter, r *http.Request) { ctx := newContext(r, w, "ClusterReadCheckHandler")
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jun 26 07:44:34 UTC 2024 - 6.9K bytes - Viewed (0) -
cmd/bucket-handlers_test.go
expectedRespStatus: http.StatusOK, }, // Test case - 2. // Delete deleted objects with quiet flag off. 2: { bucket: bucketName, objects: successRequest0, accessKey: credentials.AccessKey, secretKey: credentials.SecretKey, expectedContent: encodedSuccessResponse0, expectedRespStatus: http.StatusOK, }, // Test case - 3.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 39.8K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(response.StatusCode, http.StatusOK) request, err = newTestSignedRequest(http.MethodHead, getHeadObjectURL(s.endPoint, bucketName, "my-object-directory/"), 0, nil, s.accessKey, s.secretKey, s.signer) c.Assert(err, nil) // execute the HTTP request. response, err = s.client.Do(request) c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0) -
cmd/generic-handlers_test.go
w.WriteHeader(http.StatusOK) } for i, test := range sseTLSHandlerTests { globalIsTLS = test.IsTLS w := httptest.NewRecorder() r := new(http.Request) r.Header = test.Header r.URL = test.URL h := setRequestValidityMiddleware(okHandler) h.ServeHTTP(w, r) switch { case test.ShouldFail && w.Code == http.StatusOK:
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
cmd/admin-handlers_test.go
} rec := httptest.NewRecorder() adminTestBed.router.ServeHTTP(rec, req) resp, _ := io.ReadAll(rec.Body) if rec.Code != http.StatusOK { t.Errorf("Expected to receive %d status code but received %d. Body (%s)", http.StatusOK, rec.Code, string(resp)) } result := &serviceResult{} if err := json.Unmarshal(resp, result); err != nil { t.Error(err) } _ = result
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 13.9K bytes - Viewed (0) -
cmd/object-handlers_test.go
if err != nil { t.Fatalf("Failed to create HTTP request for NewMultipart Request: <ERROR> %v", err) } apiRouter.ServeHTTP(rec, req) if rec.Code != http.StatusOK { t.Fatalf("%s: Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code) } decoder := xml.NewDecoder(rec.Body) multipartResponse := &InitiateMultipartUploadResponse{} err = decoder.Decode(multipartResponse)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 163.1K bytes - Viewed (0) -
cmd/crossdomain-xml-handler_test.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Jul 08 14:31:42 UTC 2023 - 1.3K bytes - Viewed (0) -
docs/auditlog/auditlog-echo.go
return } log.Printf(">>> %s %s\n", r.Method, r.URL.Path) var out bytes.Buffer json.Indent(&out, body, "", " ") log.Printf("%s\n", out.String()) w.WriteHeader(http.StatusOK) } func main() { flag.Parse() http.HandleFunc("/", mainHandler) log.Printf("Listening on :%d\n", port) log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed May 01 21:31:13 UTC 2024 - 1.5K bytes - Viewed (0) -
cmd/bucket-lifecycle-handlers_test.go
expectedRespStatus: http.StatusOK, lifecycleResponse: []byte(``), errorResponse: APIErrorResponse{}, shouldPass: true, }, { method: http.MethodGet, accessKey: creds.AccessKey,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 11.3K bytes - Viewed (0)