- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 73 for testCases (0.15 sec)
-
pkg/apis/core/v1/defaults_test.go
} } return true } for i, testcase := range tests { node := v1.Node{ Status: v1.NodeStatus{ Capacity: copyResourceList(testcase.capacity), Allocatable: copyResourceList(testcase.allocatable), }, } node2 := roundTrip(t, runtime.Object(&node)).(*v1.Node) actual := node2.Status.Allocatable expected := testcase.expectedAllocatable
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
pkg/kubelet/pod_workers_test.go
t.Errorf("Incorrect number of tracked statuses: %#v", podWorkers.podSyncStatuses) } } func Test_removeTerminatedWorker(t *testing.T) { podUID := types.UID("pod-uid") testCases := []struct { desc string orphan bool podSyncStatus *podSyncStatus startedStaticPodsByFullname map[string]types.UID
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0) -
pkg/kubelet/status/status_manager_test.go
expectWaiting := func(t *testing.T, state v1.ContainerState) { t.Helper() if state.Terminated != nil || state.Running != nil || state.Waiting == nil { t.Fatalf("unexpected state: %#v", state) } } testCases := []struct { name string pod *v1.Pod updateFn func(*v1.Pod) expectFn func(t *testing.T, status v1.PodStatus) }{ {pod: newPod(0, 1, func(pod *v1.Pod) { pod.Status.Phase = v1.PodFailed })},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0) -
cmd/sts-handlers_test.go
// Init and run test on ErasureSet backend. {serverType: "ErasureSet", signer: signerV4}, } testCases := []*TestSuiteIAM{} for _, bt := range baseTestCases { testCases = append(testCases, newTestSuiteIAM(bt, false), newTestSuiteIAM(bt, true), ) } for i, testCase := range testCases { etcdStr := "" if testCase.withEtcdBackend { etcdStr = " (with etcd backend)" } t.Run(
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 18:45:50 UTC 2024 - 90K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
s.Ports = append(s.Ports, &model.Port{ Port: port, }) } return s } type testcase struct { name string prev *corev1.Service curr *corev1.Service prevConv *model.Service currConv *model.Service expect bool } tests := []testcase{ { name: "no change", prevConv: newService(visibility.Public, []int{80}),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
Spec: &extensions.WasmPlugin{ Phase: extensions.PluginPhase_AUTHZ, Priority: &wrapperspb.Int32Value{Value: 1000}, }, }, } testCases := []struct { name string node *Proxy listenerInfo WasmPluginListenerInfo pluginType WasmPluginType
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/options_test.go
t.Errorf("Got different configuration than expected.\nDifference detected on:\n%s", cmp.Diff(expected.ComponentConfig, c.ComponentConfig)) } } func TestValidateControllersOptions(t *testing.T) { testCases := []struct { name string expectErrors bool expectedErrorSubString string options interface { Validate() []error } }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 02:59:09 UTC 2024 - 55.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
{"0", "0", 0}, {"100m", "50m", 1}, {"50m", "100m", -1}, {"10000T", "100Gi", 1}, } for _, testCase := range table { q1 := MustParse(testCase.x) q2 := MustParse(testCase.y) if result := q1.Cmp(q2); result != testCase.expect { t.Errorf("X: %v, Y: %v, Expected: %v, Actual: %v", testCase.x, testCase.y, testCase.expect, result) } } // Test when i is {0,0} table2 := []struct { x *inf.Dec
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_tls_test.go
func TestBuildUpstreamClusterTLSContext(t *testing.T) { clientCert := "/path/to/cert" rootCert := "path/to/cacert" clientKey := "/path/to/key" credentialName := "some-fake-credential" testCases := []struct { name string opts *buildClusterOpts tls *networking.ClientTLSSettings h2 bool router bool
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 03:53:05 UTC 2024 - 60.9K bytes - Viewed (0) -
cmd/erasure-healing_test.go
// Add new cases as seen } for _, testCase := range testCases { testCase := testCase t.Run(testCase.name, func(t *testing.T) { gotMeta, dangling := isObjectDangling(testCase.metaArr, testCase.errs, testCase.dataErrs) if !gotMeta.Equals(testCase.expectedMeta) { t.Errorf("Expected %#v, got %#v", testCase.expectedMeta, gotMeta) } if dangling != testCase.expectedDangling {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 49K bytes - Viewed (0)