Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 139 for tc (0.07 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		errs := validateStructuralCompleteness(&tc.schema, nil, tc.options)
    		if len(tc.error) == 0 && len(errs) != 0 {
    			t.Errorf("unexpected errors: %v", errs)
    		}
    		if len(tc.error) != 0 {
    			contains := false
    
    			for _, err := range errs {
    				if strings.Contains(err.Error(), tc.error) {
    					contains = true
    					break
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. pkg/controller/resourceclaim/controller_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		// Run sequentially because of global logging and global metrics.
    		t.Run(tc.name, func(t *testing.T) {
    			ctx, cancel := context.WithCancel(context.Background())
    			defer cancel()
    
    			var objects []runtime.Object
    			for _, pod := range tc.pods {
    				objects = append(objects, pod)
    			}
    			for _, claim := range tc.claims {
    				objects = append(objects, claim)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K 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 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. pkg/serviceaccount/claims_test.go

    			},
    		)
    	}
    
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			v := &validator{getter: tc.getter}
    			expiry := jwt.NumericDate(nowUnix)
    			if tc.expiry != 0 {
    				expiry = tc.expiry
    			}
    
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ServiceAccountTokenNodeBindingValidation, tc.featureNodeBindingValidation)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. pkg/proxy/util/utils_test.go

    				mustParseIPAddr("8.8.8.8"),
    				mustParseIPAddr("1000::"),
    				mustParseIPAddr("192.168.1.1"),
    			},
    			sets.New("1000::"),
    		},
    	}
    
    	for _, tc := range testCases {
    		if !tc.expected.Equal(AddressSet(tc.validator, tc.input)) {
    			t.Errorf("%s", tc.name)
    		}
    	}
    }
    
    func TestIsZeroCIDR(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    string
    		expected bool
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    		},
    	}
    	for _, tc := range testCases {
    		b.Run(tc.name, func(b *testing.B) {
    			// booting etcd instance
    			ctx, store, etcdClient := testSetup(b)
    			defer etcdClient.Close()
    
    			// make fake objects..
    			dir := "/testing"
    			originalRevision := ""
    			for i := 0; i < tc.objectNum; i++ {
    				obj := tc.newObjectFunc(i, tc.objectNum, tc.expectNum)
    				o := obj.(metav1.Object)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  7. pkg/config/analysis/analyzers/analyzers_test.go

    	// For each test case, verify we get the expected messages as output
    	for _, tc := range testGrid {
    		tc := tc // Capture range variable so subtests work correctly
    		t.Run(tc.name, func(t *testing.T) {
    			g := NewWithT(t)
    
    			// Set up a hook to record which collections are accessed by each analyzer
    			analyzerName := tc.analyzer.Metadata().Name
    			cr := func(col config.GroupVersionKind) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 07:22:31 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. pkg/controller/job/success_policy_test.go

    			if tc.wantMetSuccessPolicy != gotMetSuccessPolicy {
    				t.Errorf("Unexpected bool from matchSuccessPolicy\nwant:%v\ngot:%v\n", tc.wantMetSuccessPolicy, gotMetSuccessPolicy)
    			}
    			if diff := cmp.Diff(tc.wantMessage, gotMessage); diff != "" {
    				t.Errorf("Unexpected message from matchSuccessPolicy (-want,+got):\n%s", diff)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/v1/defaults_test.go

    				},
    			},
    		},
    	}
    	for _, tc := range tests {
    		scheme := runtime.NewScheme()
    		utilruntime.Must(AddToScheme(scheme))
    		t.Run(tc.name, func(t *testing.T) {
    			for k, v := range tc.features {
    				featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, k, v)
    			}
    			scheme.Default(tc.in)
    			if diff := cmp.Diff(tc.want, tc.in); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. pkg/controller/volume/persistentvolume/pv_controller_test.go

    	logger, _ := ktesting.NewTestContext(t)
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			if tc.volumeAnnotations != nil {
    				tc.initialVolume.SetAnnotations(tc.volumeAnnotations)
    			}
    			modifiedFinalizers, modified := modifyDeletionFinalizers(logger, cmpm, tc.initialVolume)
    			if modified != tc.expModified {
    				t.Errorf("got modified: %v, but expected: %v", modified, tc.expModified)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
Back to top