mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Merge pull request #109691 from zhangxyjlu/kubelet_testgetter
Add test case for getPodVolumeSubpathsDir
This commit is contained in:
commit
92945a1a32
@ -90,4 +90,12 @@ func TestKubeletDirs(t *testing.T) {
|
||||
got = kubelet.getPodResourcesDir()
|
||||
exp = filepath.Join(root, "pod-resources")
|
||||
assert.Equal(t, exp, got)
|
||||
|
||||
got = kubelet.GetHostname()
|
||||
exp = "127.0.0.1"
|
||||
assert.Equal(t, exp, got)
|
||||
|
||||
got = kubelet.getPodVolumeSubpathsDir("abc123")
|
||||
exp = filepath.Join(root, "pods/abc123/volume-subpaths")
|
||||
assert.Equal(t, exp, got)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user