Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,281 for testCases (0.29 sec)

  1. cmd/bucket-handlers_test.go

    		},
    	}
    
    	for i, testCase := range testCases {
    		var req *http.Request
    		var actualContent []byte
    
    		// Generate a signed or anonymous request based on the testCase
    		if testCase.accessKey != "" {
    			req, err = newTestSignedRequestV4(http.MethodPost, getDeleteMultipleObjectsURL("", testCase.bucket),
    				int64(len(testCase.objects)), bytes.NewReader(testCase.objects), testCase.accessKey, testCase.secretKey, nil)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  2. pkg/apis/core/taint_test.go

    				Value: "bar",
    			},
    			expectedString: "foo=bar:",
    		},
    	}
    
    	for i, tc := range testCases {
    		if tc.expectedString != tc.taint.ToString() {
    			t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString())
    		}
    	}
    }
    
    func TestMatchTaint(t *testing.T) {
    	testCases := []struct {
    		description  string
    		taint        *Taint
    		taintToMatch Taint
    		expectMatch  bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go

    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			for _, expressionAccessor := range tc.expressionAccessors {
    				_, err := compiler.CompileClaimsExpression(expressionAccessor)
    				if err != nil {
    					t.Errorf("unexpected error: %v", err)
    				}
    			}
    		})
    	}
    }
    
    func TestCompileUserExpression(t *testing.T) {
    	testCases := []struct {
    		name                string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. cmd/erasure-metadata-utils_test.go

    	}
    	// Validates list of all the testcases for returning valid errors.
    	for i, testCase := range testCases {
    		gotErr := reduceReadQuorumErrs(context.Background(), testCase.errs, testCase.ignoredErrs, 5)
    		if gotErr != testCase.err {
    			t.Errorf("Test %d : expected %s, got %s", i+1, testCase.err, gotErr)
    		}
    		gotNewErr := reduceWriteQuorumErrs(context.Background(), testCase.errs, testCase.ignoredErrs, 6)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/matcher/header_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.Name, func(t *testing.T) {
    			actual := HeaderMatcher(tc.K, tc.V)
    			if !cmp.Equal(tc.Expect, actual, protocmp.Transform()) {
    				t.Errorf("expecting %v, but got %v", tc.Expect, actual)
    			}
    		})
    	}
    }
    
    func TestHostMatcherWithRegex(t *testing.T) {
    	testCases := []struct {
    		Name   string
    		K      string
    		V      string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 17 22:42:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/cpumanager/cpu_assignment_test.go

    			60,
    			"",
    			mustParseCPUSet(t, "10-39,50-79"),
    		},
    	}
    }
    
    func TestTakeByTopologyNUMAPacked(t *testing.T) {
    	testCases := commonTakeByTopologyTestCases(t)
    	testCases = append(testCases, []takeByTopologyTestCase{
    		{
    			"take one cpu from dual socket with HT - core from Socket 0",
    			topoDualSocketHT,
    			cpuset.New(1, 2, 3, 4, 5, 7, 8, 9, 10, 11),
    			1,
    			"",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 17:31:37 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  7. pkg/controlplane/reconcilers/endpointsadapter_test.go

    		},
    	}
    
    	for name, testCase := range testCases {
    		t.Run(name, func(t *testing.T) {
    			client := fake.NewSimpleClientset(testCase.initialState...)
    			epAdapter := NewEndpointsAdapter(client.CoreV1(), client.DiscoveryV1())
    
    			endpoints, err := epAdapter.Get(testCase.namespaceParam, testCase.nameParam, metav1.GetOptions{})
    
    			if !apiequality.Semantic.DeepEqual(testCase.expectedError, err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. pkg/proxy/conntrack/conntrack_test.go

    	if ct.execer.(*fakeexec.FakeExec).CommandCalls != 1 {
    		return ""
    	}
    	return strings.Join(ct.fcmd.CombinedOutputLog[0], " ")
    }
    
    func TestExec(t *testing.T) {
    	testCases := []struct {
    		args      []string
    		result    fakeexec.FakeAction
    		expectErr bool
    	}{
    		{
    			args:      []string{"-D", "-p", "udp", "-d", "10.0.240.1"},
    			result:    success,
    			expectErr: false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:08:36 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. src/strings/search_test.go

    		{"at that", "which finally halts.  at that point", 22},
    	}
    
    	for _, tc := range testCases {
    		got := StringFind(tc.pat, tc.text)
    		want := tc.index
    		if got != want {
    			t.Errorf("stringFind(%q, %q) got %d, want %d\n", tc.pat, tc.text, got, want)
    		}
    	}
    }
    
    func TestFinderCreation(t *testing.T) {
    	testCases := []struct {
    		pattern string
    		bad     [256]int
    		suf     []int
    	}{
    		{
    			"abc",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  10. cluster/gce/gci/apiserver_etcd_test.go

    	ETCDKey                string
    	ETCDCert               string
    	StorageBackend         string
    	StorageMediaType       string
    	CompactionInterval     string
    }
    
    func TestServerOverride(t *testing.T) {
    	testCases := []struct {
    		desc string
    		env  kubeAPIServeETCDEnv
    		want []string
    	}{
    		{
    			desc: "ETCD-SERVERS is not set - default override",
    			want: []string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 18 11:14:24 UTC 2021
    - 5.6K bytes
    - Viewed (0)
Back to top