- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for fakeexec (0.19 sec)
-
pkg/proxy/ipvs/ipset/ipset_test.go
} for i := range testCases { fcmd := fakeexec.FakeCmd{ CombinedOutputScript: []fakeexec.FakeAction{ // ipset version response func() ([]byte, []byte, error) { return []byte(testCases[i].vstring), nil, nil }, }, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0) -
pkg/util/iptables/iptables_test.go
}, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 46.3K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util_test.go
} if fakeExec.CommandCalls != len(scripts) { t.Errorf("expected 4 CombinedOutput() calls, got %d", fakeExec.CommandCalls) } } func TestClonedIfaceShowError(t *testing.T) { fakeExec := &testingexec.FakeExec{} scripts := []volumetest.CommandScript{ { Cmd: "iscsiadm", Args: []string{"-m", "iface", "-I", "", "-o", "show"}, Output: "test error", ReturnCode: 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0) -
pkg/volume/fc/fc_test.go
} fakeManager := newFakeDiskManager() defer fakeManager.Cleanup() fakeMounter := mount.NewFakeMounter(nil) fakeExec := &testingexec.FakeExec{} mounter, err := plug.(*fcPlugin).newMounterInternal(spec, types.UID("poduid"), fakeManager, fakeMounter, fakeExec) if err != nil { t.Errorf("Failed to make a new Mounter: %v", err) } if mounter == nil { t.Errorf("Got a nil Mounter: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 14.1K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo_test.go
return []byte{}, nil, nil }) } } fcmd = fakeexec.FakeCmd{ CombinedOutputScript: fakeOutputs, } // Construct fake exec outputs from fcmd var fakeAction []fakeexec.FakeCommandAction for i := 0; i < len(expecteds); i++ { fakeAction = append(fakeAction, func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 08:26:26 UTC 2024 - 12K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_test.go
} fakeManager := NewFakeDiskManager() defer fakeManager.Cleanup() fakeMounter := mount.NewFakeMounter(nil) fakeExec := &testingexec.FakeExec{} mounter, err := plug.(*iscsiPlugin).newMounterInternal(spec, types.UID("poduid"), fakeManager, fakeMounter, fakeExec, nil) if err != nil { t.Errorf("Failed to make a new Mounter: %v", err) } if mounter == nil { t.Error("Got a nil Mounter") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 16.4K bytes - Viewed (0) -
pkg/volume/testing/volume_host.go
kubeClient clientset.Interface pluginMgr *VolumePluginMgr mounter mount.Interface hostUtil hostutil.HostUtils exec *testingexec.FakeExec nodeLabels map[string]string nodeName string subpather subpath.Interface node *v1.Node csiDriverLister storagelistersv1.CSIDriverLister
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 16.5K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
t.Run(tc.kubeletVersion, func(t *testing.T) { fcmd := fakeexec.FakeCmd{ OutputScript: []fakeexec.FakeAction{ func() ([]byte, []byte, error) { return []byte("Kubernetes " + tc.kubeletVersion), nil, nil }, }, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0) -
src/main/webapp/js/clipboard.min.js
ainer.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.con...
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Sat May 28 04:16:16 UTC 2022 - 10.5K bytes - Viewed (0) -
pkg/ctrlz/assets/static/js/clipboard-1.7.1.min.js
ainer.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.con...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 10.7K bytes - Viewed (0)