kubernetes csi-sanity test fails in CheckPath method NodeUnPublish volume

6/11/2021

I am using csi-test sanity package for implementing sanity test for our driver. Driver fails at CheckPath in this code.

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

where as I can see

"msg":"Successfully unmounted  target path","RequestID":"ebb75064-0235-4d42-a511-64f97f20ed5a","targetPath":"/tmp/csi/target/target"}

in clean up code

I tried many ways to see if

-- ambikanair
kubernetes
sanity-testing

0 Answers