Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 188 for testcalls (0.07 sec)

  1. internal/http/listener_test.go

    	nonLoopBackIP := getNonLoopBackIP(t)
    
    	testCases := []struct {
    		serverAddrs []string
    	}{
    		{[]string{"localhost:0"}},
    		{[]string{nonLoopBackIP + ":0"}},
    		{[]string{"127.0.0.1:0", nonLoopBackIP + ":0"}},
    		{[]string{"localhost:0"}},
    		{[]string{nonLoopBackIP + ":0"}},
    		{[]string{"127.0.0.1:0", nonLoopBackIP + ":0"}},
    	}
    
    nextTest:
    	for i, testCase := range testCases {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. cmd/object-handlers-common_test.go

    	"bytes"
    	"context"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    // Tests - canonicalizeETag()
    func TestCanonicalizeETag(t *testing.T) {
    	testCases := []struct {
    		etag              string
    		canonicalizedETag string
    	}{
    		{
    			etag:              "\"\"\"",
    			canonicalizedETag: "",
    		},
    		{
    			etag:              "\"\"\"abc\"",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. cmd/erasure-metadata_test.go

    	}
    
    	// Add failure test case.
    	testCases = append(testCases, struct {
    		partNum       int
    		expectedIndex int
    	}{6, -1})
    
    	// Test them.
    	for _, testCase := range testCases {
    		if index := objectPartIndex(fi.Parts, testCase.partNum); index != testCase.expectedIndex {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. cmd/bucket-handlers_test.go

    	}
    
    	url := getListMultipartUploadsURLWithParams("", testCases[6].bucket, testCases[6].prefix, testCases[6].keyMarker,
    		testCases[6].uploadIDMarker, testCases[6].delimiter, testCases[6].maxUploads)
    	// Test for Anonymous/unsigned http request.
    	anonReq, err := newTestRequest(http.MethodGet, url, 0, nil)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  5. cmd/signature-v2_test.go

    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	now := UTCNow()
    
    	var (
    		accessKey = globalActiveCred.AccessKey
    		secretKey = globalActiveCred.SecretKey
    	)
    	testCases := []struct {
    		queryParams map[string]string
    		expected    APIErrorCode
    	}{
    		// (0) Should error without a set URL query.
    		{
    			expected: ErrInvalidQueryParams,
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses_test.go

    			}
    		})
    	}
    }
    
    func TestGetDivisibleSize(t *testing.T) {
    	testCases := []struct {
    		totalSizes []uint64
    		result     uint64
    	}{
    		{[]uint64{24, 32, 16}, 8},
    		{[]uint64{32, 8, 4}, 4},
    		{[]uint64{8, 8, 8}, 8},
    		{[]uint64{24}, 24},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotGCD := getDivisibleSize(testCase.totalSizes)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. internal/store/store_test.go

    			expectedString: "01894394-d046-4783-ba0d-f1c6885790dc.event",
    		},
    	}
    
    	for i, testCase := range testCases {
    		if testCase.expectedString != testCase.key.String() {
    			t.Fatalf("case[%v]: key.String() Expected: %s, got %s", i, testCase.expectedString, testCase.key.String())
    		}
    	}
    }
    
    func TestParseKey(t *testing.T) {
    	testCases := []struct {
    		str         string
    		expectedKey Key
    	}{
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users-race_test.go

    		// Init and run test on ErasureSet backend.
    		{serverType: "ErasureSet", signer: signerV4},
    	}
    	testCases := []*TestSuiteIAM{}
    	for _, bt := range baseTestCases {
    		testCases = append(testCases,
    			newTestSuiteIAM(bt, false),
    			newTestSuiteIAM(bt, true),
    		)
    	}
    	for i, testCase := range testCases {
    		etcdStr := ""
    		if testCase.withEtcdBackend {
    			etcdStr = " (with etcd backend)"
    		}
    		t.Run(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. cmd/api-resources_test.go

    package cmd
    
    import (
    	"net/url"
    	"testing"
    )
    
    // Test list objects resources V2.
    func TestListObjectsV2Resources(t *testing.T) {
    	testCases := []struct {
    		values                               url.Values
    		prefix, token, startAfter, delimiter string
    		fetchOwner                           bool
    		maxKeys                              int
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  10. cmd/http-tracer_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    )
    
    // Test redactLDAPPwd()
    func TestRedactLDAPPwd(t *testing.T) {
    	testCases := []struct {
    		query         string
    		expectedQuery string
    	}{
    		{"", ""},
    		{
    			"?Action=AssumeRoleWithLDAPIdentity&LDAPUsername=myusername&LDAPPassword=can+youreadthis%3F&Version=2011-06-15",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top