Skip to content

Commit

Permalink
test(config): add a test case with config file and command line arg
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcorado committed Sep 2, 2024
1 parent c01389f commit 565c4d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/config/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5023,6 +5023,14 @@ debug_service:
`,
expectDebugServiceEnabled: false,
},
"commandline flag has priority over config file": {
configFile: `
debug_service:
enabled: "yes"
`,
commandLineFlags: &CommandLineFlags{DisabledDebugService: true},
expectDebugServiceEnabled: false,
},
} {
t.Run(name, func(t *testing.T) {
filePath := filepath.Join(t.TempDir(), "config.yaml")
Expand Down

0 comments on commit 565c4d5

Please sign in to comment.