kubernetes/pkg/kubelet/util
Claudiu Belu 11f1d24165 unit tests: Fixes kubelet util unit tests for Windows
The unit tests are currently failing due to missing imports. This commit
addresses this issue.

Additionally, TestIsUnixDomainSocket expects an error to be raised by
IsUnixDomainSocket if the file does not exist, but on Windows we do not
raise such error.

This issue is addressed by Stat-ing the file, and checking
if the file exists or not. We're also handling the case in which the given
filePath is a named pipe, returning false immediately, instead of trying to
dial it as a Unix domain socket.
2023-05-10 11:25:49 +00:00
..
cache style: remove redundant judgment 2022-08-25 12:07:36 +08:00
format remove unuse code in pkg/kubelet/util 2023-01-13 08:27:42 +00:00
ioutils delete unused functions in pkg/kubelet directory 2023-01-16 20:00:49 +08:00
manager s/of referencedFrom/from referenceFrom/ 2023-05-10 10:22:52 +08:00
queue add unit test coverage for pkg/kubelet/util/queue 2022-06-23 17:57:17 +08:00
sliceutils remove unuse code in pkg/kubelet/util 2023-01-13 08:27:42 +00:00
store kubelet: remove superfluous function 2022-07-18 17:08:27 +02:00
boottime_util_darwin_test.go Add test for pkg/kubelet/util 2023-01-31 23:09:08 +08:00
boottime_util_darwin.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
boottime_util_freebsd_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
boottime_util_freebsd.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
boottime_util_linux_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
boottime_util_linux.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
doc.go fix golint failures of pkg/kubelet/util 2019-04-22 15:23:07 +08:00
nodelease.go Migrate pkg/kubelet/util to structured logging 2021-03-07 21:17:46 +05:30
pod_startup_latency_tracker_test.go kubelet: fix recording when pulling image did finish 2023-03-02 20:21:35 +01:00
pod_startup_latency_tracker.go logging: fix names of keys 2023-01-23 14:24:29 +01:00
util_test.go tests: Port kubelet tests to Windows 2023-02-09 13:50:51 +00:00
util_unix_test.go tests: Port kubelet tests to Windows 2023-02-09 13:50:51 +00:00
util_unix.go Remove ioutil in kubelet and its tests 2022-07-30 12:35:26 +09:00
util_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
util_windows_test.go unit tests: Fixes kubelet util unit tests for Windows 2023-05-10 11:25:49 +00:00
util_windows.go unit tests: Fixes kubelet util unit tests for Windows 2023-05-10 11:25:49 +00:00
util.go Fix staticchecks ST1005,S1002,S1008,S1039 in pkg/kubelet 2020-09-07 10:53:43 +08:00