Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for TC (0.14 sec)

  1. internal/bucket/replication/replication_test.go

    			},
    		},
    	}
    	for _, tc := range testCases {
    		tc := tc
    		cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    		if err != nil {
    			t.Fatalf("Got unexpected error: %v", err)
    		}
    		got := cfg.FilterActionableRules(ObjectOpts{Name: tc.prefix})
    		if len(got) != len(tc.ExpectedRules) {
    			t.Fatalf("Expected matching number of actionable rules: `%v`, got: `%v`", tc.ExpectedRules, got)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    			if r.Method == http.MethodHead {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = false
    				}
    
    				defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    				writeErrorResponseHeadersOnly(w, errorCodes.ToAPIErr(ErrInsecureSSECustomerRequest))
    			} else {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. cmd/handler-utils.go

    		f.ServeHTTP(w, r)
    		globalHTTPStats.currentS3Requests.Dec(api)
    
    		tc, _ := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if tc != nil {
    			globalHTTPStats.updateStats(api, tc.ResponseRecorder)
    			globalConnStats.incS3InputBytes(int64(tc.RequestRecorder.Size()))
    			globalConnStats.incS3OutputBytes(int64(tc.ResponseRecorder.Size()))
    
    			if countBktStat {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  4. cmd/xl-storage-format-v2_test.go

    	var fileInfos []FileInfo
    	for i, tc := range testCases {
    		fi := fi
    		fi.VersionID = tc.versionID
    		fi.DataDir = tc.dataDir
    		fi.Data = tc.data
    		if tc.data == nil {
    			fi.Size = 42 // to prevent inlining of data
    		}
    		if tc.restoreObjStatus != "" {
    			fi.Metadata = map[string]string{
    				xhttp.AmzRestore: tc.restoreObjStatus,
    			}
    		}
    		fi.TransitionStatus = tc.transitionStatus
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  5. cmd/metrics.go

    		prometheus.DefaultGatherer,
    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsLegacy"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil {
    			if len(mfs) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

            defaultSettings.put("onelogin.saml2.sp.single_logout_service.url", "http://localhost:8080/sso/logout");
            defaultSettings.put("onelogin.saml2.sp.single_logout_service.binding", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect");
            defaultSettings.put("onelogin.saml2.sp.nameidformat", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe_test.go

    				Protocol: corev1.ProtocolUDP,
    				Port:     80,
    			},
    			expectedProtocol: "UDP",
    		},
    	}
    
    	for _, tc := range cases {
    		protocol := findProtocolForPort(&tc.port)
    		if protocol != tc.expectedProtocol {
    			t.Fatalf("Output didn't match for the port protocol: got %s want %s", protocol, tc.expectedProtocol)
    		}
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers_test.go

    					return i, false
    				}
    			}
    		}
    		return 0, true
    	}
    
    	for i, tc := range testCases {
    		got := topLockEntries(tc.peerLocks, false)
    		if idx, ok := check(tc.expected, got); !ok {
    			t.Fatalf("%d: mismatch at %d \n expected %#v but got %#v", i, idx, tc.expected[idx], got[idx])
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  9. cmd/auth-handler.go

    			amzDate, errCode := parseAmzDateHeader(r)
    			if errCode != ErrNone {
    				if ok {
    					tc.FuncName = "handler.Auth"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    				// All our internal APIs are sensitive towards Date
    				// header, for all requests where Date header is not
    				// present we will reject such clients.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  10. internal/bucket/object/lock/lock_test.go

    			value:        "complIAnce",
    			expectedMode: RetCompliance,
    		},
    		{
    			value:        "gce",
    			expectedMode: "",
    		},
    	}
    
    	for _, tc := range testCases {
    		if parseRetMode(tc.value) != tc.expectedMode {
    			t.Errorf("Expected Mode %s, got %s", tc.expectedMode, parseRetMode(tc.value))
    		}
    	}
    }
    
    func TestParseLegalHoldStatus(t *testing.T) {
    	tests := []struct {
    		value          string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
Back to top