- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 160 for tc (0.03 sec)
-
pkg/apis/core/v1/helper/helpers_test.go
}, { resourceName: "", expectVal: true, }, } for _, tc := range testCases { tc := tc t.Run(fmt.Sprintf("resourceName input=%s, expected value=%v", tc.resourceName, tc.expectVal), func(t *testing.T) { t.Parallel() v := IsNativeResource(tc.resourceName) if v != tc.expectVal { t.Errorf("Got %v but expected %v", v, tc.expectVal) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 16.9K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/range_allocator_test.go
} // test function tCtx := ktesting.Init(t) for _, tc := range testCases { t.Run(tc.description, func(t *testing.T) { // Initialize the range allocator. fakeNodeInformer := test.FakeNodeInformer(tc.fakeNodeHandler) nodeList, _ := tc.fakeNodeHandler.List(tCtx, metav1.ListOptions{}) _, err := NewCIDRRangeAllocator(tCtx, tc.fakeNodeHandler, fakeNodeInformer, tc.allocatorParams, nodeList) if err == nil && tc.ctrlCreateFail {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 25.2K bytes - Viewed (0) -
pkg/registry/policy/poddisruptionbudget/strategy_test.go
}, } for name, tc := range tests { t.Run(name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PDBUnhealthyPodEvictionPolicy, tc.enableUnhealthyPodEvictionPolicy) oldSpecBefore := tc.oldSpec.DeepCopy() dropDisabledFields(tc.newSpec, tc.oldSpec) if !reflect.DeepEqual(tc.newSpec, tc.expectNewSpec) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19.2K bytes - Viewed (0) -
pkg/volume/util/atomic_writer_test.go
continue } checkVolumeContents(targetDir, tc.name, tc.first, t) if !tc.shouldWrite { continue } err = writer.Write(tc.next, nil) if err != nil { if tc.shouldWrite { t.Errorf("%v: unexpected error writing: %v", tc.name, err) continue } } else if !tc.shouldWrite { t.Errorf("%v: unexpected success", tc.name) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 30.5K bytes - Viewed (0) -
pkg/volume/csi/csi_client_test.go
context.Background(), tc.volID, map[string]string{"device": "/dev/null"}, tc.stagingTargetPath, tc.fsType, api.ReadWriteOnce, tc.secrets, map[string]string{"attr0": "val0"}, tc.mountOptions, tc.fsGroup, ) checkErr(t, tc.mustFail, err) volumeMountGroup := nodeClient.GetNodeStagedVolumes()[tc.volID].VolumeMountGroup
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction.go
tc.broadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: tc.client.CoreV1().Events("")}) } else { logger.Error(nil, "kubeClient is nil", "controller", tc.name) klog.FlushAndExit(klog.ExitFlushTimeout, 1) } defer tc.broadcaster.Shutdown() defer tc.nodeUpdateQueue.ShutDown() defer tc.podUpdateQueue.ShutDown() // wait for the cache to be synced
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/runtime/runtime_test.go
shouldError: true, }, } { t.Run(tc.name, func(t *testing.T) { containerRuntime := NewContainerRuntime("") mock := &fakeImpl{} if tc.prepare != nil { tc.prepare(mock) } containerRuntime.SetImpl(mock) err := containerRuntime.Connect() assert.Equal(t, tc.shouldError, err != nil) }) } } func TestIsRunning(t *testing.T) { for _, tc := range []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 06:33:22 UTC 2024 - 11.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/version_test.go
}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { output, err := kubeadmVersion(tc.input) if (err != nil) != tc.parsingError { t.Fatalf("expected error: %v, got: %v", tc.parsingError, err != nil) } if (output != tc.output) != tc.outputError { t.Fatalf("expected output: %s, got: %s, for input: %s", tc.output, output, tc.input) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 03:30:51 UTC 2024 - 15K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
tc.startingPod.ResourceVersion = "2" tc.startingPod.APIVersion = examplev1.SchemeGroupVersion.String() // pod with rv=3 is found when attempting to persist the update tc.updatePod.Name = name tc.updatePod.Namespace = namespace tc.updatePod.UID = uid tc.updatePod.ResourceVersion = "3" tc.updatePod.APIVersion = examplev1.SchemeGroupVersion.String() // patches are submitted with a rv=2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
}, } for name, tc := range cases { t.Run(name, func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, true) activePods := controller.FilterActivePods(logger, tc.pods) failedIndexes := calculateFailedIndexes(logger, &tc.job, tc.pods) _, succeededIndexes := calculateSucceededIndexes(logger, &tc.job, tc.pods) jobCtx := &syncJobCtx{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0)