- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 71 for NewTestContext (0.28 sec)
-
pkg/kubelet/volumemanager/reconciler/reconstruct_test.go
rcInstance, _ := rc.(*reconciler) rcInstance.volumesFailedReconstruction = tc.volumesFailedReconstruction logger, _ := ktesting.NewTestContext(t) for _, tpodInfo := range tc.podInfos { pod := getInlineFakePod(tpodInfo.podName, tpodInfo.podUID, tpodInfo.outerVolumeName, tpodInfo.innerVolumeName) volumeSpec := &volume.Spec{Volume: &pod.Spec.Volumes[0]}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.8K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go
// wait for the test to execute verification steps before // the server signals the next steps <-beforeShutdownDelayDurationStep.done() }, nil) // start the API server _, ctx := ktesting.NewTestContext(t) stopCtx, stop := context.WithCancelCause(ctx) defer stop(errors.New("test has completed")) runCompletedCh := make(chan struct{}) go func() { defer close(runCompletedCh)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 38.3K bytes - Viewed (0) -
cmd/kube-controller-manager/app/controllermanager_test.go
t.Run(test.name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SeparateTaintEvictionController, test.enableFeatureGate) _, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel() controllerCtx := ControllerContext{} controllerCtx.ComponentConfig.Generic.Controllers = []string{names.TaintEvictionController}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/provision_test.go
// Default enable the HonorPVReclaimPolicy feature gate. featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.HonorPVReclaimPolicy, true) _, ctx := ktesting.NewTestContext(t) tests := []controllerTest{ { // Provision a volume (with a default class) name: "11-1 - successful provision with storage class 1", initialVolumes: novolumes,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 35.3K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
for _, tc := range testCases { for _, useOtherRefs := range []bool{false, true} { for _, setPodRef := range []bool{false, true} { for _, setSetRef := range []bool{false, true} { _, ctx := ktesting.NewTestContext(t) logger := klog.FromContext(ctx) claim := v1.PersistentVolumeClaim{} claim.Name = "target-claim" pod := v1.Pod{} pod.Name = fmt.Sprintf("pod-%d", tc.ordinal)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
expectedDelay: 0 * time.Second, }, // TODO: Add more test cases for updating scheduling. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { logger, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel() kubeClient := fake.NewSimpleClientset() sharedInformers := informers.NewSharedInformerFactory(kubeClient, controller.NoResyncPeriodFunc())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { profile := config.KubeSchedulerProfile{Plugins: tt.plugins} _, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel() _, err := newFrameworkWithQueueSortAndBind(ctx, registry, profile) if tt.initErr && err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go
name: "include InitContainers: two images spread on two nodes, prefer the larger image one", }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { _, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel() snapshot := cache.NewSnapshot(nil, test.nodes) state := framework.NewCycleState()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 06:17:57 UTC 2024 - 10.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go
scLister: getFakeCSIStorageClassLister(scName, test.driverNames[0]), randomVolumeIDPrefix: rand.String(32), translator: csiTranslator, } _, ctx := ktesting.NewTestContext(t) _, gotPreFilterStatus := p.PreFilter(ctx, nil, test.newPod) if diff := cmp.Diff(test.wantPreFilterStatus, gotPreFilterStatus); diff != "" { t.Errorf("PreFilter status does not match (-want, +got): %s", diff)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 18:07:11 UTC 2024 - 28.6K bytes - Viewed (0)