forked from TrueCloudLab/frostfs-node
099ceeae50
Add `internal.Env` function which converts path to config value to ENV variable key. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
15 lines
273 B
Go
15 lines
273 B
Go
package internal_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neofs-node/cmd/neofs-node/config/internal"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEnv(t *testing.T) {
|
|
require.Equal(t,
|
|
"NEOFS_SECTION_PARAMETER",
|
|
internal.Env("section", "parameter"),
|
|
)
|
|
}
|