Ooops remove the CA stuff from actual server defaults and make it test server only

This commit is contained in:
Paul Banks 2018-05-10 17:27:42 +01:00 committed by Mitchell Hashimoto
parent cac32ba071
commit dbcf286d4c
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 5 additions and 9 deletions

View File

@ -435,15 +435,6 @@ func DefaultConfig() *Config {
ServerHealthInterval: 2 * time.Second,
AutopilotInterval: 10 * time.Second,
CAConfig: &structs.CAConfiguration{
Provider: "consul",
Config: map[string]interface{}{
"PrivateKey": "",
"RootCert": "",
"RotationPeriod": 90 * 24 * time.Hour,
},
},
}
// Increase our reap interval to 3 days instead of 24h.

View File

@ -97,6 +97,11 @@ func testServerConfig(t *testing.T) (string, *Config) {
config.CAConfig = &structs.CAConfiguration{
ClusterID: connect.TestClusterID,
Provider: structs.ConsulCAProvider,
Config: map[string]interface{}{
"PrivateKey": "",
"RootCert": "",
"RotationPeriod": 90 * 24 * time.Hour,
},
}
return dir, config