kubernetes/pkg/volume/fc
Claudiu Belu 38092cb458 unittests: Fixes unit tests for Windows (part 2)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- volume mounting is a bit different on Windows: Mount will create the
  parent dirs and mklink at the volume path later (otherwise mklink will
  raise an error).
- os.Chmod is not working as intended on Windows.
- path.Dir() will always return "." on Windows, and filepath.Dir()
  should be used instead (which works correctly).
- on Windows, you can't typically run binaries without extensions. If
  the file C:\\foo.bat exists, we can still run C:\\foo because Windows
  will append one of the supported file extensions ($env:PATHEXT) to it
  and run it.
- Windows file permissions do not work the same way as the Linux ones.
- /tmp directory being used, which might not exist on Windows. Instead,
  the OS-specific Temp directory should be used.

Fixes a few other issues:

- rbd.go: Return error in a case in which an error is encountered. This
  will prevent "rbd: failed to setup" and "rbd: successfully setup" log
  messages to be logged at the same time.
2022-08-01 18:56:32 +03:00
..
attacher.go Pass FsGroup to MountDevice 2021-07-03 16:29:42 -07:00
disk_manager.go use input parameter that is invalid before 2020-11-26 17:04:55 +08:00
doc.go
fc_test.go unittests: Fixes unit tests for Windows (part 2) 2022-08-01 18:56:32 +03:00
fc_util_test.go volume/fc: fix FibreChannel volume plugin matching wrong disks 2022-06-23 16:36:01 +08:00
fc_util.go volume/fc: fix FibreChannel volume plugin matching wrong disks 2022-06-23 16:36:01 +08:00
fc.go Generate and format files 2022-07-26 13:14:05 -04:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00