- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 113 for fakePod (0.23 sec)
-
src/net/http/client_test.go
}{ { desc: "Strip password from error message", in: "http://user:password@dummy.faketld/", out: `Get "http://user:***@dummy.faketld/": dummy impl`, }, { desc: "Don't Strip password from domain name", in: "http://user:password@password.faketld/", out: `Get "http://user:***@password.faketld/": dummy impl`, }, { desc: "Don't Strip password from path",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/volume/flexvolume/common_test.go
} cmdArgs := args[1:] if !sameArgs(cmdArgs, expectedArgs) { t.Errorf("Wrong args for %s: got %v, expected %v", args[0], cmdArgs, expectedArgs) } return &exectesting.FakeCmd{ Argv: args, CombinedOutputScript: []exectesting.FakeAction{output}, } } } func fakeRunner(fakeCommands ...exectesting.FakeCommandAction) exec.Interface { return &exectesting.FakeExec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 3.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/spread_test.go
}, }, } services = append(services, service) fakeInformerFactory.Core().V1().Services().Informer().GetStore().Add(service) } var pods []*v1.Pod for i := 0; i < 5; i++ { pod := st.MakePod().Name(fmt.Sprintf("test-pod-%d", i)). Namespace("test"). Label("app", fmt.Sprintf("test-%d", i)). Label("label", fmt.Sprintf("label-%d", i)). Obj() pods = append(pods, pod) } tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 17:48:55 UTC 2022 - 2.5K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go
func TestCreatePodSandbox(t *testing.T) { ctx := context.Background() fakeRuntime, _, m, err := createTestRuntimeManager() require.NoError(t, err) pod := newTestPod() fakeOS := m.osInterface.(*containertest.FakeOS) fakeOS.MkdirAllFn = func(path string, perm os.FileMode) error { // Check pod logs root directory is created. assert.Equal(t, filepath.Join(testPodLogsDirectory, pod.Namespace+"_"+pod.Name+"_12345678"), path)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider_test.go
} ctrl := gomock.NewController(t) defer ctrl.Finish() fakeOS := &kubecontainertest.FakeOS{} fakeOS.ReadDirFn = func(path string) ([]os.DirEntry, error) { var dirEntries []os.DirEntry mockDE := kubecontainertest.NewMockDirEntry(ctrl) switch path {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 54.5K bytes - Viewed (0) -
pkg/volume/testing/testing.go
for _, script := range scripts { fakeCmd := &testingexec.FakeCmd{} cmdAction := makeFakeCmd(fakeCmd, script.Cmd, script.Args...) outputAction := makeFakeOutput(script.Output, script.ReturnCode) fakeCmd.CombinedOutputScript = append(fakeCmd.CombinedOutputScript, outputAction) fe.CommandScript = append(fe.CommandScript, cmdAction) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0) -
pkg/scheduler/framework/types_test.go
t.Errorf("expected: %#v, got: %#v", test.expected, test.resource) } }) } } func TestNewNodeInfo(t *testing.T) { nodeName := "test-node" pods := []*v1.Pod{ st.MakePod().UID("test-1").Namespace("node_info_cache_test").Name("test-1").Node(nodeName). Containers([]v1.Container{st.MakeContainer().ResourceRequests(map[v1.ResourceName]string{ v1.ResourceCPU: "100m",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go
runPreFilter bool }{ { name: "missing labels", pod: st.MakePod().NodeSelector(map[string]string{ "foo": "bar", }).Obj(), wantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReasonPod), runPreFilter: true, }, { name: "same labels", pod: st.MakePod().NodeSelector(map[string]string{ "foo": "bar", }).Obj(), labels: map[string]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 12:00:10 UTC 2023 - 38.7K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo_test.go
}, mounter volume.Mounter) []error { expecteds := scenario.expecteds allErrs := []error{} // Construct combined outputs from expected commands var fakeOutputs []fakeexec.FakeAction var fcmd fakeexec.FakeCmd for _, expected := range expecteds { expected := expected if expected.cmd[1] == "clone" { // Calculate the subdirectory clone would create (if any)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 08:26:26 UTC 2024 - 12K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/test_utils.go
pvcb.PersistentVolumeClaim.Status = v1.PersistentVolumeClaimStatus{ Phase: phase, } return pvcb } type podBuilder struct { *v1.Pod } func makePod(name string) podBuilder { pb := podBuilder{Pod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: v1.NamespaceDefault, }, }} pb.Pod.Spec.Volumes = make([]v1.Volume, 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 4.9K bytes - Viewed (0)