File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,15 @@ class InstanceAgentConfigTest < InstanceAgentTestCase
136
136
should 'load the default config file' do
137
137
InstanceAgent ::Config . config [ :config_file ] = default_config_path
138
138
139
- assert_equal ( nil , InstanceAgent ::Config . config [ :max_revisions ] )
139
+ expected_log_dir = if RbConfig ::CONFIG [ 'host_os' ] =~ /mswin|mingw|cygwin/
140
+ "Amazon/CodeDeploy/log"
141
+ else
142
+ "/var/log/aws/codedeploy-agent/"
143
+ end
144
+
145
+ assert_equal ( "/tmp" , InstanceAgent ::Config . config [ :log_dir ] )
140
146
InstanceAgent ::Config . load_config
141
-
142
- assert_equal ( 5 , InstanceAgent ::Config . config [ :max_revisions ] )
147
+ assert_equal ( expected_log_dir , InstanceAgent ::Config . config [ :log_dir ] )
143
148
end
144
149
145
150
should 'include a newline at the end of the file' do
You can’t perform that action at this time.
0 commit comments