kubernetes/pkg/kubelet/lifecycle/handlers_test.go

func TestResolvePort(t *testing.T) {}

type fakeContainerCommandRunner

func (f *fakeContainerCommandRunner) RunInContainer(_ context.Context, id kubecontainer.ContainerID, cmd []string, timeout time.Duration) ([]byte, error) {}

func stubPodStatusProvider(podIP string) podStatusProvider {}

type podStatusProviderFunc

func (f podStatusProviderFunc) GetPodStatus(_ context.Context, uid types.UID, name, namespace string) (*kubecontainer.PodStatus, error) {}

func TestRunHandlerExec(t *testing.T) {}

type fakeHTTP

func (f *fakeHTTP) Do(req *http.Request) (*http.Response, error) {}

func TestRunHandlerHttp(t *testing.T) {}

func TestRunHandlerHttpWithHeaders(t *testing.T) {}

func TestRunHandlerHttps(t *testing.T) {}

func TestRunHandlerHTTPPort(t *testing.T) {}

func TestRunHTTPHandler(t *testing.T) {}

func TestRunHandlerNil(t *testing.T) {}

func TestRunHandlerExecFailure(t *testing.T) {}

func TestRunHandlerHttpFailure(t *testing.T) {}

func TestRunHandlerHttpsFailureFallback(t *testing.T) {}

func TestIsHTTPResponseError(t *testing.T) {}

func TestRunSleepHandler(t *testing.T) {}