Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for tc (0.05 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			newPVSize:       resource.MustParse("15G"),
    			oldPVSize:       resource.MustParse("13G"),
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			pv := getTestPV(tc.pvName, tc.volumeMode, tc.oldPVSize)
    			pvc := getTestPVC("pv", tc.volumeMode, tc.pvcSize, tc.pvcStatusSize)
    			pod := getTestPod(pvc.Name)
    
    			// deep copy before reconciler runs to avoid data race.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. pkg/controller/cronjob/cronjob_controllerv2_test.go

    		},
    	}
    	for name, tc := range testCases {
    		name := name
    		tc := tc
    
    		t.Run(name, func(t *testing.T) {
    			cj := cronJob()
    			cj.Spec.ConcurrencyPolicy = tc.concurrencyPolicy
    			cj.Spec.Suspend = &tc.suspend
    			cj.Spec.Schedule = tc.schedule
    			cj.Spec.TimeZone = tc.timeZone
    			if tc.deadline != noDead {
    				cj.Spec.StartingDeadlineSeconds = &tc.deadline
    			}
    
    			var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  3. pkg/kubelet/pod_workers_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			podWorkers, _, _ := createPodWorkers()
    			if tc.podSyncStatuses != nil {
    				podWorkers.podSyncStatuses = tc.podSyncStatuses
    			}
    			if tc.startedStaticPodsByFullname != nil {
    				podWorkers.startedStaticPodsByFullname = tc.startedStaticPodsByFullname
    			}
    			if tc.waitingToStartStaticPodsByFullname != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    			volumeType: "ephemeral",
    		},
    	}
    
    	for _, tc := range testcases {
    		var pod *v1.Pod
    		var pvc *v1.PersistentVolumeClaim
    		var pv *v1.PersistentVolume
    
    		if tc.volumeType == "ephemeral" {
    			pod, pv, pvc = createEphemeralVolumeObjects("dswp-test-pod", "dswp-test-volume-name", true, &tc.volumeMode)
    		} else {
    			pv, pvc = createResizeRelatedVolumes(&tc.volumeMode)
    			containers := []v1.Container{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  5. pkg/controller/disruption/disruption_test.go

    			uid:        ss.UID,
    			findsScale: false,
    		},
    	}
    
    	for tn, tc := range testCases {
    		t.Run(tn, func(t *testing.T) {
    			controllerRef := &metav1.OwnerReference{
    				APIVersion: tc.apiVersion,
    				Kind:       tc.kind,
    				Name:       tc.name,
    				UID:        tc.uid,
    			}
    
    			controllerAndScale, _ := tc.finderFunc(ctx, controllerRef, metav1.NamespaceDefault)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  6. pilot/pkg/model/virtualservice_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			tc.delegate = config.DeepCopy(tc.delegate).([]*networking.HTTPMatchRequest)
    			got, _ := mergeHTTPMatchRequests(tc.root, tc.delegate)
    			assert.Equal(t, got, tc.expected)
    		})
    	}
    }
    
    func TestHasConflict(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/cluster_tls_test.go

    			cb := NewClusterBuilder(proxy, nil, model.DisabledCache{})
    			if tc.h2 {
    				setH2Options(tc.opts.mutable)
    			}
    			ret, err := cb.buildUpstreamClusterTLSContext(tc.opts, tc.tls)
    			if err != nil && tc.result.err == nil || err == nil && tc.result.err != nil {
    				t.Errorf("expecting:\n err=%v but got err=%v", tc.result.err, err)
    			} else if diff := cmp.Diff(tc.result.tlsContext, ret, protocmp.Transform()); diff != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  8. pkg/controller/endpointslice/endpointslice_controller_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			ns := metav1.NamespaceDefault
    			client, esController := newController(t, []string{"node-1"}, tc.batchPeriod)
    			stopCh := make(chan struct{})
    			defer close(stopCh)
    
    			_, ctx := ktesting.NewTestContext(t)
    			go esController.Run(ctx, 1)
    
    			addPods(t, esController, ns, tc.podsCount)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  9. src/net/netip/netip_test.go

    		{"::ffff:c000:0280", 16},
    		{"::ffff:c000:0280%eth0", 20},
    	}
    	for _, tc := range tests {
    		var ip Addr
    		if len(tc.ip) > 0 {
    			ip = mustIP(tc.ip)
    		}
    		b, err := ip.MarshalBinary()
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(b) != tc.wantSize {
    			t.Fatalf("%q encoded to size %d; want %d", tc.ip, len(b), tc.wantSize)
    		}
    		var ip2 Addr
    		if err := ip2.UnmarshalBinary(b); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  10. tests/integration/ambient/baseline_test.go

    				WithParams(param.Params{}.SetWellKnown(param.Namespace, apps.Namespace))
    
    			ips, ports := istio.DefaultIngressOrFail(t, t).HTTPAddresses()
    			for _, tc := range testCases {
    				tc := tc
    				for i, ip := range ips {
    					t.NewSubTestf("%s %s %s", tc.location, tc.resolution, ip).Run(func(t framework.TestContext) {
    						echotest.
    							New(t, apps.All).
    							// TODO eventually we can do this for uncaptured -> l7
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
Back to top