[#1295] neofs-adm: Add contract group wallet to config template

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-04-06 12:36:35 +03:00 committed by Alex Vanin
parent 82fda42316
commit bc0c47738b
2 changed files with 3 additions and 1 deletions

View file

@ -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}}
`

View file

@ -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))