mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-26 20:13:29 +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
|
return conf
|
||||||
},
|
},
|
||||||
errMsg: "invalid configuration: containerLogMonitorInterval must be a positive time duration greater than or equal to 3s",
|
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",
|
name: "pod logs path must be absolute",
|
||||||
configure: func(config *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration {
|
configure: func(config *kubeletconfig.KubeletConfiguration) *kubeletconfig.KubeletConfiguration {
|
||||||
|
Loading…
Reference in New Issue
Block a user