- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for testPass (0.16 sec)
-
pkg/config/validation/validation_test.go
}) } } func TestValidateHTTPHeaderName(t *testing.T) { testCases := []struct { name string valid bool }{ {name: "header1", valid: true}, {name: "X-Requested-With", valid: true}, {name: "", valid: false}, } for _, tc := range testCases { if got := ValidateHTTPHeaderName(tc.name); (got == nil) != tc.valid {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 03:11:45 UTC 2024 - 196K bytes - Viewed (0) -
pkg/api/pod/util_test.go
}, }, } for _, tc := range testCases { t.Run(tc.desc, func(t *testing.T) { MarkPodProposedForResize(tc.oldPod, tc.newPod) if diff := cmp.Diff(tc.expectedPod, tc.newPod); diff != "" { t.Errorf("unexpected pod spec (-want, +got):\n%s", diff) } }) } } func TestDropClusterTrustBundleProjectedVolumes(t *testing.T) { testCases := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
if pod.Annotations == nil { pod.Annotations = make(map[string]string) } pod.Annotations[key] = "true" } mile := func(s string) { milestones = append(milestones, s) } testCases := []struct { name string decorator func(runtime.Object) beginCreate BeginCreateFunc afterCreate AfterCreateFunc // the TTLFunc is an easy hook to force a failure
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
pkg/apis/batch/validation/validation_test.go
validPodTemplateSpec := getValidPodTemplateSpecForGenerated(getValidGeneratedSelector()) validPodTemplateSpec.Labels = map[string]string{} type testCase struct { old *batch.CronJobSpec new *batch.CronJobSpec expectErr bool } cases := map[string]testCase{ "no validation because timeZone is nil for old and new": { old: &batch.CronJobSpec{ Schedule: "0 * * * *",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 20:49:09 UTC 2024 - 124.3K bytes - Viewed (0) -
pkg/kubelet/eviction/eviction_manager_test.go
func TestPIDPressure_VerifyPodStatus(t *testing.T) { testCases := map[string]struct { wantPodStatus v1.PodStatus }{ "eviction due to pid pressure": { wantPodStatus: v1.PodStatus{ Phase: v1.PodFailed, Reason: "Evicted", Message: "The node was low on resource: pids. Threshold quantity: 1200, available: 500. ", }, }, } for name, tc := range testCases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 119.9K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
newPod.ResourceVersion = "2" testCases := map[string]struct { requeues int oldPodPhase v1.PodPhase phase v1.PodPhase wantBackoff time.Duration }{ "failure with pod updates batching": { requeues: 0, phase: v1.PodFailed, wantBackoff: syncJobBatchPeriod, }, } for name, tc := range testCases { t.Run(name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
tests/integration/pilot/common/routing.go
func VMTestCases(vms echo.Instances) func(t TrafficContext) { return func(t TrafficContext) { if t.Settings().Skip(echo.VM) { t.Skipf("VMs are disabled") } var testCases []vmCase for _, vm := range vms { testCases = append(testCases, vmCase{ name: "dns: VM to k8s cluster IP service name.namespace host", from: vm, to: t.Apps.A,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
pkg/registry/batch/job/strategy_test.go
}, } validSpec := batch.JobSpec{ CompletionMode: completionModePtr(batch.NonIndexedCompletion), Selector: nil, Template: validPodTemplate, } testcases := map[string]struct { job *batch.Job wantWarningsCount int32 }{ "happy path job": { job: &batch.Job{ ObjectMeta: metav1.ObjectMeta{ Name: "myjob2",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 101.5K bytes - Viewed (0) -
src/reflect/all_test.go
Embed x, X int } type S4 struct { *Embed x, X int } type testCase struct { // -1 means Addr().Elem() of current value index []int canSet bool } tests := []struct { val Value cases []testCase }{{ val: ValueOf(&S1{}), cases: []testCase{ {[]int{0}, false}, {[]int{0, -1}, false}, {[]int{0, 0}, false}, {[]int{0, 0, -1}, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
pilot/pkg/networking/core/gateway_test.go
"istio.io/istio/pkg/proto" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/test" "istio.io/istio/pkg/util/sets" "istio.io/istio/pkg/wellknown" ) func TestBuildGatewayListenerTlsContext(t *testing.T) { testCases := []struct { name string server *networking.Server result *auth.DownstreamTlsContext transportProtocol istionetworking.TransportProtocol mesh *meshconfig.MeshConfig
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 04:44:06 UTC 2024 - 144K bytes - Viewed (0)