Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestExcludedPrefixesMatch (0.14 sec)

  1. internal/bucket/versioning/versioning_test.go

    	for i, prefix := range testPrefixes {
    		if !v.PrefixEnabled(prefix) || v.PrefixSuspended(prefix) {
    			t.Fatalf("Test %d: Expected versioning to be enabled for %s", i+1, prefix)
    		}
    	}
    }
    
    func TestExcludedPrefixesMatch(t *testing.T) {
    	v := Versioning{
    		Status:           Enabled,
    		ExcludedPrefixes: []ExcludedPrefix{{"*/_temporary/"}},
    	}
    
    	if err := v.Validate(); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 08 05:06:44 UTC 2022
    - 8.8K bytes
    - Viewed (0)
Back to top