2019-10-17 17:33:00 +00:00
|
|
|
// +build !enterprise
|
|
|
|
|
2015-03-12 22:21:11 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestLoadConfigFile(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testLoadConfigFile(t)
|
2015-03-12 22:21:11 +00:00
|
|
|
}
|
|
|
|
|
2017-11-08 19:19:41 +00:00
|
|
|
func TestLoadConfigFile_topLevel(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testLoadConfigFile_topLevel(t,nil)
|
2017-11-08 19:19:41 +00:00
|
|
|
}
|
|
|
|
|
2015-03-12 22:21:11 +00:00
|
|
|
func TestLoadConfigFile_json(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testLoadConfigFile_json(t)
|
2015-03-12 22:21:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLoadConfigFile_json2(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testLoadConfigFile_json2(t,nil)
|
2015-03-12 22:21:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestLoadConfigDir(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testLoadConfigDir(t)
|
2015-03-12 22:21:11 +00:00
|
|
|
}
|
2016-03-09 23:59:44 +00:00
|
|
|
|
2019-10-08 17:57:15 +00:00
|
|
|
func TestConfig_Sanitized(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testConfig_Sanitized(t)
|
2019-10-08 17:57:15 +00:00
|
|
|
}
|
|
|
|
|
2017-08-03 11:33:06 +00:00
|
|
|
func TestParseListeners(t *testing.T) {
|
2019-10-17 17:33:00 +00:00
|
|
|
testParseListeners(t)
|
2017-08-03 11:33:06 +00:00
|
|
|
}
|
2019-10-17 17:33:00 +00:00
|
|
|
|
|
|
|
func TestParseEntropy(t *testing.T){
|
|
|
|
testParseEntropy(t,true)
|
|
|
|
}
|