Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for tc (0.07 sec)

  1. 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)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    				t.Fatalf("Unexpected success")
    			}
    
    			// verify the results
    			if tc.expectAnnotation != "" {
    				out := obj.(*example.Pod)
    				if v, found := out.Annotations[tc.expectAnnotation]; !found {
    					t.Errorf("Expected annotation %q not found", tc.expectAnnotation)
    				} else if v != "true" {
    					t.Errorf("Expected annotation %q has wrong value: %q", tc.expectAnnotation, v)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods_test.go

    			default:
    				assert.Equal(t, "", tc.expectedEvent)
    			}
    			if tc.expectedError {
    				assert.Error(t, err, tc.name)
    			} else {
    				assert.NoError(t, err, "[%s]", tc.name)
    
    				sort.Sort(envs(result))
    				sort.Sort(envs(tc.expectedEnvs))
    				assert.Equal(t, tc.expectedEnvs, result, "[%s] env entries", tc.name)
    			}
    		})
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_builder_test.go

    			result := getTLSContext(t, ec.cluster)
    			if diff := cmp.Diff(result, tc.expectTLSContext, protocmp.Transform()); diff != "" {
    				t.Errorf("got diff: `%v", diff)
    			}
    
    			if tc.enableAutoSni {
    				if tc.destRule.GetTrafficPolicy().GetTls().Sni == "" {
    					assert.Equal(t, ec.httpProtocolOptions.UpstreamHttpProtocolOptions.AutoSni, true)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster_test.go

    			}
    			clusters, removed, delta := cg.DeltaClusters(proxy, tc.configUpdated,
    				&model.WatchedResource{ResourceNames: tc.watchedResourceNames})
    			if delta != tc.usedDelta {
    				t.Errorf("un expected delta, want %v got %v", tc.usedDelta, delta)
    			}
    			assert.Equal(t, removed, tc.removedClusters)
    			assert.Equal(t, xdstest.MapKeys(xdstest.ExtractClusters(clusters)), tc.expectedClusters)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_test.go

    		if !found {
    			t.Fatalf("resource allocation should exist: (pod: %#v, container: %s)", tc.pod, tc.pod.Spec.Containers[0].Name)
    		}
    		assert.Equal(t, tc.expectedPodResourceAllocation[string(tc.pod.UID)][tc.pod.Spec.Containers[0].Name], allocatedResources, tc.name)
    	}
    }
    
    func TestHandlePodResourcesResize(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  7. src/net/http/transport_test.go

    		{disableKeepAlives: true, close: true},
    	}
    
    	for _, tc := range tests {
    		t.Run(fmt.Sprintf("DisableKeepAlive=%v,RequestClose=%v", tc.disableKeepAlives, tc.close),
    			func(t *testing.T) {
    				ts := newClientServerTest(t, mode, hostPortHandler).ts
    
    				c := ts.Client()
    				c.Transport.(*Transport).DisableKeepAlives = tc.disableKeepAlives
    				req, err := NewRequest("GET", ts.URL, nil)
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    	gatherers := prometheus.Gatherers{
    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    		{"/foo%2Fbar/qux", "", ""}, // Escaped prefix does not match.
    		{"/bar", "", ""},           // No prefix match.
    	}
    	for _, tc := range cases {
    		t.Run(tc.reqPath, func(t *testing.T) {
    			res, err := c.Get(ts.URL + tc.reqPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			res.Body.Close()
    			if tc.path == "" {
    				if res.StatusCode != StatusNotFound {
    					t.Errorf("got %q, want 404 Not Found", res.Status)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top