Fixes #1419 This is required to avoid later startup failures while trying to connect to etcd if it hasn't actually bootstrapped. This health check does just connectivity check, no quorum/leader checks, as they should depend on cluster state in general. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
19 lines
553 B
Go
19 lines
553 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package services_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/talos-systems/talos/internal/app/machined/pkg/system"
|
|
"github.com/talos-systems/talos/internal/app/machined/pkg/system/services"
|
|
)
|
|
|
|
func TestEtcdInterfaces(t *testing.T) {
|
|
assert.Implements(t, (*system.HealthcheckedService)(nil), new(services.Etcd))
|
|
}
|