Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sameTarget (0.17 sec)

  1. internal/bucket/replication/replication_test.go

    )
    
    func TestParseAndValidateReplicationConfig(t *testing.T) {
    	testCases := []struct {
    		inputConfig           string
    		expectedParsingErr    error
    		expectedValidationErr error
    		destBucket            string
    		sameTarget            bool
    	}{
    		{ // 1 Invalid delete marker status in replication config
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. cmd/bucket-replication-handlers.go

    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	sameTarget, apiErr := validateReplicationDestination(ctx, bucket, replicationConfig, &validateReplicationDestinationOptions{CheckRemoteBucket: true})
    	if apiErr != noError {
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	// Validate the received bucket replication config
    	if err = replicationConfig.Validate(bucket, sameTarget); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	sameTarget, _ := isLocalHost(target.URL().Hostname(), target.URL().Port(), globalMinioPort)
    	if sameTarget && bucket == target.TargetBucket {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBucketRemoteIdenticalToSource), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top