Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for makeOld (0.1 sec)

  1. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

                                throw new AssertionError()
                        }
                    }
                }
            }
    
            static void makeOld(Iterable<File> files) {
                makeOld(files as File[])
            }
    
            static void makeOld(File... files) {
                files.each { it.setLastModified(oldTime) }
            }
    
            static void createNewFile(File file) {
                file.tap {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    				Obj(),
    			newPod:       st.MakePod().Label("foo", "").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		{
    			name: "update un-scheduled pod",
    			pod: st.MakePod().Name("p").Label("foo", "").
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			newPod:       st.MakePod().Label("foo", "").Obj(),
    			oldPod:       st.MakePod().Label("bar", "").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Node("node1").Obj(),
    				st.MakePod().Node("node1").Obj(),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go

    			pod:                 &v1.Pod{},
    			nodeInfo:            framework.NewNodeInfo(st.MakePod().Volume(volState).Obj()),
    			name:                "one state",
    			preFilterWantStatus: framework.NewStatus(framework.Skip),
    			wantStatus:          nil,
    		},
    		{
    			pod:                 st.MakePod().Volume(volState).Obj(),
    			nodeInfo:            framework.NewNodeInfo(st.MakePod().Volume(volState).Obj()),
    			name:                "same state",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  5. pkg/scheduler/eventhandlers_test.go

    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Name("p").HostPort(80).Obj(),
    			},
    			pods: []*v1.Pod{
    				st.MakePod().Name("p1").Req(cpu4).Obj(),
    				st.MakePod().Name("p2").Req(cpu16).Obj(),
    				st.MakePod().Name("p3").Req(cpu4).Req(cpu8).Obj(),
    				st.MakePod().Name("p4").NodeAffinityIn("hostname", []string{"fake-node"}).Obj(),
    				st.MakePod().Name("p5").NodeAffinityNotIn("hostname", []string{"fake-node"}).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 10 14:38:54 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. pkg/scheduler/internal/cache/snapshot_test.go

    		{
    			name: "pods not scheduled",
    			pods: []*v1.Pod{
    				st.MakePod().Name("foo").Namespace("foo").Obj(),
    				st.MakePod().Name("bar").Namespace("bar").Obj(),
    			},
    			expected: sets.New[string](),
    		},
    		{
    			name: "scheduled pods that do not use any PVC",
    			pods: []*v1.Pod{
    				st.MakePod().Name("foo").Namespace("foo").Node("node-1").Obj(),
    				st.MakePod().Name("bar").Namespace("bar").Node("node-2").Obj(),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 12K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go

    	// deletedPVPod2 is a different pod than deletedPVPod but using the same PVC
    	deletedPVPod2       = st.MakePod().PVC("pvcWithDeletedPV").Obj()
    	anotherDeletedPVPod = st.MakePod().PVC("anotherPVCWithDeletedPV").Obj()
    	emptyPod            = st.MakePod().Obj()
    	unboundPVCPod       = st.MakePod().PVC("unboundPVC").Obj()
    	// Different pod than unboundPVCPod, but using the same unbound PVC
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 36.8K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			requestedPod: st.MakePod().Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Node("node1").Obj(),
    				st.MakePod().Node("node1").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			stAssignments: state.ContainerCPUAssignments{
    				"fakePod": map[string]cpuset.CPUSet{
    					"fakeContainer100": cpuset.New(2, 3, 6, 7),
    				},
    			},
    			stDefaultCPUSet: cpuset.New(0, 1, 4, 5),
    			pod:             makePod("fakePod", "fakeContainer3", "2000m", "2000m"),
    			expErr:          nil,
    			expCPUAlloc:     true,
    			expCSet:         cpuset.New(1, 5),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go

    			pod:          st.MakePod().Obj(),
    			nodes:        []*v1.Node{makeNode("node1", 4000, 10000, nil), makeNode("node2", 4000, 10000, nil)},
    			expectedList: []framework.NodeScore{{Name: "node2", Score: framework.MaxNodeScore}, {Name: "node2", Score: framework.MaxNodeScore}},
    			name:         "no resources requested, pods without container scheduled",
    			pods: []*v1.Pod{
    				st.MakePod().Node("node1").Labels(labels2).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top