Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for tc (0.09 sec)

  1. pkg/registry/core/pod/storage/eviction_test.go

    				pod := validNewPod()
    				pod.Name = tc.podName
    				pod.Labels = map[string]string{"a": "true"}
    				pod.Spec.NodeName = "foo"
    				if tc.podPhase != "" {
    					pod.Status.Phase = tc.podPhase
    				}
    
    				if tc.podTerminating {
    					currentTime := metav1.Now()
    					pod.ObjectMeta.DeletionTimestamp = &currentTime
    				}
    
    				// Setup pod condition
    				if tc.prc != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/accesslog_test.go

    			tcp:      &tcp.TcpProxy{},
    			class:    networking.ListenerClassSidecarInbound,
    			expected: &tcp.TcpProxy{},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			b.setTCPAccessLog(tc.push, tc.proxy, tc.tcp, tc.class, nil)
    			assert.Equal(t, tc.expected, tc.tcp)
    		})
    	}
    }
    
    func TestSetHttpAccessLog(t *testing.T) {
    	b := newAccessLogBuilder()
    
    	env := newTestEnviroment()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			if !reflect.DeepEqual(sets.List(volumesFailedReconstruction), tc.expectedVolumesFailedReconstruction) {
    				t.Errorf("Expected volumesFailedReconstruction:\n%v\n got:\n%v", tc.expectedVolumesFailedReconstruction, sets.List(volumesFailedReconstruction))
    			}
    
    			if tc.verifyFunc != nil {
    				if err := tc.verifyFunc(rcInstance, fakePlugin); err != nil {
    					t.Errorf("Test %s failed: %v", tc.name, err)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. pkg/kubelet/network/dns/dns_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		options := mergeDNSOptions(tc.existingDNSConfigOptions, tc.dnsConfigOptions)
    		// Options order may be changed after conversion.
    		if !sets.New[string](options...).Equal(sets.New[string](tc.expectedOptions...)) {
    			t.Errorf("%s: mergeDNSOptions(%v, %v)=%v, want %v", tc.desc, tc.existingDNSConfigOptions, tc.dnsConfigOptions, options, tc.expectedOptions)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. pkg/controller/job/backoff_utils_test.go

    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			fakeClock := clocktesting.NewFakeClock(tc.currentTime.Truncate(time.Second))
    			d := tc.backoffRecord.getRemainingTime(fakeClock, tc.defaultBackoff, tc.maxBackoff)
    			if d.Seconds() != tc.wantDuration.Seconds() {
    				t.Errorf("Expected value of duration %v; got %v", tc.wantDuration, d)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_utils_test.go

    			new:     []string{"v1/set/bob", "v1/pod/foo"},
    			changed: false,
    		},
    	}
    	for _, tc := range testCases {
    		if ownerRefsChanged(toRefs(tc.orig), toRefs(tc.new)) != tc.changed {
    			t.Errorf("Expected change=%t but got %t for %v vs %v", tc.changed, !tc.changed, tc.orig, tc.new)
    		}
    	}
    }
    
    func TestGetParentNameAndOrdinal(t *testing.T) {
    	set := newStatefulSet(3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    			fakePodControl := controller.FakePodControl{Err: tc.podControllerError, CreateLimit: tc.podLimit}
    			manager.podControl = &fakePodControl
    			manager.podStoreSynced = alwaysReady
    			manager.jobStoreSynced = alwaysReady
    
    			// job & pods setup
    			job := newJob(tc.parallelism, tc.completions, tc.backoffLimit, tc.completionMode)
    			job.Spec.Suspend = ptr.To(tc.suspend)
    			if tc.jobPodReplacementPolicy {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/types_test.go

    			cfg:            &ClusterConfiguration{},
    			expectedResult: "",
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			if result := tc.cfg.EncryptionAlgorithmType(); result != tc.expectedResult {
    				t.Errorf("expected result: %s, got: %s", tc.expectedResult, result)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 09:39:24 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. cmd/http-tracer.go

    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if !ok {
    			// Tracing is not enabled for this request
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		tc.FuncName = getOpName(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
    		tc.RequestRecorder.LogBody = logBody
    		tc.ResponseRecorder.LogAllBody = logBody
    		tc.ResponseRecorder.LogErrBody = true
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. pilot/pkg/model/telemetry_logging_test.go

    						},
    					},
    				},
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			got := buildOpenTelemetryAccessLogConfig(tc.logName, tc.hostname, tc.clusterName, tc.body, tc.labels)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestTelemetryAccessLogExhaustiveness(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top