我正在使用 csi-test sanity 包来为我们的驱动程序实施健全性测试。CheckPath
驱动程序在此代码中失败。
By("Checking the target path exists")
pa, err := CheckPath(volpath, sc.Config)
Expect(err).NotTo(HaveOccurred(), "checking path %q", volpath)
Expect(pa).NotTo(Equal(PathIsNotFound), "path %q should have been created by CSI driver and the test config should be enabling testing for that path", volpath)
path "/tmp/csi/target/target" should have been created by CSI driver and the test config should be enabling testing for that path
Expected
<sanity.PathKind>: not_found
not to equal
<sanity.PathKind>: not_found
如我所见
"msg":"Successfully unmounted target path","RequestID":"ebb75064-0235-4d42-a511-64f97f20ed5a","targetPath":"/tmp/csi/target/target"}
在清理代码中
我尝试了很多方法看看是否