Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,054 for testCases (0.22 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/net/port_range_test.go

    		{"0+65535", true, "0-65535", 65535, 65536},
    	}
    
    	for i := range testCases {
    		tc := &testCases[i]
    		pr := &PortRange{}
    		var f flag.Value = pr
    		err := f.Set(tc.input)
    		if err != nil && tc.success {
    			t.Errorf("expected success, got %q", err)
    			continue
    		} else if err == nil && !tc.success {
    			t.Errorf("expected failure %#v", testCases[i])
    			continue
    		} else if tc.success {
    			if f.String() != tc.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/convert_test.go

    						Value: "handler",
    					},
    				},
    			},
    		},
    	}
    
    	for _, test := range testCases {
    		actual := toKubeContainerImageSpec(test.input)
    		assert.Equal(t, test.expected, actual)
    	}
    }
    
    func TestConvertToRuntimeAPIImageSpec(t *testing.T) {
    	testCases := []struct {
    		input    kubecontainer.ImageSpec
    		expected *runtimeapi.ImageSpec
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. pkg/credentialprovider/plugin/plugin_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testcases {
    		testcase := testcase
    		t.Run(testcase.name, func(t *testing.T) {
    			t.Parallel()
    			dockerconfig := testcase.pluginProvider.Provide(testcase.image)
    			if !reflect.DeepEqual(dockerconfig, testcase.dockerconfig) {
    				t.Logf("actual docker config: %v", dockerconfig)
    				t.Logf("expected docker config: %v", testcase.dockerconfig)
    				t.Error("unexpected docker config")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 09 06:11:06 UTC 2022
    - 26.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top