forked from TrueCloudLab/frostfs-node
They are invalid and unsupported. There is neither mainnet nor testnet currently. Change-Id: I520363e2de0c22a584238accc253248be3eefea5 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
24 lines
606 B
Go
24 lines
606 B
Go
package main
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-node/config"
|
|
configtest "git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-node/config/test"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestValidate(t *testing.T) {
|
|
const exampleConfigPrefix = "../../config/"
|
|
t.Run("examples", func(t *testing.T) {
|
|
p := filepath.Join(exampleConfigPrefix, "example/node")
|
|
configtest.ForEachFileType(p, func(c *config.Config) {
|
|
var err error
|
|
require.NotPanics(t, func() {
|
|
err = validateConfig(c)
|
|
})
|
|
require.NoError(t, err)
|
|
})
|
|
})
|
|
}
|