Added a test to check check creation
This commit is contained in:
parent
5608531143
commit
c9ca03afa5
|
@ -179,11 +179,11 @@ func (c *ConsulClient) makeChecks(service *structs.Service, ip string, port int)
|
|||
Interval: check.Interval.String(),
|
||||
Timeout: check.Timeout.String(),
|
||||
}
|
||||
switch check.Type {
|
||||
case structs.ServiceCheckHTTP:
|
||||
if check.Protocol == "" {
|
||||
check.Protocol = "http"
|
||||
}
|
||||
switch check.Type {
|
||||
case structs.ServiceCheckHTTP:
|
||||
url := url.URL{
|
||||
Scheme: check.Protocol,
|
||||
Host: fmt.Sprintf("%s:%d", ip, port),
|
||||
|
|
Loading…
Reference in a new issue