Browse Source

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

pull/4275/head
Paul Banks 7 years ago committed by Mitchell Hashimoto
parent
commit
1228a5839a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
  1. 9
      agent/consul/config.go
  2. 5
      agent/consul/server_test.go

9
agent/consul/config.go

@ -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.

5
agent/consul/server_test.go

@ -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

Loading…
Cancel
Save