@@ -267,13 +267,21 @@ describe "Utils" do
267
267
it " 'logger' command line logger level setting works" , tags: [" logger" , " happy-path" ] do
268
268
# Note: implicitly tests the override of config.yml if it exist in repo root
269
269
response_s = ` ./cnf-conformance -l debug test`
270
+ LOGGING .info response_s
271
+ $? .success?.should be_true
272
+ (/DEBUG -- cnf-conformance: debug test/ =~ response_s).should_not be_nil
273
+ end
274
+
275
+ it " 'logger' LOGLEVEL NO underscore environment variable level setting works" , tags: [" logger" , " happy-path" ] do
276
+ # Note: implicitly tests the override of config.yml if it exist in repo root
277
+ response_s = ` unset LOG_LEVEL; LOGLEVEL=DEBUG ./cnf-conformance test`
270
278
$? .success?.should be_true
271
279
(/DEBUG -- cnf-conformance: debug test/ =~ response_s).should_not be_nil
272
280
end
273
281
274
- it " 'logger' environment variable level setting works" , tags: [" logger" , " happy-path" ] do
282
+ it " 'logger' LOG_LEVEL WITH underscore environment variable level setting works" , tags: [" logger" , " happy-path" ] do
275
283
# Note: implicitly tests the override of config.yml if it exist in repo root
276
- response_s = ` LOGLEVEL =DEBUG ./cnf-conformance test`
284
+ response_s = ` LOG_LEVEL =DEBUG ./cnf-conformance test`
277
285
$? .success?.should be_true
278
286
(/DEBUG -- cnf-conformance: debug test/ =~ response_s).should_not be_nil
279
287
end
@@ -289,7 +297,7 @@ describe "Utils" do
289
297
290
298
it " 'logger' defaults to error when level set is missplled" , tags: [" logger" ] do
291
299
# Note: implicitly tests the override of config.yml if it exist in repo root
292
- response_s = ` LOGLEVEL=DEGUB ./cnf-conformance test`
300
+ response_s = ` unset LOG_LEVEL; LOGLEVEL=DEGUB ./cnf-conformance test`
293
301
$? .success?.should be_true
294
302
(/ERROR -- cnf-conformance: Invalid logging level set. defaulting to ERROR/ =~ response_s).should_not be_nil
295
303
end
0 commit comments