mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 07:00:13 +01:00
enable testing of secrets in system flags
This commit is contained in:
parent
bfe871698c
commit
58e9cd23b1
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ func TestGetSliceSecretsFromFiles(t *testing.T) {
|
|||
func testGetSecretsFromFiles(t *testing.T, flagName string, expected string, args ...string) {
|
||||
cmd := new(cobra.Command)
|
||||
SetDefaults()
|
||||
RegisterSystemFlags(cmd)
|
||||
RegisterNotificationFlags(cmd)
|
||||
require.NoError(t, cmd.ParseFlags(args))
|
||||
GetSecretsFromFiles(cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue