Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for makeOld (0.2 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/defaultpreemption/default_preemption_test.go

    			pod:  st.MakePod().Name("p").UID("p").Namespace(v1.NamespaceDefault).Priority(highPriority).Req(largeRes).Obj(),
    			pods: []*v1.Pod{
    				st.MakePod().Name("p1").UID("p1").Namespace(v1.NamespaceDefault).Node("node1").Priority(highPriority).Obj(),
    				st.MakePod().Name("p2").UID("p2").Namespace(v1.NamespaceDefault).Node("node2").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go

    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			oldObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(),
    			newObj:       st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		"queue-on-gates-become-empty": {
    			pod:          st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Name("p-a1").Node("node-a").Label("foo", "").Obj(),
    				st.MakePod().Name("p-a2").Node("node-a").Label("foo", "").Obj(),
    				st.MakePod().Name("p-b1").Node("node-b").Label("foo", "").Obj(),
    				st.MakePod().Name("p-y1").Node("node-y").Label("foo", "").Obj(),
    				st.MakePod().Name("p-y2").Node("node-y").Label("foo", "").Obj(),
    				st.MakePod().Name("p-y3").Node("node-y").Label("foo", "").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K 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/framework/plugins/interpodaffinity/plugin_test.go

    			pod:          st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(),
    			newPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			oldPod:       st.MakePod().Label("service", "securityscan").Obj(),
    			expectedHint: framework.QueueSkip,
    		},
    		{
    			name:         "update a pod from match to non-match the pod affinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/go/types/termlist_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types
    
    import (
    	"strings"
    	"testing"
    )
    
    // maketl makes a term list from a string of the term list.
    func maketl(s string) termlist {
    	s = strings.ReplaceAll(s, " ", "")
    	names := strings.Split(s, "|")
    	r := make(termlist, len(names))
    	for i, n := range names {
    		r[i] = testTerm(n)
    	}
    	return r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/rest/delete_test.go

    				pod:     makePod(0),
    				options: makeOption(2),
    			},
    			// want 0
    			wantDeletionGracePeriodSeconds: utilpointer.Int64(0),
    			wantGracePeriodSeconds:         utilpointer.Int64(2),
    			wantGraceful:                   false,
    			wantGracefulPending:            false,
    		},
    
    		{
    			name: "when DeletionGracePeriodSeconds=1, GracePeriodSeconds=-1",
    			args: args{
    				pod:     makePod(1),
    				options: makeOption(-1),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 11:44:07 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    			initialPods:                          []*example.Pod{makePod("1"), makePod("2"), makePod("3")},
    			expectedInitialEvents:                addEventsFromCreatedPods,
    			expectedInitialEventsBookmark:        initialEventsEndFromLastCreatedPod,
    			podsAfterEstablishingWatch:           []*example.Pod{makePod("4"), makePod("5")},
    			expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    		"skip-queue-on-disable-inplace-pod-vertical-scaling": {
    			pod:                             st.MakePod().Name("pod1").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Obj(),
    			oldObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Node("fake").Obj(),
    			newObj:                          st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Node("fake").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
Back to top