Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for jest (0.13 sec)

  1. cmd/sts-handlers_test.go

    	baseTestCases := []TestSuiteCommon{
    		// Init and run test on ErasureSD backend with signature v4.
    		{serverType: "ErasureSD", signer: signerV4},
    		// Init and run test on ErasureSD backend, with tls enabled.
    		{serverType: "ErasureSD", signer: signerV4, secure: true},
    		// Init and run test on Erasure backend.
    		{serverType: "Erasure", signer: signerV4},
    		// Init and run test on ErasureSet backend.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    	atTotal := uint64(0)
    	for _, pool := range serverPools {
    		atTotal += pool.Available
    		if atTotal > choose && pool.Available > 0 {
    			return pool.Index
    		}
    	}
    	// Should not happen, but print values just in case.
    	storageLogIf(ctx, fmt.Errorf("reached end of serverPools (total: %v, atTotal: %v, choose: %v)", total, atTotal, choose))
    	return -1
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/iam.go

    		}
    	}
    }
    
    func (sys *IAMSys) validateAndAddRolePolicyMappings(ctx context.Context, m map[arn.ARN]string) {
    	// Validate that policies associated with roles are defined. If
    	// authZ plugin is set, role policies are just claims sent to
    	// the plugin and they need not exist.
    	//
    	// If some mapped policies do not exist, we print some error
    	// messages but continue any way - they can be fixed in the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  4. cmd/erasure-object.go

    				offlineDrives++
    				continue
    			}
    		}
    
    		if offlineDrives >= (len(storageDisks)+1)/2 {
    			// if offline drives are more than 50% of the drives
    			// we have no quorum, we shouldn't proceed just
    			// fail at that point.
    			return ObjectInfo{}, toObjectErr(errErasureWriteQuorum, bucket, object)
    		}
    
    		if parityDrives >= len(storageDisks)/2 {
    			parityDrives = len(storageDisks) / 2
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  5. cmd/api-errors.go

    				}
    			}
    		case *googleapi.Error:
    			apiErr = APIError{
    				Code:           "XGCSInternalError",
    				Description:    e.Message,
    				HTTPStatusCode: e.Code,
    			}
    			// GCS may send multiple errors, just pick the first one
    			// since S3 only sends one Error XML response.
    			if len(e.Errors) >= 1 {
    				apiErr.Code = e.Errors[0].Reason
    			}
    		case azblob.StorageError:
    			apiErr = APIError{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  6. cmd/test-utils_test.go

    	apiRouter http.Handler, credentials auth.Credentials, t *testing.T)
    
    // Regular object test type.
    type objTestType func(obj ObjectLayer, instanceType string, t TestErrHandler)
    
    // Special test type for test with directories
    type objTestTypeWithDirs func(obj ObjectLayer, instanceType string, dirs []string, t TestErrHandler)
    
    // Special object test type for disk not found situations.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  7. internal/s3select/select_test.go

    			wantResult: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}`,
    			withJSON: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}
    {"request":{"uri":"/2","header":{}}}`,
    		},
    		{
    			name:       "is-not-missing",
    			query:      `select * from s3object[*] as s where s.request.header['User-Agent'] is not missing`,
    			wantResult: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}}`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    		result ListObjectsInfo
    		err    error
    		// Flag indicating whether the test is expected to pass or not.
    		shouldPass bool
    	}{
    		// Test cases with invalid bucket names ( Test number 1-4 ).
    		{".test", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: ".test"}, false},
    		{"Test", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: "Test"}, false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  9. cmd/object-api-multipart_test.go

    		expectedErr    error
    		// Flag indicating whether the test is expected to pass or not.
    		shouldPass bool
    	}{
    		// Test cases with invalid bucket names ( Test number 1-4 ).
    		{".test", "", "", "", "", 0, ListMultipartsInfo{}, BucketNameInvalid{Bucket: ".test"}, false},
    		{"Test", "", "", "", "", 0, ListMultipartsInfo{}, BucketNameInvalid{Bucket: "Test"}, false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	var doc PolicyDoc
    	err := json.Unmarshal(data, &doc)
    	if err != nil {
    		err2 := json.Unmarshal(data, &doc.Policy)
    		if err2 != nil {
    			// Just return the first error.
    			return err
    		}
    		d.Policy = doc.Policy
    		return nil
    	}
    	*d = doc
    	return nil
    }
    
    // key options
    type options struct {
    	ttl int64 // expiry in seconds
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top