open-vault/command/server/config_test.go

39 lines
638 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) {
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) {
testLoadConfigFile_json2(t,nil)
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)
}
func TestParseEntropy(t *testing.T){
testParseEntropy(t,true)
}