mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-25 11:31:44 +00:00
Add test to validate non empty pod log dir
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
ae0a813be1
commit
8375163008
@ -569,6 +569,13 @@ func TestValidateKubeletConfiguration(t *testing.T) {
|
||||
return conf
|
||||
},
|
||||
errMsg: "invalid configuration: containerLogMonitorInterval must be a positive time duration greater than or equal to 3s",
|
||||
}, {
|
||||
name: "pod logs path must be not empty",
|
||||
configure: func(config *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration {
|
||||
config.PodLogsDir = ""
|
||||
return config
|
||||
},
|
||||
errMsg: "invalid configuration: podLogsDir was not specified",
|
||||
}, {
|
||||
name: "pod logs path must be absolute",
|
||||
configure: func(config *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration {
|
||||
|
Loading…
Reference in New Issue
Block a user