From bc0c47738b82d4c1bcc2c947fdd4fe2da6dd8825 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 6 Apr 2022 12:36:35 +0300 Subject: [PATCH] [#1295] neofs-adm: Add contract group wallet to config template Signed-off-by: Evgenii Stratonikov --- cmd/neofs-adm/internal/modules/config/config.go | 3 ++- cmd/neofs-adm/internal/modules/config/config_test.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-adm/internal/modules/config/config.go b/cmd/neofs-adm/internal/modules/config/config.go index 3101dac6..53b18602 100644 --- a/cmd/neofs-adm/internal/modules/config/config.go +++ b/cmd/neofs-adm/internal/modules/config/config.go @@ -40,7 +40,8 @@ network: container_alias: {{ .ContainerAliasFee }} withdraw: {{ .WithdrawFee}} # if credentials section is omitted, then neofs-adm will require manual password input -credentials:{{ range.Glagolitics}} +credentials: + contract: password # wallet for contract group signature{{ range.Glagolitics}} {{.}}: password{{end}} ` diff --git a/cmd/neofs-adm/internal/modules/config/config_test.go b/cmd/neofs-adm/internal/modules/config/config_test.go index 46d82307..313890f5 100644 --- a/cmd/neofs-adm/internal/modules/config/config_test.go +++ b/cmd/neofs-adm/internal/modules/config/config_test.go @@ -39,6 +39,7 @@ func TestGenerateConfigExample(t *testing.T) { key := "credentials." + i.String() require.Equal(t, "password", v.GetString(key)) } + require.Equal(t, "password", v.GetString("credentials.contract")) key := "credentials." + i.String() require.Equal(t, "", v.GetString(key))