Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for testpvc (0.12 sec)

  1. pkg/kubelet/cm/cpumanager/policy_none_test.go

    	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 {
    		t.Errorf("NonePolicy Allocate() error. expected no error but got: %v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes_test.go

    	testPos(t, exprs, "package p; var _ = T{ ", " }",
    		func(f *File) Node { return f.DeclList[0].(*VarDecl).Values.(*CompositeLit).ElemList[0] },
    	)
    
    	// embed types in a function  signature so we can test ... types
    	testPos(t, types, "package p; func f(", ")",
    		func(f *File) Node { return f.DeclList[0].(*FuncDecl).Type.ParamList[0].Type },
    	)
    
    	testPos(t, fields, "package p; func f(", ")",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. cni/pkg/plugin/cnieventclient_test.go

    	err := PushCNIEvent(cniC, fakeCmdArgs, []*cniv1.IPConfig{&fakePrevResultIPConfig}, "testpod", "testns")
    
    	assert.Error(t, err)
    	assert.Equal(t, strings.Contains(err.Error(), fmt.Sprintf("unable to push CNI event, error was %d", http.StatusInternalServerError)), true)
    }
    
    func TestPushCNIAddEventGoodPayload(t *testing.T) {
    	testPod := "testpod"
    	testNS := "testns"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{"", 0},
    		tests: []testFnc{
    			testRemaining{0, 0},
    			testRead{0, "", io.EOF},
    			testRead{1, "", io.EOF},
    			testWriteTo{nil, 0, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{"", 1},
    		tests: []testFnc{
    			testRemaining{1, 1},
    			testRead{5, "", io.ErrUnexpectedEOF},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  5. pkg/log/config_test.go

    	}
    
    	for _, v := range cases {
    		t.Run(v.name, func(t *testing.T) {
    			formatDate(v.input, testEnc)
    			if !strings.HasPrefix(testEnc.output, v.want) {
    				t.Errorf("formatDate(%v) => %s, want year: %s", v.input, testEnc.output, v.want)
    			}
    		})
    	}
    }
    
    func TestTimestampProperMicros(t *testing.T) {
    	testEnc := &testDateEncoder{}
    	cases := []struct {
    		name  string
    		input time.Time
    		want  string
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/net/main_test.go

    	// connectivity.
    	testIPv4 = flag.Bool("ipv4", true, "assume external IPv4 connectivity exists")
    
    	// If external IPv6 connectivity exists, we can try dialing
    	// non-node/interface local scope IPv6 addresses.
    	// On Windows, Lookup APIs may not return IPv6-related
    	// resource records when a node has no external IPv6
    	// connectivity.
    	testIPv6 = flag.Bool("ipv6", false, "assume external IPv6 connectivity exists")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. docs/site-replication/run-multi-site-minio-idp.sh

    ./mc admin user svcacct rm minio1 testsvc
    if [ $? -ne 0 ]; then
    	echo "removing svc account failed, exiting.."
    	exit_1
    fi
    
    sleep 10
    ./mc admin user svcacct info minio2 testsvc
    if [ $? -eq 0 ]; then
    	echo "svc account found after delete, exiting.."
    	exit_1
    fi
    
    ./mc admin user svcacct info minio3 testsvc
    if [ $? -eq 0 ]; then
    	echo "svc account found after delete, exiting.."
    	exit_1
    fi
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. pkg/kubelet/status/status_manager_test.go

    	}
    	syncer.SetPodStatus(testPod, firstStatus)
    
    	t.Logf("set the testPod to a pod with Phase running, to simulate a stale pod")
    	testPod.Status = getRandomPodStatus()
    	testPod.Status.Phase = v1.PodRunning
    	testPod.Status.InitContainerStatuses = []v1.ContainerStatus{
    		{Name: "test-1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  9. pkg/client/tests/fake_client_test.go

    	clientsetfake "k8s.io/client-go/kubernetes/fake"
    
    	_ "k8s.io/kubernetes/pkg/apis/core/install"
    )
    
    func TestFakeClientSetFiltering(t *testing.T) {
    	tc := clientsetfake.NewSimpleClientset(
    		testPod("nsA", "pod-1"),
    		testPod("nsB", "pod-2"),
    		testSA("nsA", "sa-1"),
    		testSA("nsA", "sa-2"),
    		testSA("nsB", "sa-1"),
    		testSA("nsB", "sa-2"),
    		testSA("nsB", "sa-3"),
    	)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  10. plugin/pkg/admission/limitranger/admission_test.go

    	limitRange := validLimitRange()
    	testPod := validPodInit(validPod("foo", 1, getResourceRequirements(api.ResourceList{}, api.ResourceList{})), getResourceRequirements(api.ResourceList{}, api.ResourceList{}))
    	err := PodMutateLimitFunc(&limitRange, &testPod)
    	if err != nil {
    		t.Errorf("Unexpected error for valid pod: %s, %v", testPod.Name, err)
    	}
    
    	for i := range testPod.Spec.Containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top