API server provider readiness check with echo (#569)

This commit is contained in:
Igor Gov 2021-12-29 10:50:41 +02:00 committed by GitHub
parent de046c65b0
commit 84f7107a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ func (provider *Provider) TestConnection() error {
}
func (provider *Provider) GetHealthStatus() (*shared.HealthResponse, error) {
healthUrl := fmt.Sprintf("%s/status/health", provider.url)
healthUrl := fmt.Sprintf("%s/echo", provider.url)
if response, err := provider.client.Get(healthUrl); err != nil {
return nil, err
} else if response.StatusCode > 299 {