mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add test case for getPodVolumeSubpathsDir
This commit is contained in:
parent
537941765f
commit
0b1fb2b394
@ -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