Skip to content

Commit

Permalink
Increase pkg coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
skhalash committed Jan 19, 2024
1 parent 9524e4b commit b091acc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/overrides/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ func TestLoadOverrides(t *testing.T) {
expectError: true,
expectedLogLevel: zapcore.InfoLevel,
},
{
name: "unknown log level",
configMapData: map[string]string{
"test-key": `global:
logLevel: ultradebug`,
},
defaultLevel: zapcore.InfoLevel,
expectedOverrides: nil,
expectError: true,
expectedLogLevel: zapcore.InfoLevel,
},
{
name: "valid configmap",
configMapData: map[string]string{
Expand Down

0 comments on commit b091acc

Please sign in to comment.