Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RemovePodSandboxReturns (0.14 sec)

  1. cmd/kubeadm/app/util/runtime/runtime_fake_test.go

    		err error
    	}{res, err}
    }
    
    func (fake *fakeImpl) RemovePodSandbox(context.Context, cri.RuntimeService, string) error {
    	fakeReturns := fake.removePodSandboxReturns
    	return fakeReturns.res
    }
    
    func (fake *fakeImpl) RemovePodSandboxReturns(res error) {
    	fake.removePodSandboxReturns = struct {
    		res error
    	}{res}
    }
    
    func (fake *fakeImpl) Status(context.Context, cri.RuntimeService, bool) (*v1.StatusResponse, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/runtime/runtime_test.go

    			containers:  []string{"1", "2"},
    			shouldError: false,
    		},
    		{
    			name:       "invalid: remove pod sandbox fails",
    			containers: []string{"1"},
    			prepare: func(mock *fakeImpl) {
    				mock.RemovePodSandboxReturns(errTest)
    			},
    			shouldError: true,
    		},
    		{
    			name:       "invalid: stop pod sandbox fails",
    			containers: []string{"1"},
    			prepare: func(mock *fakeImpl) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top