Add test to validate non empty pod log dir
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user