Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Tests (0.15 sec)

  1. cmd/data-scanner_test.go

    		case uuids[2].String(), uuids[3].String(), uuids[4].String():
    		default:
    			t.Errorf("Unexpected versionID being expired: %#v\n", obj)
    		}
    	}
    }
    
    func TestEvalActionFromLifecycle(t *testing.T) {
    	// Tests cover only ExpiredObjectDeleteAllVersions and DelMarkerExpiration actions
    	obj := ObjectInfo{
    		Name:        "foo",
    		ModTime:     time.Now().Add(-31 * 24 * time.Hour),
    		Size:        100 << 20,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    // This makes it easy to run the TestServer from any of the tests.
    // Using this interface, functionalities to be used in tests can be
    // made generalized, and can be integrated in benchmarks/unit tests/go check suite tests.
    type TestErrHandler interface {
    	testing.TB
    }
    
    const (
    	// ErasureSDStr is the string which is used as notation for Single node ObjectLayer in the unit tests.
    	ErasureSDStr string = "ErasureSD"
    
    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)
  3. cmd/object-api-listobjects_test.go

    		// Tests on hierarchical key names as prefix.
    		// Without delimteter the code should recurse into the prefix Dir.
    		// Tests with prefix, but without delimiter (53-54).
    		{"test-bucket-list-object", "Asia/India/", "", "", 10, resultCases[23], nil, true},
    		{"test-bucket-list-object", "Asia", "", "", 10, resultCases[24], nil, true},
    		// Tests with prefix and delimiter (55-57).
    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)
  4. internal/bucket/lifecycle/delmarker-expiration_test.go

    )
    
    func TestDelMarkerExpParseAndValidate(t *testing.T) {
    	tests := []struct {
    		xml string
    		err error
    	}{
    		{
    			xml: `<DelMarkerExpiration> <Days> 1 </Days> </DelMarkerExpiration>`,
    			err: nil,
    		},
    		{
    			xml: `<DelMarkerExpiration> <Days> -1 </Days> </DelMarkerExpiration>`,
    			err: errInvalidDaysDelMarkerExpiration,
    		},
    	}
    
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("TestDelMarker-%d", i), func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. cmd/object-api-interface.go

    	DeleteObjectTags(context.Context, string, string, ObjectOptions) (ObjectInfo, error)
    }
    
    // GetObject - TODO(aead): This function just acts as an adapter for GetObject tests and benchmarks
    // since the GetObject method of the ObjectLayer interface has been removed. Once, the
    // tests are adjusted to use GetObjectNInfo this function can be removed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/lifecycle_test.go

    	obj2 := ObjectOpts{
    		Name: "obj2",
    	}
    
    	tests := []struct {
    		obj         ObjectOpts
    		expRuleID   int
    		transRuleID int
    	}{
    		{
    			obj:         obj1,
    			expRuleID:   0,
    			transRuleID: 1,
    		},
    		{
    			obj:         obj2,
    			expRuleID:   0,
    			transRuleID: 2,
    		},
    	}
    	for i, tc := range tests {
    		w := httptest.NewRecorder()
    		lc.SetPredictionHeaders(w, tc.obj)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. cmd/utils.go

    func unwrapAll(err error) error {
    	for {
    		werr := errors.Unwrap(err)
    		if werr == nil {
    			return err
    		}
    		err = werr
    	}
    }
    
    // stringsHasPrefixFold tests whether the string s begins with prefix ignoring case.
    func stringsHasPrefixFold(s, prefix string) bool {
    	// Test match with case first.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. cmd/server-main.go

    	serverHandleEnvVars()
    
    	// Load the root credentials from the shell environment or from
    	// the config file if not defined, set the default one.
    	loadRootCredentials()
    
    	// Perform any self-tests
    	bootstrapTrace("selftests", func() {
    		bitrotSelfTest()
    		erasureSelfTest()
    		compressSelfTest()
    	})
    
    	// Initialize KMS configuration
    	bootstrapTrace("handleKMSConfig", handleKMSConfig)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
Back to top