Add default CA config back - I didn't add it and causes nil panics
This commit is contained in:
parent
dbcf286d4c
commit
bd5eb8b749
|
@ -433,6 +433,15 @@ func DefaultConfig() *Config {
|
||||||
ServerStabilizationTime: 10 * time.Second,
|
ServerStabilizationTime: 10 * time.Second,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
CAConfig: &structs.CAConfiguration{
|
||||||
|
Provider: "consul",
|
||||||
|
Config: map[string]interface{}{
|
||||||
|
"PrivateKey": "",
|
||||||
|
"RootCert": "",
|
||||||
|
"RotationPeriod": 90 * 24 * time.Hour,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
ServerHealthInterval: 2 * time.Second,
|
ServerHealthInterval: 2 * time.Second,
|
||||||
AutopilotInterval: 10 * time.Second,
|
AutopilotInterval: 10 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,9 +138,6 @@ func TestHelperProcess(t *testing.T) {
|
||||||
time.Sleep(25 * time.Millisecond)
|
time.Sleep(25 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run forever
|
|
||||||
<-make(chan struct{})
|
|
||||||
|
|
||||||
case "output":
|
case "output":
|
||||||
fmt.Fprintf(os.Stdout, "hello stdout\n")
|
fmt.Fprintf(os.Stdout, "hello stdout\n")
|
||||||
fmt.Fprintf(os.Stderr, "hello stderr\n")
|
fmt.Fprintf(os.Stderr, "hello stderr\n")
|
||||||
|
|
Loading…
Reference in New Issue