Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPolicySourceHasSyncedInitialList (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source_test.go

    	// Should be able to wait for cache sync
    	require.True(t, cache.WaitForCacheSync(testContext.Done(), testContext.Source.HasSynced), "cache should sync after informer running")
    }
    
    func TestPolicySourceHasSyncedInitialList(t *testing.T) {
    	// Create a list of fake policies
    	initialObjects := []runtime.Object{
    		&FakePolicy{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "policy1",
    			},
    		},
    		&FakeBinding{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top