Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 96 for makeBody (0.15 sec)

  1. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    func TestCSILimits(t *testing.T) {
    	runningPod := st.MakePod().PVC("csi-ebs.csi.aws.com-3").Obj()
    	pendingVolumePod := st.MakePod().PVC("csi-4").Obj()
    
    	// Different pod than pendingVolumePod, but using the same unbound PVC
    	unboundPVCPod2 := st.MakePod().PVC("csi-4").Obj()
    
    	missingPVPod := st.MakePod().PVC("csi-6").Obj()
    	noSCPVCPod := st.MakePod().PVC("csi-5").Obj()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			oldObj:       st.MakePod().Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-non-hostport": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Node("fake-node").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"skip-queue-on-unrelated-hostport": {
    			pod:          podWithHostPort.Obj(),
    			oldObj:       st.MakePod().Node("fake-node").HostPort(8081).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. src/crypto/subtle/constant_time_test.go

    	if a == b {
    		return 1
    	}
    	return 0
    }
    
    func TestConstantTimeEq(t *testing.T) {
    	err := quick.CheckEqual(ConstantTimeEq, eq, nil)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func makeCopy(v int, x, y []byte) []byte {
    	if len(x) > len(y) {
    		x = x[0:len(y)]
    	} else {
    		y = y[0:len(x)]
    	}
    	if v == 1 {
    		copy(x, y)
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 03:47:57 UTC 2017
    - 2.9K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/policy_none_test.go

    func TestNonePolicyAllocate(t *testing.T) {
    	policy := &nonePolicy{}
    
    	st := &mockState{
    		assignments:   state.ContainerCPUAssignments{},
    		defaultCPUSet: cpuset.New(1, 2, 3, 4, 5, 6, 7),
    	}
    
    	testPod := makePod("fakePod", "fakeContainer", "1000m", "1000m")
    
    	container := &testPod.Spec.Containers[0]
    	err := policy.Allocate(st, testPod, container)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. pkg/quota/v1/evaluator/core/pods_test.go

    		},
    		{
    			name: "partial pods matching quotaScopeSelector - w/ multiple scopeNames specified",
    			objs: []runtime.Object{
    				makePod("p1", "high-priority", cpu1, api.PodRunning),
    				makePod("p2", "high-priority", cpu1, api.PodSucceeded),
    				makePod("p3", "low-priority", cpu1, api.PodRunning),
    				makePod("p4", "high-priority", nil, api.PodFailed),
    			},
    			quotaScopes: []corev1.ResourceQuotaScope{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. pkg/proxy/healthcheck/healthcheck_test.go

    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted("other")))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    
    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted(ToBeDeletedTaint)))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    
    	// Should return 200 "OK" irrespective of node syncs
    	hs.SyncNode(makeNode(tweakTainted("other")))
    	testHTTPHandler(hsTest, http.StatusOK, t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceregistry_test.go

    		_, kube, xdsUpdater := setupTest(t)
    		makeService(t, kube, service)
    		xdsUpdater.WaitOrFail(t, "service")
    		makePod(t, kube, pod)
    		xdsUpdater.WaitOrFail(t, "proxy")
    		newPod := pod.DeepCopy()
    		newPod.Labels["newlabel"] = "new"
    		makePod(t, kube, newPod)
    		xdsUpdater.WaitOrFail(t, "proxy")
    	})
    
    	t.Run("Kubernetes only: headless pure HTTP service", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    		{Type: watch.Added, Object: makePod(1)},
    		{Type: watch.Added, Object: makePod(2)},
    		{Type: watch.Added, Object: makePod(5)},
    		{Type: watch.Bookmark, Object: &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				ResourceVersion: "10",
    				Annotations:     map[string]string{metav1.InitialEventsAnnotationKey: "true"},
    			},
    		}},
    		{Type: watch.Added, Object: makePod(15)},
    	}, true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    }
    
    func returnTestCases() []testCase {
    	testPod1 := makePod("fakePod", "fakeContainer", "2", "2")
    	testContainer1 := &testPod1.Spec.Containers[0]
    	testPod2 := makePod("fakePod", "fakeContainer", "5", "5")
    	testContainer2 := &testPod2.Spec.Containers[0]
    	testPod3 := makePod("fakePod", "fakeContainer", "7", "7")
    	testContainer3 := &testPod3.Spec.Containers[0]
    	testPod4 := makePod("fakePod", "fakeContainer", "11", "11")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		watchers = append(watchers, w)
    	}
    
    	makePod := func(name, rv string) *examplev1.Pod {
    		return &examplev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:            name,
    				Namespace:       "ns",
    				ResourceVersion: rv,
    			},
    		}
    	}
    	pod1 := makePod("pod", "1001")
    	pod2 := makePod("pod", "1002")
    	pod3 := makePod("pod", "1003")
    
    	cacher.watchCache.Add(pod1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
Back to top