- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for fakePod (0.31 sec)
-
pkg/kubelet/container/testing/os.go
func (f *FakeOS) Stat(path string) (os.FileInfo, error) { if f.StatFn != nil { return f.StatFn(path) } return nil, errors.New("unimplemented testing mock") } // Remove is a fake call that returns nil. func (f *FakeOS) Remove(path string) error { f.Removes = append(f.Removes, path) return nil } // RemoveAll is a fake call that just returns nil. func (f *FakeOS) RemoveAll(path string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 13:37:31 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/queuesort/priority_sort_test.go
PodInfo: mustNewPodInfo(t, st.MakePod().Priority(lowPriority).Obj()), }, p2: &framework.QueuedPodInfo{ PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()), }, expected: false, // p2 should be ahead of p1 in the queue }, { name: "p1.priority greater than p2.priority", p1: &framework.QueuedPodInfo{ PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 12 14:11:04 UTC 2022 - 2.8K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
assert.Equal(t, thirtySeconds, delay) } func TestInhibitShutdown(t *testing.T) { var fakeFd uint32 = 42 bus := DBusCon{ SystemBus: &fakeSystemDBus{ fakeDBusObject: &fakeDBusObject{ bodyValue: fakeFd, }, }, } fdLock, err := bus.InhibitShutdown() assert.Equal(t, InhibitLock(fakeFd), fdLock) assert.NoError(t, err) } func TestReloadLogindConf(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 19:50:06 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodename/node_name_test.go
wantStatus *framework.Status }{ { pod: &v1.Pod{}, node: &v1.Node{}, name: "no host specified", }, { pod: st.MakePod().Node("foo").Obj(), node: st.MakeNode().Name("foo").Obj(), name: "host matches", }, { pod: st.MakePod().Node("bar").Obj(), node: st.MakeNode().Name("foo").Obj(), name: "host doesn't match",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 20 09:49:54 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/gotoolchain_path.txt
[short] skip env TESTGO_VERSION=go1.21pre3 # Compile a fake toolchain to put in the path under various names. env GOTOOLCHAIN= mkdir $WORK/bin go build -o $WORK/bin/go1.50.0$GOEXE ./fakego.go # adds .exe extension implicitly on Windows [!GOOS:plan9] env PATH=$WORK/bin [GOOS:plan9] env path=$WORK/bin go version stdout go1.21pre3 # GOTOOLCHAIN=go1.50.0 env GOTOOLCHAIN=go1.50.0 ! go version
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 06 22:21:42 UTC 2024 - 1.9K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_other_test.go
See the License for the specific language governing permissions and limitations under the License. */ package dns var ( defaultResolvConf = "/etc/resolv.conf" // configurer.getHostDNSConfig is faked on Windows, while it is not faked on Linux. fakeGetHostDNSConfigCustom = getHostDNSConfig
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 21 22:21:57 UTC 2023 - 804 bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/util_test.go
return server, storage } server, etcdStorage := newEtcdTestStorage(t, "") defer server.Terminate(t) versioner := storage.APIObjectVersioner{} makePod := func(name string) *example.Pod { return &example.Pod{ ObjectMeta: metav1.ObjectMeta{Namespace: "ns", Name: name}, } } createPod := func(obj *example.Pod) *example.Pod {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 11 12:07:39 UTC 2024 - 6.3K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/utils_test.go
{"command not found", "", errors.New("kubelet not found"), false}, {"", "", nil, false}, } for _, tc := range cases { t.Run(tc.output, func(t *testing.T) { fcmd := fakeexec.FakeCmd{ OutputScript: []fakeexec.FakeAction{ func() ([]byte, []byte, error) { return []byte(tc.output), nil, tc.err }, }, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 23 11:33:44 UTC 2022 - 2.3K bytes - Viewed (0) -
pkg/scheduler/testing/workload_prep.go
Label(v1.LabelHostname, fmt.Sprintf("node%d", i)).Obj() allNodes = append(allNodes, node) } filteredNodes = allNodes[:filteredNodesNum] // build pods for i := 0; i < existingPodsNum; i++ { podWrapper := MakePod().Name(fmt.Sprintf("pod%d", i)).Node(fmt.Sprintf("node%d", i%allNodesNum)) // apply labels[0], labels[0,1], ..., labels[all] to each pod in turn for _, p := range labelPairs[:i%len(labelPairs)+1] {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 16 13:43:36 UTC 2023 - 2.3K bytes - Viewed (0)