You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #186, I encountered this test failure:
--- FAIL: TestValidate (0.00s)
--- FAIL: TestValidate/LogLevel_set_to_valid_values (0.00s)
validate_test.go:539: Config failed, but should have passed on valid value "emerg" for LogLevel: invalid option "emerg" provided for log level
validate_test.go:536: Config passed as expected after setting LogLevel to "alert": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "critical": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "panic": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "fatal": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "error": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "warn": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "info": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "notice": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "debug": <nil>
validate_test.go:536: Config passed as expected after setting LogLevel to "trace": <nil>
validate_test.go:549: Validation successful after restoring LogLevel field
I checked the README to be sure, and found that the emergency option for ``--log-level` is what we have documented as the valid command-line flag option:
While working on #186, I encountered this test failure:
I had just replaced the
"emergency"
string here:elbow/config/validate_test.go
Lines 519 to 531 in 788742b
with the new constant:
which is defined as:
I pulled that from here:
elbow/logging/logging_unix.go
Lines 46 to 51 in 788742b
which is being "tested" like so:
elbow/logging/logging_test.go
Lines 127 to 139 in 788742b
The expected log level value is being checked like so:
elbow/config/validate.go
Line 128 in 788742b
which apparently only checks against the command-line flag value, not what is keyed off of to do the final syslog and logrus calls.
The text was updated successfully, but these errors were encountered: