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-11-07 16:54:34 +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-11-07 16:54:34 +00:00
|
|
|
testLoadConfigFile_json2(t, nil)
|
2015-03-12 22:21:11 +00:00
|
|
|
}
|
|
|
|
|
2020-05-19 23:13:05 +00:00
|
|
|
func TestLoadConfigFileIntegerAndBooleanValues(t *testing.T) {
|
|
|
|
testLoadConfigFileIntegerAndBooleanValues(t)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestLoadConfigFileIntegerAndBooleanValuesJson(t *testing.T) {
|
|
|
|
testLoadConfigFileIntegerAndBooleanValuesJson(t)
|
|
|
|
}
|
|
|
|
|
2020-11-13 18:26:58 +00:00
|
|
|
func TestLoadConfigFileWithLeaseMetricTelemetry(t *testing.T) {
|
|
|
|
testLoadConfigFileLeaseMetrics(t)
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2019-11-07 16:54:34 +00:00
|
|
|
func TestParseEntropy(t *testing.T) {
|
|
|
|
testParseEntropy(t, true)
|
|
|
|
}
|
2020-01-14 01:02:16 +00:00
|
|
|
|
|
|
|
func TestConfigRaftRetryJoin(t *testing.T) {
|
|
|
|
testConfigRaftRetryJoin(t)
|
|
|
|
}
|
2020-07-23 17:53:00 +00:00
|
|
|
|
|
|
|
func TestParseSeals(t *testing.T) {
|
|
|
|
testParseSeals(t)
|
|
|
|
}
|