Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 429 for tc (0.02 sec)

  1. pkg/controller/bootstrap/tokencleaner.go

    func (tc *TokenCleaner) processNextWorkItem(ctx context.Context) bool {
    	key, quit := tc.queue.Get()
    	if quit {
    		return false
    	}
    	defer tc.queue.Done(key)
    
    	if err := tc.syncFunc(ctx, key); err != nil {
    		tc.queue.AddRateLimited(key)
    		utilruntime.HandleError(fmt.Errorf("Sync %v failed with : %v", key, err))
    		return true
    	}
    
    	tc.queue.Forget(key)
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/escaping_test.go

    			}
    
    			if !validCelIdent.MatchString(e) {
    				t.Errorf("Expected %s to escape to a valid CEL identifier, but got %s", tc.unescaped, e)
    			}
    
    			u, ok := Unescape(tc.escaped)
    			if !ok {
    				t.Fatalf("Expected %s to be escapable, but it was not", tc.escaped)
    			}
    			if tc.unescaped != u {
    				t.Errorf("Expected %s to unescape to %s, but got %s", tc.escaped, tc.unescaped, u)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  3. tests/integration/pilot/revisions/revision_tag_test.go

    			baseArgs := []string{"tag"}
    			for _, tc := range tcs {
    				t.NewSubTest(tc.name).Run(func(t framework.TestContext) {
    					tagSetArgs := append(baseArgs, "set", tc.tag, "--revision", tc.revision, "--skip-confirmation", "--overwrite")
    					tagSetArgs = append(tagSetArgs, "--manifests", filepath.Join(env.IstioSrc, "manifests"))
    					tagRemoveArgs := append(baseArgs, "remove", tc.tag, "-y")
    
    					_, cmdErr, _ := istioCtl.Invoke(tagSetArgs)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pkg/registry/rbac/validation/rule_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		gotIndex, got := appliesTo(tc.user, tc.subjects, tc.namespace)
    		if got != tc.appliesTo {
    			t.Errorf("case %q want appliesTo=%t, got appliesTo=%t", tc.testCase, tc.appliesTo, got)
    		}
    		if gotIndex != tc.index {
    			t.Errorf("case %q want index %d, got %d", tc.testCase, tc.index, gotIndex)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/finisher/finisher_test.go

    				case r != nil && len(tc.expectedPanic) > 0 && !strings.Contains(fmt.Sprintf("%v", r), tc.expectedPanic):
    					t.Errorf("expected panic containing '%s', got '%v'", tc.expectedPanic, r)
    				}
    
    				if tc.expectedPanicObj != nil && !reflect.DeepEqual(tc.expectedPanicObj, r) {
    					t.Errorf("expected panic obj %#v, got %#v", tc.expectedPanicObj, r)
    				}
    			}()
    			obj, err := FinishRequest(ctx, tc.fn)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 14:20:33 UTC 2021
    - 8.2K bytes
    - Viewed (0)
  6. pkg/client/tests/fake_client_test.go

    	}
    }
    
    func TestFakeClientsetInheritsNamespace(t *testing.T) {
    	tc := clientsetfake.NewSimpleClientset(
    		testNamespace("nsA"),
    		testPod("nsA", "pod-1"),
    	)
    
    	_, err := tc.CoreV1().Namespaces().Create(context.TODO(), testNamespace("nsB"), metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("Namespaces.Create: %s", err)
    	}
    
    	allNS, err := tc.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/util/cdi/cdi_test.go

    		},
    	}
    
    	as := assert.New(t)
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			annotations, err := GenerateAnnotations("test-claim-uid", "test-driver-name", tc.deviceIDs)
    			as.ErrorIs(err, tc.expecteError)
    			as.Equal(tc.expectedAnnotations, annotations)
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:47:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. pkg/kubelet/util/swap/swap_util_test.go

    		{
    			name: "empty lines",
    			procSwapsContent: `
    
    `,
    			expectedEnabled: false,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			isEnabled := isSwapOnAccordingToProcSwaps([]byte(tc.procSwapsContent))
    			if isEnabled != tc.expectedEnabled {
    				t.Errorf("expected %v, got %v", tc.expectedEnabled, isEnabled)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    			notifier.EXPECT().Start(events).Return().AnyTimes()
    			err := m.UpdateThreshold(nodeSummary(tc.available, tc.workingSet, tc.usage, isAllocatableEvictionThreshold(tc.evictionThreshold)))
    			if err != nil && !tc.expectErr {
    				t.Errorf("Unexpected error updating threshold: %v", err)
    			} else if err == nil && tc.expectErr {
    				t.Errorf("Expected error updating threshold, but got nil")
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    		},
    	}
    
    	for name, tc := range testcases {
    		t.Run(name, func(t *testing.T) {
    			tCtx := ktesting.Init(t)
    
    			controller, createErr := NewClaimController(tc.filter, tc.requests)
    			if createErr != nil {
    				if !tc.expectCreateErr {
    					tCtx.Fatalf("unexpected create error: %v", createErr)
    				}
    				return
    			}
    			if tc.expectCreateErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top