You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend NodeUnpublish test to verify cleanup of TargetPath (#336)
The CSI spec states that the SP MUST delete the file or directory that
it created as part of NodeUnpublishVolume. This adds a new scenario to
the sanity test to verify that NodeUnpublishVolume removes TargetPath.
Copy file name to clipboardExpand all lines: cmd/csi-sanity/main.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,8 @@ func main() {
81
81
stringVar(&config.RemoveTargetPathCmd, "removemountpathcmd", "Command to run for target path removal")
82
82
stringVar(&config.RemoveStagingPathCmd, "removestagingpathcmd", "Command to run for staging path removal")
83
83
durationVar(&config.RemovePathCmdTimeout, "removepathcmdtimeout", "Timeout for the commands to remove target and staging paths, in seconds")
84
+
stringVar(&config.CheckPathCmd, "checkpathcmd", "Command to run to check a given path. It must print 'file', 'directory', 'not_found', or 'other' on stdout.")
85
+
durationVar(&config.CheckPathCmdTimeout, "checkpathcmdtimeout", "Timeout for the command to check a given path, in seconds")
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)
0 commit comments