[#493] node/config: Export useful functions into a separate test package

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-21 16:46:15 +03:00 committed by Leonard Lyubich
parent c645781b98
commit b8a5f09174
4 changed files with 39 additions and 29 deletions

View file

@ -4,11 +4,12 @@ import (
"testing"
"github.com/nspcc-dev/neofs-node/cmd/neofs-node/config"
configtest "github.com/nspcc-dev/neofs-node/cmd/neofs-node/config/test"
"github.com/stretchr/testify/require"
)
func TestConfigCommon(t *testing.T) {
forEachFileType("test/config", func(c *config.Config) {
configtest.ForEachFileType("test/config", func(c *config.Config) {
val := c.Value("value")
require.NotNil(t, val)