open-vault/command/server/config_test.go

56 lines
1,009 B
Go
Raw Normal View History

// +build !enterprise
2015-03-12 22:21:11 +00:00
package server
import (
"testing"
)
func TestLoadConfigFile(t *testing.T) {
testLoadConfigFile(t)
2015-03-12 22:21:11 +00:00
}
func TestLoadConfigFile_topLevel(t *testing.T) {
2019-11-07 16:54:34 +00:00
testLoadConfigFile_topLevel(t, nil)
}
2015-03-12 22:21:11 +00:00
func TestLoadConfigFile_json(t *testing.T) {
testLoadConfigFile_json(t)
2015-03-12 22:21:11 +00:00
}
func TestLoadConfigFile_json2(t *testing.T) {
2019-11-07 16:54:34 +00:00
testLoadConfigFile_json2(t, nil)
2015-03-12 22:21:11 +00:00
}
func TestLoadConfigFileIntegerAndBooleanValues(t *testing.T) {
testLoadConfigFileIntegerAndBooleanValues(t)
}
func TestLoadConfigFileIntegerAndBooleanValuesJson(t *testing.T) {
testLoadConfigFileIntegerAndBooleanValuesJson(t)
}
2015-03-12 22:21:11 +00:00
func TestLoadConfigDir(t *testing.T) {
testLoadConfigDir(t)
2015-03-12 22:21:11 +00:00
}
func TestConfig_Sanitized(t *testing.T) {
testConfig_Sanitized(t)
}
func TestParseListeners(t *testing.T) {
testParseListeners(t)
}
2019-11-07 16:54:34 +00:00
func TestParseEntropy(t *testing.T) {
testParseEntropy(t, true)
}
func TestConfigRaftRetryJoin(t *testing.T) {
testConfigRaftRetryJoin(t)
}
func TestParseSeals(t *testing.T) {
testParseSeals(t)
}