Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for validate (0.24 sec)

  1. cmd/server_test.go

    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    	response.Body.Close()
    }
    
    // TestCopyObject - Validates copy object.
    // The following is the test flow.
    // 1. Create bucket.
    // 2. Insert Object.
    // 3. Use "X-Amz-Copy-Source" header to copy the previously created object.
    // 4. Validate the content of copied object.
    func (s *TestSuiteCommon) TestCopyObject(c *check) {
    	// generate a random bucket name.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	// validate the request
    	if err := rreq.validate(ctx, objectAPI); err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    			return madmin.ReplicateAddStatus{}, errSRInvalidRequest(fmt.Errorf("all existing replicated sites must be specified - missing %s", strings.Join(diffSlc, " ")))
    		}
    	}
    
    	// validate that all clusters are using the same IDP settings.
    	err = c.validateIDPSettings(ctx, sites)
    	if err != nil {
    		return madmin.ReplicateAddStatus{}, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  4. cmd/bucket-replication.go

    		}
    		clnt := globalBucketTargetSys.GetRemoteTargetClient(bucket, arnStr)
    		if clnt == nil {
    			return sameTarget, toAPIError(ctx, BucketRemoteTargetNotFound{Bucket: bucket})
    		}
    		if checkRemote { // validate remote bucket
    			found, err := clnt.BucketExists(ctx, arn.Bucket)
    			if err != nil {
    				return sameTarget, errorCodes.ToAPIErrWithErr(ErrRemoteDestinationNotFoundError, err)
    			}
    			if !found {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  5. cmd/metrics-v2.go

    				),
    				prometheus.GaugeValue,
    				float64(v),
    				append(values, k)...)
    			if err != nil {
    				// Enable for debugging
    				if serverDebugLog {
    					bugLogIf(GlobalContext, fmt.Errorf("unable to validate prometheus metric (%w) %v+%v", err, values, metric.Histogram))
    				}
    			} else {
    				out <- pmetric
    			}
    		}
    		return
    	}
    	metricType := prometheus.GaugeValue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    							reqType, bucketName, test.objectName, err)
    					}
    					// Validate whether the error has occurred for the expected reason.
    					if want.Code != errXML.Code {
    						t.Errorf("%s, Expected to fail with error \"%s\", but received \"%s\": %q.",
    							reqType, want.Code, errXML.Code, errXML.Message)
    					}
    					// Validate the HTTP response status code  with the expected one.
    					if want.HTTPStatusCode != rec.Code {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    // ----------
    // Enable server profiling
    func (a adminAPIHandlers) StartProfilingHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	// Validate request signature.
    	_, adminAPIErr := checkAdminRequestAuth(ctx, r, policy.ProfilingAdminAction, "")
    	if adminAPIErr != ErrNone {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(adminAPIErr), r.URL)
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top