delete tests which use container manager stub

This commit is contained in:
ynqa 2020-08-19 10:07:36 +09:00
parent 4357551ae3
commit 7d58ead809

View File

@ -21,8 +21,6 @@ import (
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"k8s.io/kubernetes/pkg/kubelet/cm"
) )
func TestKubeletDirs(t *testing.T) { func TestKubeletDirs(t *testing.T) {
@ -92,14 +90,4 @@ func TestKubeletDirs(t *testing.T) {
got = kubelet.getPodResourcesDir() got = kubelet.getPodResourcesDir()
exp = filepath.Join(root, "pod-resources") exp = filepath.Join(root, "pod-resources")
assert.Equal(t, exp, got) assert.Equal(t, exp, got)
// GetNodeConfig for containerManagerStub returns an empty node config
gotCfg := kubelet.GetNodeConfig()
expCfg := cm.NodeConfig{}
assert.Equal(t, expCfg, gotCfg)
// GetPodCgroupRoot for containerManagerStub returns an empty string
got = kubelet.GetPodCgroupRoot()
exp = ""
assert.Equal(t, exp, got)
} }