Ooops remove the CA stuff from actual server defaults and make it test server only
This commit is contained in:
parent
cac32ba071
commit
dbcf286d4c
|
@ -435,15 +435,6 @@ func DefaultConfig() *Config {
|
||||||
|
|
||||||
ServerHealthInterval: 2 * time.Second,
|
ServerHealthInterval: 2 * time.Second,
|
||||||
AutopilotInterval: 10 * 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.
|
// Increase our reap interval to 3 days instead of 24h.
|
||||||
|
|
|
@ -97,6 +97,11 @@ func testServerConfig(t *testing.T) (string, *Config) {
|
||||||
config.CAConfig = &structs.CAConfiguration{
|
config.CAConfig = &structs.CAConfiguration{
|
||||||
ClusterID: connect.TestClusterID,
|
ClusterID: connect.TestClusterID,
|
||||||
Provider: structs.ConsulCAProvider,
|
Provider: structs.ConsulCAProvider,
|
||||||
|
Config: map[string]interface{}{
|
||||||
|
"PrivateKey": "",
|
||||||
|
"RootCert": "",
|
||||||
|
"RotationPeriod": 90 * 24 * time.Hour,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return dir, config
|
return dir, config
|
||||||
|
|
Loading…
Reference in New Issue